当前位置: 首页>>代码示例>>PHP>>正文


PHP Grid::AddBandToBegin方法代码示例

本文整理汇总了PHP中Grid::AddBandToBegin方法的典型用法代码示例。如果您正苦于以下问题:PHP Grid::AddBandToBegin方法的具体用法?PHP Grid::AddBandToBegin怎么用?PHP Grid::AddBandToBegin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Grid的用法示例。


在下文中一共展示了Grid::AddBandToBegin方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: AddOperationsColumns

 protected function AddOperationsColumns(Grid $grid)
 {
     $actionsBandName = 'actions';
     $grid->AddBandToBegin($actionsBandName, $this->GetLocalizerCaptions()->GetMessageString('Actions'), true);
     if ($this->GetSecurityInfo()->HasViewGrant()) {
         $column = new RowOperationByLinkColumn($this->GetLocalizerCaptions()->GetMessageString('View'), OPERATION_VIEW, $this->dataset);
         $grid->AddViewColumn($column, $actionsBandName);
     }
     if ($this->GetSecurityInfo()->HasEditGrant()) {
         $column = new RowOperationByLinkColumn($this->GetLocalizerCaptions()->GetMessageString('Edit'), OPERATION_EDIT, $this->dataset);
         $grid->AddViewColumn($column, $actionsBandName);
         $column->OnShow->AddListener('ShowEditButtonHandler', $this);
     }
 }
开发者ID:howareyoucolin,项目名称:demo,代码行数:14,代码来源:HomePageText.php

示例2: AddOperationsColumns

 protected function AddOperationsColumns(Grid $grid)
 {
     $actionsBandName = 'actions';
     $grid->AddBandToBegin($actionsBandName, $this->GetLocalizerCaptions()->GetMessageString('Actions'), true);
     if ($this->GetSecurityInfo()->HasViewGrant()) {
         $column = new RowOperationByLinkColumn($this->GetLocalizerCaptions()->GetMessageString('View'), OPERATION_VIEW, $this->dataset);
         $grid->AddViewColumn($column, $actionsBandName);
     }
     if ($this->GetSecurityInfo()->HasEditGrant()) {
         $column = new RowOperationByLinkColumn($this->GetLocalizerCaptions()->GetMessageString('Edit'), OPERATION_EDIT, $this->dataset);
         $grid->AddViewColumn($column, $actionsBandName);
         $column->OnShow->AddListener('ShowEditButtonHandler', $this);
     }
     if ($this->GetSecurityInfo()->HasDeleteGrant()) {
         $column = new RowOperationByLinkColumn($this->GetLocalizerCaptions()->GetMessageString('Delete'), OPERATION_DELETE, $this->dataset);
         $grid->AddViewColumn($column, $actionsBandName);
         $column->OnShow->AddListener('ShowDeleteButtonHandler', $this);
         $column->SetAdditionalAttribute("data-modal-delete", "true");
         $column->SetAdditionalAttribute("data-delete-handler-name", $this->GetModalGridDeleteHandler());
     }
 }
开发者ID:howareyoucolin,项目名称:demo,代码行数:21,代码来源:banner.php

示例3: AddOperationsColumns

 protected function AddOperationsColumns(Grid $grid)
 {
     $actionsBandName = 'actions';
     $grid->AddBandToBegin($actionsBandName, $this->GetLocalizerCaptions()->GetMessageString('Actions'), true);
     if ($this->GetSecurityInfo()->HasViewGrant()) {
         $column = new RowOperationByLinkColumn($this->GetLocalizerCaptions()->GetMessageString('View'), OPERATION_VIEW, $this->dataset);
         $grid->AddViewColumn($column, $actionsBandName);
         $column->SetImagePath('images/view_action.png');
     }
 }
开发者ID:CivicInfoBC,项目名称:workplan.gov_ver_1.19,代码行数:10,代码来源:total_allocated_hours_small.php

示例4: AddOperationsColumns

 protected function AddOperationsColumns(Grid $grid)
 {
     $actionsBandName = 'actions';
     $grid->AddBandToBegin($actionsBandName, $this->GetLocalizerCaptions()->GetMessageString('Actions'), true);
     if ($this->GetSecurityInfo()->HasEditGrant()) {
         $column = new InlineEditRowColumn('Edit', $this->dataset, $this->GetLocalizerCaptions()->GetMessageString('Edit'), $this->GetLocalizerCaptions()->GetMessageString('Cancel'), $this->GetLocalizerCaptions()->GetMessageString('Commit'), true);
         $grid->AddViewColumn($column, $actionsBandName);
         $column->OnShow->AddListener('ShowInlineEditButtonHandler', $this);
     }
     if ($this->GetSecurityInfo()->HasDeleteGrant()) {
         $column = new RowOperationByLinkColumn($this->GetLocalizerCaptions()->GetMessageString('Delete'), OPERATION_DELETE, $this->dataset);
         $grid->AddViewColumn($column, $actionsBandName);
         $column->SetImagePath('images/delete_action.png');
         $column->OnShow->AddListener('ShowDeleteButtonHandler', $this);
         $column->SetAdditionalAttribute('data-modal-delete', 'true');
         $column->SetAdditionalAttribute('data-delete-handler-name', $this->GetModalGridDeleteHandler());
     }
 }
开发者ID:BCDevExchange,项目名称:WORKPLAN,代码行数:18,代码来源:multiple_time_entry.php


注:本文中的Grid::AddBandToBegin方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。