Class MjHtmlAttributes


public class MjHtmlAttributes extends HeadComponent
Processes mj-html-attributes to add custom HTML attributes to output elements. Children are mj-selector elements, each with a path attribute (CSS selector) and mj-html-attribute children defining the attributes to add.
  • Constructor Details

  • Method Details

    • getTagName

      public String getTagName()
      Description copied from class: BaseComponent
      Returns the MJML tag name this component handles.
      Specified by:
      getTagName in class BaseComponent
      Returns:
      the MJML tag name
    • process

      public void process()
      Description copied from class: HeadComponent
      Processes this head component, updating the global context with extracted metadata (fonts, styles, attributes, etc.).
      Specified by:
      process in class HeadComponent