Commit 1bb276c
Add table demo: Delete button in Actions column using Quasar template (zauberzeug#5150)
### Motivation
Add an example to the NiceGUI table documentation showing how to include
a Delete button in a custom “Actions” column using Quasar template
slots. This addresses a common question in the discussions about
rendering per-row buttons in tables, which wasn’t clearly covered in the
existing docs.
### Implementation
Added a new demo in website/documentation/content/table_documentation.py
using table.add_slot() with a Quasar template.
The demo shows a red Delete button in each row’s Actions column that
triggers a notification when clicked.
Could you ensure the button displays correctly and is aligned with the
row content?
### Progress
- [x] I chose a meaningful title that completes the sentence: "If
applied, this PR will..."
- [x] The implementation is complete.
- [x] Pytests have been added (or are not necessary). [x] (not required
for UI demo)
- [x] Documentation has been added (or is not necessary). [x] (demo
added directly to table documentation)
<img width="346" height="232" alt="Table_delete_button"
src="https://github.com/user-attachments/assets/c3c99718-79f4-4c74-b186-12f5dc511fd4"
/>
---------
Co-authored-by: Falko Schindler <[email protected]>1 parent c5c9dfe commit 1bb276c
1 file changed
+25
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
142 | 166 | | |
143 | 167 | | |
144 | | - | |
| 168 | + | |
145 | 169 | | |
146 | 170 | | |
147 | 171 | | |
| |||
0 commit comments