class Stat extends Component implements Htmlable (View source)

Traits

Properties

static protected Closure>> $macros from  Macroable
protected float[] $chart
protected string $chartColor
protected string $color
protected string|null $icon
protected Htmlable|null $description
protected string|null $descriptionIcon
protected IconPosition|string|null $descriptionIconPosition
protected string $descriptionColor
protected array<string,scalar> $extraAttributes
protected bool $shouldOpenUrlInNewTab
protected string|null $url
protected string|null $id
protected Htmlable $label
protected scalar $value

Methods

static void
macro(string $name, callable $macro)

No description

static void
mixin(object $mixin, bool $replace = true)

No description

static void
flushMacros()

No description

static mixed
__callStatic(string $method, array $parameters)

No description

mixed
__call(string $method, array $parameters)

No description

static callable|null
getMacro(string $method)

No description

__construct(Htmlable $label, $value)

No description

static Stat
make(Htmlable $label, $value)

No description

chartColor(string|array|null $color)

No description

color(string|array|null $color)

No description

icon(string|null $icon)

No description

description(Htmlable|null $description)

No description

descriptionColor(string|array|null $color)

No description

descriptionIcon(string|null $icon, IconPosition|string|null $position = null)

No description

extraAttributes(array $attributes)

No description

openUrlInNewTab(bool $condition = true)

No description

url(string|null $url, bool $shouldOpenInNewTab = false)

No description

chart(array|null $chart)

No description

label(Htmlable $label)

No description

id(string $id)

No description

value($value)

No description

array|null
getChart()

No description

string|array|null
getChartColor()

No description

string|array|null
getColor()

No description

string|null
getIcon()

No description

Htmlable|null
getDescription()

No description

string|array|null
getDescriptionColor()

No description

string|null
getDescriptionIcon()

No description

IconPosition|string
getDescriptionIconPosition()

No description

array
getExtraAttributes()

No description

ComponentAttributeBag
getExtraAttributeBag()

No description

string|null
getUrl()

No description

bool
shouldOpenUrlInNewTab()

No description

Htmlable
getLabel()

No description

string
getId()

No description

scalar
getValue()

No description

string
toHtml()

No description

View
render()

No description

string
generateDataChecksum()

No description

Details

static void macro(string $name, callable $macro)

No description

Parameters

string $name
callable $macro

Return Value

void

static void mixin(object $mixin, bool $replace = true)

No description

Parameters

object $mixin
bool $replace

Return Value

void

static void flushMacros()

No description

Return Value

void

static mixed __callStatic(string $method, array $parameters)

No description

Parameters

string $method
array $parameters

Return Value

mixed

mixed __call(string $method, array $parameters)

No description

Parameters

string $method
array $parameters

Return Value

mixed

static protected callable|null getMacro(string $method)

No description

Parameters

string $method

Return Value

callable|null

final __construct(Htmlable $label, $value)

No description

Parameters

Htmlable $label
$value

static Stat make(Htmlable $label, $value)

No description

Parameters

Htmlable $label
$value

Return Value

Stat

Stat chartColor(string|array|null $color)

No description

Parameters

string|array|null $color

Return Value

Stat

Stat color(string|array|null $color)

No description

Parameters

string|array|null $color

Return Value

Stat

Stat icon(string|null $icon)

No description

Parameters

string|null $icon

Return Value

Stat

Stat description(Htmlable|null $description)

No description

Parameters

Htmlable|null $description

Return Value

Stat

Stat descriptionColor(string|array|null $color)

No description

Parameters

string|array|null $color

Return Value

Stat

Stat descriptionIcon(string|null $icon, IconPosition|string|null $position = null)

No description

Parameters

string|null $icon
IconPosition|string|null $position

Return Value

Stat

Stat extraAttributes(array $attributes)

No description

Parameters

array $attributes

Return Value

Stat

Stat openUrlInNewTab(bool $condition = true)

No description

Parameters

bool $condition

Return Value

Stat

Stat url(string|null $url, bool $shouldOpenInNewTab = false)

No description

Parameters

string|null $url
bool $shouldOpenInNewTab

Return Value

Stat

Stat chart(array|null $chart)

No description

Parameters

array|null $chart

Return Value

Stat

Stat label(Htmlable $label)

No description

Parameters

Htmlable $label

Return Value

Stat

Stat id(string $id)

No description

Parameters

string $id

Return Value

Stat

Stat value($value)

No description

Parameters

$value

Return Value

Stat

array|null getChart()

No description

Return Value

array|null

| null

string|array|null getChartColor()

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|array|null getColor()

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 getIcon()

No description

Return Value

string|null

Htmlable|null getDescription()

No description

Return Value

Htmlable|null

string|array|null getDescriptionColor()

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 getDescriptionIcon()

No description

Return Value

string|null

IconPosition|string getDescriptionIconPosition()

No description

Return Value

IconPosition|string

array getExtraAttributes()

No description

Return Value

array

ComponentAttributeBag getExtraAttributeBag()

No description

Return Value

ComponentAttributeBag

string|null getUrl()

No description

Return Value

string|null

bool shouldOpenUrlInNewTab()

No description

Return Value

bool

Htmlable getLabel()

No description

Return Value

Htmlable

string getId()

No description

Return Value

string

scalar getValue()

No description

Return Value

scalar

| Htmlable | Closure

string toHtml()

No description

Return Value

string

View render()

No description

Return Value

View

string generateDataChecksum()

No description

Return Value

string