CardContent()

Creates the main content section of a card. This section typically contains the card's text, headers, and other content elements.

Syntax
Result = MaterialSB::CardContent(Parent = #Null)
Parameters
Parent Optional. Parent card element. If #Null, uses the current parent from the stack (typically the card created by Card()).
Return Value

Returns the card-content div element.

Remarks

Important: CardContent() pushes to the parent stack. You must call CloseCurrentParent() when done adding content to return to the card level.

A structured card typically uses: Card()CardContent() → content → CloseCurrentParent()CardAction() → buttons → CloseCurrentParent().

Example
Procedure Main(Success)
  If Success
    MaterialSB::Row(MaterialSB::#Grid_Container)
      MaterialSB::Col(12, 6, 4)
        MaterialSB::Card()
          ; Card content section
          MaterialSB::CardContent()
            MaterialSB::CardTitle("Card Title")
            MaterialSB::Append(MaterialSB::Paragraph("This is the main content area of the card. You can add any content here including text, images, forms, etc."))
          MaterialSB::CloseCurrentParent()  ; Close CardContent
          
          ; Card action section
          MaterialSB::CardAction()
            MaterialSB::Append(MaterialSB::Link("Read More", #Null, MaterialSB::#Color_Blue))
          MaterialSB::CloseCurrentParent()  ; Close CardAction
        MaterialSB::CloseCurrentParent()    ; Close Card
      MaterialSB::CloseCurrentParent()      ; Close Col
    MaterialSB::CloseCurrentParent()        ; Close Row
  EndIf
EndProcedure

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

Card(), CardAction(), CardTitle(), CardImage(), CloseCurrentParent()