- WIP on forms and UI widgets

This commit is contained in:
Dave Mc Nicoll committed 2020-03-17 16:14:47 -04:00
1 parent 657ceb2863
commit b1129def47
7 files changed
+31 -18

No files matched your search

+4 -1
View File
@@ -16,6 +16,10 @@ class UiInput extends UiElement implements Extension {
public array $attributes = [
'class' => 'ui-input',
];
public array $options = [
'tag-type' => "single",
];
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments, string $token) : string
{
@@ -26,7 +30,6 @@ class UiInput extends UiElement implements Extension {
{
$this->setValue($value);
$this->attributes([ 'name' => $name ] + $attributes + $this->attributes);
return $this->render();
}