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

attributes

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

Custom attributes are defined by invoking the "thymol.configureAttributeProcessor" function.

thymol.configureAttributeProcessor = function(prefix, suffix, attrProcessorFunction, precedence, dataAttributeName)

The body of the attrProcessorFunction performs the intent of the custom attribute and may do what you will.

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