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

column 的 action 支持 payload #1849

Merged
merged 3 commits into from
Sep 7, 2022
Merged

Conversation

vv-boy
Copy link

@vv-boy vv-boy commented Jul 20, 2022

$grid->column('column')->action(Payload::make()->payload(['id' => $id]));

@vv-boy vv-boy closed this Jul 20, 2022
@vv-boy vv-boy reopened this Jul 20, 2022
@vv-boy
Copy link
Author

vv-boy commented Jul 20, 2022

$grid->column('column')->action(PayloadAction::make()->payload(['id' => $id]));

PayloadAction 为 RowAction.
当PlayloadAction 需要用到 row 之外的值,想通过 payload 传递。
但是当前 action() 会重新初始化它。导致 payload 值没掉

@jqhph jqhph merged commit 0b7072d into jqhph:2.0 Sep 7, 2022
@jqhph
Copy link
Owner

jqhph commented Sep 7, 2022

感谢

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

Successfully merging this pull request may close these issues.

2 participants