HtmlForgeX

API Reference

Class

TablerHeroBuilder

Namespace HtmlForgeX
Assembly HtmlForgeX

Builder for creating TablerHero components with fluent API.

Inheritance

  • Object
  • TablerHeroBuilder

Constructors

Methods

public TablerHeroBuilder AsCard(Boolean isCard = true) #
Returns: TablerHeroBuilder

Sets whether the hero should be rendered as a card.

Parameters

isCard System.Boolean = true optionalposition: 0
Build() #

Builds the TablerHero instance.

public TablerHeroBuilder WithBackgroundColor(TablerColor color) #
Returns: TablerHeroBuilder

Sets the background color of the hero section.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public TablerHeroBuilder WithDescription(String description) #
Returns: TablerHeroBuilder

Sets the description text of the hero section.

Parameters

description System.String requiredposition: 0
public TablerHeroBuilder WithMarginBottom(TablerMargin margin) #
Returns: TablerHeroBuilder

Sets the bottom margin of the hero section.

Parameters

margin HtmlForgeX.TablerMargin requiredposition: 0
public TablerHeroBuilder WithMinHeight(Int32 heightPx) #
Returns: TablerHeroBuilder

Sets the minimum height of the hero section in pixels.

Parameters

heightPx System.Int32 requiredposition: 0
public TablerHeroBuilder WithPaddingBottom(TablerPadding padding) #
Returns: TablerHeroBuilder

Sets the bottom padding of the hero section.

Parameters

padding HtmlForgeX.TablerPadding requiredposition: 0
public TablerHeroBuilder WithPaddingTop(TablerPadding padding) #
Returns: TablerHeroBuilder

Sets the top padding of the hero section.

Parameters

padding HtmlForgeX.TablerPadding requiredposition: 0
public TablerHeroBuilder WithSubtitle(String subtitle) #
Returns: TablerHeroBuilder

Sets the subtitle of the hero section.

Parameters

subtitle System.String requiredposition: 0
public TablerHeroBuilder WithTextColor(TablerColor color) #
Returns: TablerHeroBuilder

Sets the text color of the hero section.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public TablerHeroBuilder WithTitle(String title) #
Returns: TablerHeroBuilder

Sets the main title of the hero section.

Parameters

title System.String requiredposition: 0
public TablerHeroBuilder WithTitleSize(TablerTextSize size) #
Returns: TablerHeroBuilder

Sets the size of the title text.

Parameters

size HtmlForgeX.TablerTextSize requiredposition: 0