class Card extends Stat (View source)

deprecated Use `Stat` instead.

Traits

Properties

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

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

from  Stat
static Stat
make(Htmlable $label, $value)

No description

from  Stat
chartColor(string|array|null $color)

No description

from  Stat
color(string|array|null $color)

No description

from  Stat
icon(string|null $icon)

No description

from  Stat
description(Htmlable|null $description)

No description

from  Stat
descriptionColor(string|array|null $color)

No description

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

No description

from  Stat
extraAttributes(array $attributes)

No description

from  Stat
openUrlInNewTab(bool $condition = true)

No description

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

No description

from  Stat
chart(array|null $chart)

No description

from  Stat
label(Htmlable $label)

No description

from  Stat
id(string $id)

No description

from  Stat
value($value)

No description

from  Stat
array|null
getChart()

No description

from  Stat
string|array|null
getChartColor()

No description

from  Stat
string|array|null
getColor()

No description

from  Stat
string|null
getIcon()

No description

from  Stat
Htmlable|null
getDescription()

No description

from  Stat
string|array|null
getDescriptionColor()

No description

from  Stat
string|null
getDescriptionIcon()

No description

from  Stat
IconPosition|string
getDescriptionIconPosition()

No description

from  Stat
array
getExtraAttributes()

No description

from  Stat
ComponentAttributeBag
getExtraAttributeBag()

No description

from  Stat
string|null
getUrl()

No description

from  Stat
bool
shouldOpenUrlInNewTab()

No description

from  Stat
Htmlable
getLabel()

No description

from  Stat
string
getId()

No description

from  Stat
scalar
getValue()

No description

from  Stat
string
toHtml()

No description

from  Stat
View
render()

No description

from  Stat
string
generateDataChecksum()

No description

from  Stat

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