I would like to suggest adding support for global default options, similar to how some jQuery plugins allow setting defaults via an object like $.conditionize.defaults.
This feature would allow developers to define default behaviors for conditionize2.js once, and have them applied across all instances, unless overridden locally.
For example:
$.conditionize.defaults = {
updateOn: 'change',
onload: true,
ifTrue: 'show',
ifFalse: 'hide'
};
Then, calling $('.my-element').conditionize(); would use these defaults.
I would like to suggest adding support for global default options, similar to how some jQuery plugins allow setting defaults via an object like
$.conditionize.defaults.This feature would allow developers to define default behaviors for conditionize2.js once, and have them applied across all instances, unless overridden locally.
For example:
Then, calling $('.my-element').conditionize(); would use these defaults.