-
Notifications
You must be signed in to change notification settings - Fork 328
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
Commands for Table Rows #897
Comments
Proposed API: /** Defines cell content to be rendered instead of a simple text. */
interface TableCellType {
/** Renders a progress arc with a percentage value in the middle. */
progress?: ProgressTableCellType
/** Renders an icon. */
icon?: IconTableCellType
/** Renders a command menu. */
command?: CommandTableCellType
}
/**
* Create a cell type that renders command menu.
*
* Commands are typically displayed as context menu items. Useful when you need to provide
* multiple actions within a single row.
*/
export interface CommandTableCellType {
/** Items to render. */
items: Command[]
/** An identifying name for this component. */
name?: S
} @lo5 the biggest challenge here IMO is to come up with a sensible pattern on how to configure the values to be submitted - what values should We can either:
|
Table rows have names. If the user clicks on a command named Question: what's the use of |
Got it.
Used for just |
Is your feature request related to a problem? Please describe
When showing data in table, often there may be more than one action that could happen for each individual row. Today developers can create a button for each action and then the user would click the row and then click the button to get that specific action.
Describe the solution you'd like
The ability to have a
...
as the last column in a table which shows a dropdown list of commands or actions when selected. From my perspective this makes sense as acommand
option for eachui.row
but perhaps there are better ways to implement it.Additional context
https://xd.adobe.com/view/57fcfe84-8e3a-4c64-ada0-f113ec8edb1a-02af/
The text was updated successfully, but these errors were encountered: