feat(Table): add contextmenu handling to table rows (#2283)

This commit is contained in:
Norman Feiß
2024-11-06 19:12:51 +01:00
committed by GitHub
parent ce955d24f1
commit c9e6256e7f
3 changed files with 93 additions and 1 deletions

View File

@@ -285,6 +285,22 @@ componentProps:
---
::
### Contextmenu
Use the `contextmenu` listener on your Table to make the rows righ-clickable. The function will receive the original event as the first argument and the row as the second argument.
You can use this to open a [ContextMenu](/components/context-menu) for that row.
::component-example{class="grid"}
---
extraClass: 'overflow-hidden'
padding: false
component: 'table-example-contextmenu'
componentProps:
class: 'flex-1 flex-col overflow-hidden'
---
::
### Searchable
You can easily use the [Input](/components/input) component to filter the rows.