return cn;
},
+
+ /**
+ * Set the element that will be used to show or hide
+ */
+ setVisibilityEl : function(el)
+ {
+ this.visibilityEl = el;
+ },
+
/**
* Get the element that will be used to show or hide
*/
getVisibilityEl : function()
{
-
if (typeof(this.visibilityEl) == 'object') {
return this.visibilityEl;
}
return this.visibilityEl == 'parent' ? this.parent().getEl() : this.getEl();
}
-
return this.getEl();
-
},
/**
return;
}
- this.getVisibilityEl().removeClass('hidden');
+ this.getVisibilityEl().removeClass(['hidden','d-none']);
+
+ this.fireEvent('show', this);
},
return;
}
- this.getVisibilityEl().addClass('hidden');
+ this.getVisibilityEl().addClass(['hidden','d-none']);
+
+ this.fireEvent('hide', this);
}
});