- Added a new UiImage element.

- Inputs can now have a class array OR a simple string as 'class' param.
This commit is contained in:
mcndave committed 2021-03-01 16:35:57 +00:00
1 parent 34828f642c
commit e75d997b02
4 files changed
+57 -1

No files matched your search

+5
View File
@@ -24,6 +24,11 @@ class UiSelect extends UiElement implements Extension {
public function buildHtml(string $name, array $list, $value = null, array $attributes = [], bool $strictComparison = true) : string
{
if ($attributes['class'] ?? false) {
$attributes['class'] = implode(" ", array_merge((array) $attributes['class'], (array) $this->attributes['class']));
unset($this->attributes['class']);
}
$this->attributes([ 'name' => $name ] + $attributes + $this->attributes);
$this->setList($list, $value, $strictComparison);