28 lines
642 B
PHP
28 lines
642 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace zin;
|
|
|
|
require_once dirname(__DIR__) . DS . 'sqlbuildercontrol' . DS . 'v1.php';
|
|
|
|
class sqlBuilderInput extends sqlBuilderControl
|
|
{
|
|
protected static array $defineProps = array(
|
|
"name?: string",
|
|
"label?: string",
|
|
"value?: string",
|
|
"placeholder?: string",
|
|
'labelWidth?: string="80px"',
|
|
'width?: string="60"',
|
|
"suffix?: string",
|
|
'onChange?: function',
|
|
"error?: bool=false",
|
|
"errorText?: string"
|
|
);
|
|
|
|
protected function build()
|
|
{
|
|
$this->setProp('type', 'input');
|
|
return parent::build();
|
|
}
|
|
}
|