Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议增加隐藏操作列方法 #21

Closed
ChartWay opened this issue May 26, 2020 · 2 comments
Closed

建议增加隐藏操作列方法 #21

ChartWay opened this issue May 26, 2020 · 2 comments

Comments

@ChartWay
Copy link

目前有隐藏操作方法的方法,但是有时候需要整个操作列隐藏,希望增加该方法。

@SmallRuralDog
Copy link
Owner

$actions->hideActions();

@ChartWay
Copy link
Author

ChartWay commented May 27, 2020

$actions->hideActions();

不对啊,我用这个方法并不能隐藏列,是表格的列哦,不是操作按钮。这个方法只是隐藏了所有操作按钮,但是操作列还在,只不过空列了。代码:

$grid->actions(function (Grid\Actions $actions) {
$actions->hideActions();
})->toolbars(function (Grid\Toolbars $toolbars) {
$toolbars->hideCreateButton();
});

@ChartWay ChartWay mentioned this issue May 28, 2020
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants