Skip to content

Commit efe8f41

Browse files
committed
docs: update component contract to include example for rendering full-width cell
1 parent b1beb76 commit efe8f41

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

adminforth/documentation/docs/tutorial/03-Customization/08-pageInjections.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,15 @@ Component contract:
455455
- Slots
456456
- Default slot: the table’s standard row content (cells) will be projected here. Your component can wrap or style it.
457457
- Output
458-
- Render a full `<tr></tr>` fragment. For simple decoration, render a single `<td :colspan="columnsCount">` and wrap `<slot />` inside your layout.
458+
- Render a full `<tr></tr>` fragment. For example, to replace the standard set of cells with a single full‑width cell, render:
459+
460+
```vue
461+
<tr>
462+
<td :colspan="columnsCount">
463+
<slot />
464+
</td>
465+
</tr>
466+
```
459467
460468
Notes and tips:
461469
- Requirements:

0 commit comments

Comments
 (0)