* @package zin * @link http://www.zentao.net */ namespace zin; require_once dirname(__DIR__) . DS . 'dropdown' . DS . 'v1.php'; require_once dirname(__DIR__) . DS . 'btn' . DS . 'v1.php'; /** * 下拉菜单形式的选择器。 * The dropPicker widget class. * * @author Hao Sun */ class dropPicker extends wg { /** * Define the properties. * * @var array * @access protected */ protected static $defineProps = array ( 'btnClass' => 'string="w-full"', 'text' => 'string', 'value' => 'string', 'name' => 'string', 'items' => 'array', 'menu' => 'array' ); /** * Override the build method. * * @access protected * @return array */ protected function build() { list($items, $text, $value, $name, $btnClass, $menu) = $this->prop(array('items', 'text', 'value', 'name', 'btnClass', 'menu')); $btnID = $this->gid; $menuProps = array(); $menuProps['getItem'] = jsRaw(<<getRestProps()) ); } }