当前位置: 首页>>代码示例>>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;未经允许,请勿转载。