Header_ex()

Returns an HTML header string (h1-h6) with custom class and style attributes. Extended version of Header() for advanced styling.

Syntax
Result.s = MaterialSB::Header_ex(Text.s, Level, Class.s = "", Style.s = "")
Parameters
Text.s The header text.
Level The header level (1-6), where 1 is the largest (h1) and 6 is the smallest (h6).
Class.s Optional. CSS class names to apply.
Style.s Optional. Inline CSS styles.
Return Value

Returns an HTML string containing the header element.

Example
Procedure Main(Success)
  If Success
    MaterialSB::Row(MaterialSB::#Grid_Container)
      MaterialSB::Col(12)
        ; Header with custom class
        MaterialSB::Append(MaterialSB::Header_ex("Centered Title", 2, "center-align"))
        
        ; Header with inline styles
        MaterialSB::Append(MaterialSB::Header_ex("Custom Font", 3, "", "font-family: Georgia, serif; letter-spacing: 2px;"))
        
        ; Header with both class and style
        MaterialSB::Append(MaterialSB::Header_ex("Styled Header", 4, "teal-text", "text-shadow: 1px 1px 2px rgba(0,0,0,0.3);"))
        
        ; Combining multiple classes
        MaterialSB::Append(MaterialSB::Header_ex("Right Blue Header", 5, "right-align blue-text text-lighten-2"))
        
      MaterialSB::CloseCurrentParent()
    MaterialSB::CloseCurrentParent()
  EndIf
EndProcedure

MaterialSB::Download(@Main())
See Also

Header(), Paragraph_ex(), Append()