示例#1
0
 public function run()
 {
     BowerAssets::register($this->getView());
     $containerID = $this->inline ? $this->containerOptions['id'] : $this->options['id'];
     $this->getView()->registerJs("\n            \$('#{$containerID}').parent().append('<div id=\\'yii2-date-picker-{$containerID}\\' class=\\'yii2-date-picker\\'><span></span></div>');\n            \$('#{$containerID}').addClass('form-control').detach().appendTo('#yii2-date-picker-{$containerID}');\n        ");
     parent::run();
 }
 public function run()
 {
     parent::run();
     echo $this->renderSavedValueInput();
     $this->registerScript();
 }