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.
55 lines
924 B
55 lines
924 B
<?php
|
|
|
|
|
|
return [
|
|
'extends' => 'text',
|
|
'props' => [
|
|
/**
|
|
* Unset inherited props
|
|
*/
|
|
'converter' => null,
|
|
'counter' => null,
|
|
'spellcheck' => null,
|
|
|
|
/**
|
|
* Set of characters allowed in the slug
|
|
*/
|
|
'allow' => function (string $allow = '') {
|
|
return $allow;
|
|
},
|
|
|
|
/**
|
|
* Changes the link icon
|
|
*/
|
|
'icon' => function (string $icon = 'url') {
|
|
return $icon;
|
|
},
|
|
|
|
/**
|
|
* Set prefix for the help text
|
|
*/
|
|
'path' => function (string $path = null) {
|
|
return $path;
|
|
},
|
|
|
|
/**
|
|
* Name of another field that should be used to
|
|
* automatically update this field's value
|
|
*/
|
|
'sync' => function (string $sync = null) {
|
|
return $sync;
|
|
},
|
|
|
|
/**
|
|
* Set to object with keys `field` and `text` to add
|
|
* button to generate from another field
|
|
*/
|
|
'wizard' => function ($wizard = false) {
|
|
return $wizard;
|
|
}
|
|
],
|
|
'validations' => [
|
|
'minlength',
|
|
'maxlength'
|
|
],
|
|
];
|
|
|