template::add_event_listener (public)

 template::add_event_listener [ -event event ] [ -CSSclass CSSclass ] \
    [ -id id ] [ -formfield formfield ] [ -usecapture ] \
    [ -preventdefault ] -script script

Defined in packages/acs-templating/tcl/head-procs.tcl

Register an event handler for elements either with a specified ID, CSS class, or for a formfield targeted by form id and field name.

Switches:
-event (defaults to "click") (optional)
register handler for this type of event
-CSSclass (defaults to "acs-listen") (optional)
register handler for this CSS class
-id (optional)
register handler for this HTML ID
-formfield (optional)
register handler for this formfield, specified in a list of two elements in the form { form_id field_name }
-usecapture (boolean) (defaults to "false") (optional)
indicating whether event will be dispatched to the registered listener before being dispatched to any EventTarget beneath it in the DOM tree.
-preventdefault (boolean) (defaults to "true") (optional)
this option can the used prevent default click handling
-script (required)
Author:
Gustaf Neumann

Partial Call Graph (max 5 caller/called nodes):
%3 Class ::xo::Table::BootstrapTableRenderer::AnchorField Class ::xo::Table::BootstrapTableRenderer::AnchorField (public) template::add_event_listener template::add_event_listener Class ::xo::Table::BootstrapTableRenderer::AnchorField->template::add_event_listener Class ::xowiki::includelet::bookmarklet-button Class ::xowiki::includelet::bookmarklet-button (public) Class ::xowiki::includelet::bookmarklet-button->template::add_event_listener Class ::xowiki::includelet::composite-form Class ::xowiki::includelet::composite-form (public) Class ::xowiki::includelet::composite-form->template::add_event_listener Class ::xowiki::includelet::my-tags Class ::xowiki::includelet::my-tags (public) Class ::xowiki::includelet::my-tags->template::add_event_listener ::xo::ChatClass instproc login ::xo::ChatClass instproc login (public) ::xo::ChatClass instproc login->template::add_event_listener

Testcases:
No testcase defined.
[ show source ]
Show another procedure: