[TikiWiki-commits] [Git][tikiwiki/tiki][master] [DOC] object_selector: Document events triggered during object_selector initialization and actions
"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a019e11ef281_38190eec56096@gitlab-sidekiq-low-urgency-cpu-bound-v2-666674d5c9-gfdgb.mail> |
Jonny Bradley pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
311b48f5 by Jonny Bradley at 2026-05-11T08:57:28+00:00
[DOC] object_selector: Document events triggered during object_selector initialization and actions
---
* [DOC] object_selector: Document events triggered during object_selector initialization and actions
See merge request tikiwiki/tiki!10153
- - - - -
1 changed file:
- lib/jquery_tiki/tiki-jquery.js
Changes:
=====================================
lib/jquery_tiki/tiki-jquery.js
=====================================
@@ -2111,7 +2111,19 @@ $(document).tiki('copy')(
* Transform an input field into an interactive object selector widget.
* Reads configuration from data attributes (threshold, filters, format, etc.).
* Actions: none (initialize), 'set' (set value), 'setfilter' (update filter).
+ *
+ * Several events are triggered:
+ * Action "initialize"
+ * - 'init.object_selector': before the selector is initialized
+ * - 'ready.object_selector': after the selector is initialized
+ * - 'beforeSearch.object_selector': when the user starts a search
+ * Action "set":
+ * - 'change': when the value is changed
+ * Action "setfilter":
+ * - 'click': when the filter is set
+ *
*/
+
$.fn.object_selector = function (action, value, title) {
var args = arguments;
@@ -2297,6 +2309,12 @@ $(document).tiki('copy')(
return this;
};
+ /**
+ * See $.fn.object_selector
+ *
+ * TODO: Refactor?
+ */
+
$.fn.object_selector_multi = function (action) {
var args = arguments;
this.each(function () {
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/311b48f5530e9b196c7aa86c8facebcffb814e3c
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/311b48f5530e9b196c7aa86c8facebcffb814e3c
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs