コード例 #1
0
ファイル: GridViewWidget.php プロジェクト: dsyman2/X2CRM
 public static function getJSONPropertiesStructure()
 {
     if (!isset(self::$_JSONPropertiesStructure)) {
         self::$_JSONPropertiesStructure = array_merge(parent::getJSONPropertiesStructure(), array('resultsPerPage' => 10, 'showHeader' => false, 'hideFullHeader' => false));
     }
     return self::$_JSONPropertiesStructure;
 }
コード例 #2
0
 protected function getSettingsMenuContentDialogs()
 {
     return '<div id="grid-settings-dialog-' . $this->widgetKey . '" 
           style="display: none;">' . '<div>' . Yii::t('profile', 'Use persistent filter and sort settings?') . '</div>' . CHtml::checkbox('dbPersistentGridSettings', self::getJSONProperty($this->profile, 'dbPersistentGridSettings', $this->widgetType, $this->widgetUID), array('id' => 'dbPersistentGridSettings-' . $this->widgetKey)) . X2Html::hint(Yii::t('profile', 'Leaving this box checked will prevent your grid filter and ' . 'sort settings from being reset when you log out of the app.'), false, null, true, true) . '</div>' . parent::getSettingsMenuContentDialogs();
 }
コード例 #3
0
 protected function getSettingsMenuContentEntries()
 {
     return parent::getSettingsMenuContentEntries() . '<li class="relationships-toggle x2-hint" title="' . CHtml::encode(Yii::t('app', 'Click to toggle showing actions associated with related records.')) . '">' . X2Html::checkbox('historyShowRels', Yii::app()->params->profile->historyShowRels) . '<span for="historyShowRels">' . CHtml::encode(Yii::t('profile', 'Relationships')) . '</span>' . '</li>';
 }
コード例 #4
0
 public function init($skipGridViewInit = false)
 {
     return parent::init(true);
 }