Skip to content

Commit

Permalink
Merge pull request #2333 from lePig/patch-1
Browse files Browse the repository at this point in the history
更新"模型表格行操作"文档
z-song authored Aug 22, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents ca4869d + fe2f2bd commit 45b91dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/zh/model-grid-actions.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# 模型表格行操作

`model-grid`默认有两个行操作`编辑``删除`,可以通过下面的方式关闭它们:
`model-grid`默认有三个行操作`编辑``删除``详情`,可以通过下面的方式关闭它们:

```php
$grid->actions(function ($actions) {
$actions->disableDelete();
$actions->disableEdit();
$actions->disableView();
});
```
可以通过传入的`$actions`参数来获取当前行的数据:
@@ -87,4 +88,4 @@ $grid->actions(function ($actions) {
// 添加操作
$actions->append(new CheckRow($actions->getKey()));
}
```
```

0 comments on commit 45b91dd

Please sign in to comment.