v1.php 703 B

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