Closed Seb33300 closed 3 years ago
I should have read the documentation more in details...
This is already possible using ifTrue
and ifFalse
:
$('...').conditionize({
ifTrue: function ($s) { $s.removeClass('d-none'); },
ifFalse: function ($s) { $s.addClass('d-none'); }
});
Hello,
This plugin is using inline CSS style
display: none;
to hide elements.Nowadays, most of project are using a CSS framework like Bootstrap. Bootstrap 5 provide the CSS class
d-none
to hide an element> I would like to tell this plugin to used-none
class to hide an element instead ofdisplay: none;
inline CSS.This may set thanks to a new option.
Thank you