XF 2.1 data-xf-init defined

Cupara

Well-known member
Is there a file that has a list of defined attributes I can use with data-xf-init such as an onclick event.

Example:
Someone clicks a checkbox on an admin option the onchange event would then display the rest of the options related to that checkbox.
 
@Mike @Kier @Chris D could you possibly provide an answer to this question?

What I mean is when I use data-xf-init, I know I can do
HTML:
data-xf-init="disabler"
or I can do
HTML:
data-xf-init="attachment-manager"
but what other functions can I use with it?
 
Regex FTW ;)

Bash:
grep -h -R -o -P "(?<=XF\.Element\.register\(')([a-z0-9-]+)" js/xf | sort

gives

Code:
add-user
admin-nav
admin-search
ajax-submit
attachment-manager
attachment-on-insert
auto-complete
auto-submit
auto-timezone
avatar-cropper
avatar-upload
bookmark-click
bookmark-label-filter
braintree-apple-pay-form
braintree-payment-form
braintree-paypal-form
carousel
changed-field-notifier
check-all
checkbox-select-disabler
code-block
code-editor
code-editor-switcher-container
color-picker
copy-to-clipboard
date-input
desc-loader
disabler
draft
editor
editor-manager
element-tooltip
emoji-completer
field-adder
filter
focus-inserter
focus-trigger
form-fill
form-submit-row
guest-captcha
guest-username
h-scroller
inline-mod
key-captcha
lement
lightbox
list-sorter
login-form
member-tooltip
min-length
multi-quote
nestable
notices
number-box
oembed
page-jump
password-hide-show
password-strength
payment-provider-container
permission-choice
permission-form
permission-matrix
poll-block
post-edit
prefix-loader
prefix-menu
preview
preview-tooltip
push-cta
push-toggle
qa-captcha
quick-reply
quick-search
quick-thread
rating
reaction
re-captcha
reg-form
register
responsive-data-list
select-plus
select-to-quote
share-buttons
share-input
share-tooltip
solve-captcha
stats
sticky
sticky-header
stripe-payment-form
tabs
tagger
tel-box
textarea-handler
thread-edit-form
toggle-storage
token-input
tooltip
touch-proxy
translate-submit
tweet
user-mentioner
video-init
video-player
 
Last edited:
Top Bottom