本文整理汇总了PHP中CGridView::renderSummary方法的典型用法代码示例。如果您正苦于以下问题:PHP CGridView::renderSummary方法的具体用法?PHP CGridView::renderSummary怎么用?PHP CGridView::renderSummary使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGridView
的用法示例。
在下文中一共展示了CGridView::renderSummary方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderSummary
public function renderSummary()
{
if (AuxLib::getLayoutType() === 'responsive' && $this->enableResponsiveTitleBar) {
Yii::app()->clientScript->registerCss('mobileDropdownCss', "\n .grid-view .mobile-dropdown-button {\n float: right;\n display: block;\n margin-top: -24px;\n margin-right: 8px;\n }\n ");
$afterUpdateJSString = "\n ;(function () {\n var grid = \$('#" . $this->id . "');\n \$('#" . $this->namespacePrefix . "-mobile-dropdown').unbind ('click.mobileDropdownScript')\n .bind ('click.mobileDropdownScript', function () {\n if (grid.hasClass ('show-top-buttons')) {\n grid.find ('.page-title').css ({ height: '' });\n grid.removeClass ('show-top-buttons');\n } else {\n grid.find ('.page-title').animate ({ height: '68px' }, 300);\n grid.addClass ('show-top-buttons');\n \$(window).one ('resize', function () {\n grid.find ('.page-title').css ({ height: '' });\n grid.removeClass ('show-top-buttons');\n });\n }\n });\n }) ();\n ";
$this->addToAfterAjaxUpdate($afterUpdateJSString);
echo '<div id="' . $this->namespacePrefix . '-mobile-dropdown" class="mobile-dropdown-button">
<div class="x2-bar"></div>
<div class="x2-bar"></div>
<div class="x2-bar"></div>
</div>';
}
parent::renderSummary();
}
示例2: renderSummary
/**
* Renders the summary-clone changer. When the summary changes, it should update the summary-clone in the
* searchview if it is available. The ModalListView does not rely on this because it does not run
* jquery.globalEval on ajax changes such as pagination. It instead will call processListViewSummaryClone which
* is decleared @see ModalListView->getCGridViewAfterAjaxUpdate()
*
*/
public function renderSummary()
{
parent::renderSummary();
Yii::app()->clientScript->registerScript($this->id . '_listViewSummaryChangeScript', '
processListViewSummaryClone("' . $this->id . '", "' . $this->summaryCssClass . '", "' . $this->summaryCloneId . '");
');
}
示例3: renderSummary
/**
* Renders the summary-clone changer. When the summary changes, it should update the summary-clone in the
* searchview if it is available. The ModalListView does not rely on this because it does not run
* jquery.globalEval on ajax changes such as pagination. It instead will call processListViewSummaryClone which
* is decleared @see ModalListView->getCGridViewAfterAjaxUpdate()
*
*/
public function renderSummary()
{
parent::renderSummary();
Yii::app()->clientScript->registerScript('listViewSummaryChangeScript', "\n processListViewSummaryClone('" . $this->id . "', '" . $this->summaryCssClass . "');\n ");
}