Interface DynamicAttributes


  • public interface DynamicAttributes
    The interface can be implemented by FormatConfigurations that do not know their exact attributes at compile time.
    • Method Detail

      • setAttribute

        void setAttribute​(String name,
                          String value)
        Attributes,that are defined in template code but not defined as setter methods, will be provided over this method.

        Example:

           $(button='Test' button.id='btn_id' button.onclick='buttonClicked()')
         

        Available setter methods still take precedence over setAttribute. If there is a setter method setId(String val) this will be called with parameter "btn_id" and setAttribute will be called with ("onclick", "buttonClicked()").