Static
instanceReturns the singleton instance. The first time the property is accessed the instance is created.
Protected
addAdds elements that have a specific attribute which value is a selector pointing to one or several elements; the target element(s). The elements are grouped per target element pointed to.
A separate target list is used, so that multiple aTargetToSourceMap instances can be used that use the same target but point to different type of sources.
The allows for a single event handler. The event handlers should handle all the different types of sources pointing to the same target.
The attribute that contains the selector. The sources are the elements containing this attribute. The targets are the elements pointed to by the selector value of the attribute.
Target elements are added to this list. If the target is already in the list, it will not be added again.
A map that contains the source elements grouped per target element.
Optional event to listen for at the target element(s). It will be set only once at each target.
A handler that is called with the target element that triggered the event.
Event group to use. If empty, the event listener just gets added to the target.
Protected
getGets the target element(s).
Element to get the target element(s) from.
Either one of the predefined values or a selector.
list of elements (can be empty)
Initializes the Ultra Force html helpers. Extra custom helpers can be added by passing them as an argument.
Additional helpers to use.
Resorts a grid using current selected control and sort direction. If the grid is not sorted or the grid sorting helper is not active nothing happens.
Call the UFHtmlHelper.scan method for every registered helper.
Protected
showShows an element by update the classes or display style. See the description of the UFHtmlHelper for details.
Installs various helpers. It is a singleton.
Use UFHtmlHelpers.instance to access the singleton.
Call init to initialize the Ultra Force html helpers. Extra custom helpers can be added by passing them as an argument.
When the DOM changes, call scan to let each helper rescan.
The helpers scan the dom for 'data-uf-' attributes and perform the necessary actions. The helpers do not generate HTML or use their own css classes. They only use * the 'data-uf-' attributes; if a helper applies class changes the classes are also supplied by the 'data-uf-*' attributes.