You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
535 B
30 lines
535 B
2 months ago
|
<?php
|
||
|
|
||
|
return [
|
||
|
'mixins' => ['options'],
|
||
|
'props' => [
|
||
|
/**
|
||
|
* Unset inherited props
|
||
|
*/
|
||
|
'after' => null,
|
||
|
'before' => null,
|
||
|
'icon' => null,
|
||
|
'placeholder' => null,
|
||
|
|
||
|
/**
|
||
|
* Arranges the radio buttons in the given number of columns
|
||
|
*/
|
||
|
'columns' => function (int $columns = 1) {
|
||
|
return $columns;
|
||
|
},
|
||
|
],
|
||
|
'computed' => [
|
||
|
'default' => function () {
|
||
|
return $this->sanitizeOption($this->default);
|
||
|
},
|
||
|
'value' => function () {
|
||
|
return $this->sanitizeOption($this->value) ?? '';
|
||
|
}
|
||
|
]
|
||
|
];
|