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.
29 lines
535 B
29 lines
535 B
<?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) ?? '';
|
|
}
|
|
]
|
|
];
|
|
|