Class MjAttributes


public class MjAttributes extends HeadComponent
Processes mj-attributes to set default attribute values. Children can be mj-all (applies to all tags), mj-class (named classes), or specific tag elements (e.g., mj-text, mj-section).
  • 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