trait HasBadge (View source)

Properties

protected string|int|float|Closure|null $badge
protected string $badgeColor
protected string|Closure|null $badgeIcon
protected IconPosition|string|Closure|null $badgeIconPosition

Methods

badge(string|int|float|Closure|null $badge = null)

No description

indicator(string|int|float|Closure|null $indicator) deprecated

No description

badgeColor(string|array|Closure|null $color)

No description

badgeIcon(string|Closure|null $icon)

No description

badgeIconPosition(IconPosition|string|Closure|null $position)

No description

indicatorColor(string|array|Closure|null $color) deprecated

No description

string|int|float|null
getBadge()

No description

string|array|null
getBadgeColor()

No description

string|null
getBadgeIcon()

No description

IconPosition|string
getBadgeIconPosition()

No description

Details

HasBadge badge(string|int|float|Closure|null $badge = null)

No description

Parameters

string|int|float|Closure|null $badge

Return Value

HasBadge

HasBadge indicator(string|int|float|Closure|null $indicator) deprecated

deprecated Use `badge()` instead.

No description

Parameters

string|int|float|Closure|null $indicator

Return Value

HasBadge

HasBadge badgeColor(string|array|Closure|null $color)

No description

Parameters

string|array|Closure|null $color

Return Value

HasBadge

HasBadge badgeIcon(string|Closure|null $icon)

No description

Parameters

string|Closure|null $icon

Return Value

HasBadge

HasBadge badgeIconPosition(IconPosition|string|Closure|null $position)

No description

Parameters

IconPosition|string|Closure|null $position

Return Value

HasBadge

HasBadge indicatorColor(string|array|Closure|null $color) deprecated

deprecated Use `badgeColor()` instead.

No description

Parameters

string|array|Closure|null $color

Return Value

HasBadge

string|int|float|null getBadge()

No description

Return Value

string|int|float|null

string|array|null getBadgeColor()

No description

Return Value

string|array|null

| array{50: string, 100: string, 200: string, 300: string, 400: string, 500: string, 600: string, 700: string, 800: string, 900: string, 950: string} | null

string|null getBadgeIcon()

No description

Return Value

string|null

IconPosition|string getBadgeIconPosition()

No description

Return Value

IconPosition|string