-
Couldn't load subscription status.
- Fork 7
feat: add action select #164
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
Changes from 3 commits
2132535
e88f0b7
e9e2a40
d6c0d69
abd58bc
ac57ba6
20b800f
ee7a7a7
076e9ba
706a717
5aa9e5c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| "@example/erp": patch | ||
| "@genseki/react": patch | ||
| --- | ||
|
|
||
| feat: add action select |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -69,7 +69,7 @@ export function ClientCollectionListView() { | |||||
|
|
||||||
| const columnHelper = createColumnHelper<BaseData>() | ||||||
| return [ | ||||||
| ...(listViewProps.actions?.delete | ||||||
| ...(listViewProps.actions?.select | ||||||
|
||||||
| ...(listViewProps.actions?.select | |
| ...((listViewProps.actions?.select || listViewProps.actions?.delete) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no delete still useable in action dropdown this action is only for disable select action
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as previous comment
| onRowClick={listViewProps.actions?.select ? 'toggleSelect' : undefined} | |
| onRowClick={(listViewProps.actions?.select || listViewProps.actions?.delete) ? 'toggleSelect' : undefined} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as previous
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,4 +19,5 @@ export interface ListActions { | |
| update?: boolean | ||
| delete?: boolean | ||
| one?: boolean | ||
| select?: boolean | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please provide an example for the
selectflag?