CanFormatState
trait CanFormatState (View source)
Properties
protected Closure|null | $formatStateUsing | ||
protected string|Closure|null | $placeholder | ||
protected Htmlable|Closure|null | $prefix | ||
protected Htmlable|Closure|null | $suffix | ||
protected bool|Closure | $isHtml | ||
protected bool|Closure | $isMarkdown |
Methods
limit(int $length = 100, string|null $end = '...')
No description
money(string|Closure|null $currency = null, int $divideBy = 0, string|Closure|null $locale = null)
No description
numeric(int|Closure|null $decimalPlaces = null, ArgumentValue $decimalSeparator = ArgumentValue::Default, ArgumentValue $thousandsSeparator = ArgumentValue::Default, int|Closure|null $maxDecimalPlaces = null, string|Closure|null $locale = null)
No description
placeholder(string|Closure|null $placeholder)
No description
markdown(bool|Closure $condition = true)
No description
prefix(Htmlable|Closure|null $prefix)
No description
suffix(Htmlable|Closure|null $suffix)
No description
html(bool|Closure $condition = true)
No description
mixed
formatState(mixed $state)
No description
bool
isHtml()
No description
Htmlable|null
getPrefix()
No description
Htmlable|null
getSuffix()
No description
bool
isMarkdown()
No description
Details
CanFormatState
formatStateUsing(Closure|null $callback)
No description
CanFormatState
limit(int $length = 100, string|null $end = '...')
No description
CanFormatState
money(string|Closure|null $currency = null, int $divideBy = 0, string|Closure|null $locale = null)
No description
CanFormatState
numeric(int|Closure|null $decimalPlaces = null, ArgumentValue $decimalSeparator = ArgumentValue::Default, ArgumentValue $thousandsSeparator = ArgumentValue::Default, int|Closure|null $maxDecimalPlaces = null, string|Closure|null $locale = null)
No description
CanFormatState
placeholder(string|Closure|null $placeholder)
No description
CanFormatState
markdown(bool|Closure $condition = true)
No description
CanFormatState
prefix(Htmlable|Closure|null $prefix)
No description
CanFormatState
suffix(Htmlable|Closure|null $suffix)
No description
CanFormatState
html(bool|Closure $condition = true)
No description
mixed
formatState(mixed $state)
No description
bool
isHtml()
No description
Htmlable|null
getPrefix()
No description
Htmlable|null
getSuffix()
No description
bool
isMarkdown()
No description