v1.php 647 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace zin;
  3. require_once dirname(__DIR__) . DS . 'sqlbuildercontrol' . DS . 'v1.php';
  4. class sqlBuilderInput extends sqlBuilderControl
  5. {
  6. /**
  7. * @var mixed[]
  8. */
  9. protected static $defineProps = array(
  10. "name?: string",
  11. "label?: string",
  12. "value?: string",
  13. "placeholder?: string",
  14. 'labelWidth?: string="80px"',
  15. 'width?: string="60"',
  16. "suffix?: string",
  17. 'onChange?: function',
  18. "error?: bool=false",
  19. "errorText?: string"
  20. );
  21. protected function build()
  22. {
  23. $this->setProp('type', 'input');
  24. return parent::build();
  25. }
  26. }