home
features
quick start
download
documentation
thymol files
configuration
message resources
control parameters
expression objects
thymol types
thymol API
thymol extensions
examples
sessions
say-hello
stsm example
with-dialect
extrathyme
petclinic
news
credits
user forum
issues
browser constraints
other known issues
create new issue
thymeleaf

thymoljs

elements

Thymol custom elements allow you to extend Thymol in a way that's similar to Thymeleaf's custom dialects.

Custom elements are defined by invoking the "thymol.configureElementProcessor" function.

thymol.configureElementProcessor = function(prefix, suffix, elementProcessorFunction)

The body of the elementProcessorFunction performs the intent of the custom element and may do what you will.

The elementProcessorFunction should return a boolean result value that is "true" if the function changed the DOM in any way and "false" if not.