API Reference
Class
TablerHeroBuilder
Builder for creating TablerHero components with fluent API.
Inheritance
- Object
- TablerHeroBuilder
Constructors
public TablerHeroBuilder() #Methods
public TablerHeroBuilder AsCard(Boolean isCard = true) #Returns:
TablerHeroBuilderSets whether the hero should be rendered as a card.
Parameters
- isCard System.Boolean = true
Build() #Builds the TablerHero instance.
public TablerHeroBuilder WithBackgroundColor(TablerColor color) #Returns:
TablerHeroBuilderSets the background color of the hero section.
Parameters
- color HtmlForgeX.TablerColor
public TablerHeroBuilder WithDescription(String description) #Returns:
TablerHeroBuilderSets the description text of the hero section.
Parameters
- description System.String
public TablerHeroBuilder WithMarginBottom(TablerMargin margin) #Returns:
TablerHeroBuilderSets the bottom margin of the hero section.
Parameters
- margin HtmlForgeX.TablerMargin
public TablerHeroBuilder WithMinHeight(Int32 heightPx) #Returns:
TablerHeroBuilderSets the minimum height of the hero section in pixels.
Parameters
- heightPx System.Int32
public TablerHeroBuilder WithPaddingBottom(TablerPadding padding) #Returns:
TablerHeroBuilderSets the bottom padding of the hero section.
Parameters
- padding HtmlForgeX.TablerPadding
public TablerHeroBuilder WithPaddingTop(TablerPadding padding) #Returns:
TablerHeroBuilderSets the top padding of the hero section.
Parameters
- padding HtmlForgeX.TablerPadding
public TablerHeroBuilder WithSubtitle(String subtitle) #Returns:
TablerHeroBuilderSets the subtitle of the hero section.
Parameters
- subtitle System.String
public TablerHeroBuilder WithTextColor(TablerColor color) #Returns:
TablerHeroBuilderSets the text color of the hero section.
Parameters
- color HtmlForgeX.TablerColor
public TablerHeroBuilder WithTitle(String title) #Returns:
TablerHeroBuilderSets the main title of the hero section.
Parameters
- title System.String
public TablerHeroBuilder WithTitleSize(TablerTextSize size) #Returns:
TablerHeroBuilderSets the size of the title text.
Parameters
- size HtmlForgeX.TablerTextSize