function init() { parent::init(); // on entering this field we show the picker $this->onFocus()->ajaxFunc('showColorPicker(this,document.' . $this->owner->name . '.' . $this->name . ')'); // on changing a value we set the div color //$this->onChange() $this->setProperty('size', 6); }
function init() { parent::init(); // Calculate URL for the map lookup callback $this->addr_url = $this->add('VirtualPage', 'getaddr')->set(function ($p) { echo json_encode($p->add('rvadym\\gmap\\Form_WithMap')->getCoordByAddr($_GET['addr'])); exit; })->getURL(); $this->button = $this->afterField()->add('Button')->setLabel('Map'); $this->flyout = $this->owner->add('View_Flyout', 'mapframe'); $this->page_Map($this->flyout); $this->button->js('click', array($this->flyout->showJS($this->button, array('width' => 500, 'my' => 'right top')), $this->map->js()->trigger('redraw'), $this->flyout->js()->gm_field('lookup'))); }
function init() { parent::init(); $this->addCalendarIcon(); }
function init() { parent::init(); $this->generateCode(); }
function init() { parent::init(); $this->addButton('')->setHtml(' ')->setIcon('calendar')->js('click', $this->js()->datepicker('show')); }
function init() { parent::init(); $btn = $this->afterField()->add('Button')->set("Select " . $this->short_name); $btn->js('click')->_load('elimage')->univ()->myelimage($this); }