I added ModelAdmin to my silver stripe website. This includes a filter shape that slides down when the user clicks on the magnifier icon in the interface. How can I make the form visible by default (without user interaction)?
So far I have tried to call showHide()from LeftAndMain.jsusing entwine, but since Silvertripe relies heavily on Ajax, it only displays the form on the page's bootstrap.
(function($) {
$('#filters-button').entwine({
onadd: function(){
this._super();
this.entwine('ss').showHide();
}
});
})(jQuery);
source
share