本文整理汇总了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);
}
}
示例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());
}
}
示例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');
}
}
示例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());
}
}