本文整理匯總了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 ");
}