99 if (isset($data[
'type']))
103 if (isset($data[
'code']))
107 if (isset($data[
'name']))
111 if (isset($data[
'view']))
115 if (isset($data[
'value']))
119 if (isset($data[
'group']))
123 if (isset($data[
'items']))
127 if (isset($data[
'required']))
131 if (isset($data[
'templated']))
135 if (isset($data[
'hint']))
139 if (isset($data[
'placeholder']))
141 $this->setPlaceholder($data[
'placeholder']);
143 if (isset($data[
'readonly_view']))
147 if (isset($data[
'show_in_list']))
151 if (isset($data[
'show_in_filter']))
155 if (isset($data[
'show_preview']))
159 if (isset($data[
'show_helper']))
163 if (isset($data[
'max_length']))
167 if (isset($data[
'max_value']))
171 if (isset($data[
'min_value']))
195 'placeholder' => $this->getPlaceholder(),
306 return is_array($this->value) ? count($this->value) > 0 : (bool)$this->value;
359 if (!is_numeric(implode(
'', array_keys(
$items))))
364 $this->items[] = [
'code' =>
$code,
'value' =>
$value];
445 if (is_callable($this->readonlyView))
599 private function getPlaceholder(): array|string|null
604 private function setPlaceholder(mixed
$placeholder): void
setMaxLength(int $maxLength)
setShowHelper(bool $showHelper)
setReadonlyView($readonlyView)
setShowPreview(bool $showPreview)
setShowInList($showInList)
__construct(array $data=[])
setMinValue(int $minValue)
setMaxValue(int $maxValue)
const TYPE_CONSENT_CONTENT
string array null $placeholder
setShowInFilter($showInFilter)