A plugin for data binding and related auto-configuration.
CDN URL:
https://cdn.jsdelivr.net/gh/scintilla0/jquery.databind@latest/jquery.databind.js
CDN URL(min.js):
https://cdn.jsdelivr.net/gh/scintilla0/jquery.databind@latest/jquery.databind.min.js
- [data-bind-option-text] now can be assigned to a specified element property.
- [data-bind] not working when multiple elements using [data-bind-option-text] fixed.
- Some elements not cleared when value is empty in [data-bind] event fixed.
- [data-display] event on checkbox and radio elements not triggered when no item selected fixed.
- Add event [data-hide] to do the opposite of [data-display].
- Span elements generated by [display-only] affected by XSS fixed.
- Span elements generated by [display-only] not displaying line break fixed.
- Malfunction of property [disabled] of the elements impacted by [data-display] event fixed.
- Add $(selector).modify() and $(selector).increase() to quickly modify the value or text of the target element.
- $(selector).boolean() now permits only one element selected.
- [data-display] event unable to listen to the newly added elements due to a wrong modification fixed.
- [data-display] event not triggered when target dom's id contains "." or other special characters that can be used for jquery selectors fixed.
- Minor optimization.
- Minor optimization.
- Changing status triggers every single [data-display] event fixed.
- Add $(selector).isEmpty() and $.isEmpty() to evaluate whether parameter or the value of the target dom is undefined, null or blank.
- Prevent elements being re-enabled if they are not disabled by [data-display] event.
- Add $(selector).boolean() to evaluate the boolean value of an element.
- Add $(selector).readonlyCheckable() to make checkbox or radio elements readonly if they are unmodifiable.
- [data-display] now binds event on $(document) instead of the very elements.
- [data-display] event not triggered when assigned an empty value for checkbox elements fixed.
- [data-check-field] event now can be chained-triggered.
- [data-check-field]'s reverse event now can only be triggered by change action.
- [data-display] event now disables all elements when hidden.
- [data-display-hide-callback] event not working properly fixed.
- [data-display] event not working properly with [data-display-hide-callback] assigned fixed.
- [data-display] event can accept multiple target values.
- Add initial refresh for [data-bind] elements.
- Add support for jQuery's no Conflict mode. (Contributor: Squibler)
- Add [data-bind] event for textarea elements. (Contributor: Squibler)
- Prevent initialization of "display-only" items in hidden templates which are wrapped by a hidden [id*='emplate'] element.
- Rollback the modification in 1.6.7 and add a new class to achieve the purpose instead.
- Remove class "display-only" after ready to prevent re-triggering the appending event while using other plug-ins such as tablesorter.js.
- [data-bind] event initiated by [data-bind-option-text] elements now evaluates its value as option text whether selects and options exist or not.
- Minor optimization.
- Repeated binding of [data-display] event when multiple elements are bound to a same field fixed.
- Button elements with no attribute [checked] unable to uncheck fixed.
- [data-bind] event can be initiated by radio elements now.
- Remove unused exports of the internal utils.
- Initial release