Interactivity API wp-on-document directive DOMContentLoaded
-
Hi.
I’m learning the Interactivity API.
How should I write using
DOMContentLoaded
in thedata-wp-on-document
directive?The syntax of this directive is?
data-wp-on-document--[document-event]
?(like?data-wp-on-document--keydown
or?data-wp-on-document--selectionchange
).
https://developer.www.ads-software.com/block-editor/reference-guides/interactivity-api/api-reference/#wp-on-document<div data-wp-on-document--keydown="callbacks.logKeydown"></div>
data-wp-on-document--DOMContentLoaded
not working.I have read the link below.
- https://make.www.ads-software.com/core/2024/03/04/interactivity-api-dev-note/
- https://developer.www.ads-software.com/block-editor/reference-guides/interactivity-api/api-reference/#wp-on-document
- https://developer.mozilla.org/en-US/docs/Web/API/Document#events
Regards.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.