Hi,
I want to hide couple of dialog tabs for a specific template instead of creating new component for this template.
Can we get the cq:template or sling:resourceType property inside touch ui listeners?
Below is my listener:
(function (document, $) {
"use strict";
// listen for dialog injection
$(document).on("foundation-contentloaded", function (e) {
$(".coral-TabPanel-navigation").find(".coral-TabPanel-tab").each(function (index, element) {
var tabTitle = $( this ).text();
if(tabTitle == 'Tab 3')
{
$( this ).addClass('hide');
}
});
});
})(document, Granite.$);