當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CGridView::renderSummary方法代碼示例

本文整理匯總了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();
 }
開發者ID:dsyman2,項目名稱:X2CRM,代碼行數:14,代碼來源:X2GridViewBase.php

示例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 . '");
         ');
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:14,代碼來源:ExtendedGridView.php

示例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            ");
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:12,代碼來源:ExtendedGridView.php


注:本文中的CGridView::renderSummary方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。