Hi - I've begun looking at the new Table component and have not yet found how to add a custom column containing a Button to the table. In the legacy table component, this was done by simply adding a custom column with a Column type of Button. But in the new table, there is no selection to do so and I've found no doc indicating support for this.
Hi! The new table supports "Row Actions" in place of custom Button columns. You can add row actions and configure their event handlers through the Table's inspector in the Content section.
Yes, that should work for us! Can you send me a link to the doc covering this? I noticed that the default behavior is that the action icon is only visible when hovering over the line. There's one page we have where the designer wants the icon to always be visible and I didn't see any property to control that.
There's some documentation on table actions here. If you'd like something that is permanent you might try adding a "Click cell" handler to one of your columns. The "Link" type can also be useful for indicating that it's clickable.
Does that work for your use case? Or is there a particular part of your flow that calls for something else?
Hi!
The table actions using an icon does work fine for opening a modal - which is what it needs to do. The one question I still have on this is how to make the table action icon always visible. The designer wants it to always be visible on this table. Any hints on how to do that?
No worries - it's not an absolutely fixed requirement.
The designer just wants the option for an action visible at all times. It won't be all the actions, but just some. Not sure exactly why, but that's the ask.
I like the new action feature but I think from a usability perspective it would be nice if there was an option to fix them into a column as a button or icon for things that are important.
Sometimes the user won't discover the ability unless they hover over the record and they might not do that at first glance.
Hey there! This is noted, and there are a couple of feature requests open internally to address it that I can report back here on. Thanks for adding your feedback @kindredAsaf
Revisiting this thread, a workaround that's a bit more involved but may provide a more thorough solution is to use an HTML column with an attached click handler:
This can work well in conjunction with Custom CSS since you can specify class names in the HTML for the column (they can even be dynamic!). That lets you do something like this:
Hopefully that helps until the dev team can add a more robust solution!
Wanted to share a workaround for this from another user.
Add a Custom Column with Tag format. Hardcord in a Mapped Value that you want to be in your "button" (You can also add an icon). Connect an Click cell Event Handler.
Hey folks! Just a heads up that the dev team is looking to start rolling out button columns for the new table over the course of the next couple weeks!