@@ -37,37 +37,6 @@ table.serverPageChangeHandler = async ({ page, pageSize }) => {
3737
3838### Including custom components
3939
40- It is possible to fill table cells with custom Ifx web components.
41- Currently, following components can be included:
42- * Button
43- * Status
44-
45- For this, column definitions need to include the corresponding field name and be passed in the following format:
46- Rows that should display a button, need to have a reference to the button column and include the desired configuration of the button component.
47-
48- ``` javascript
49- const columnDefsWithButtonCol = [
50- { headerName: ' Model' , field: ' model' , sortable: true , unSortIcon: true },
51- { headerName: ' ' , field: ' button' }
52- ...
53- ];
54-
55-
56- const rowDataWithButtonCol = [
57- {
58- make: ' Porsche' , model: ' Boxster' , price: 72000 , button: {
59- disabled: false , (optional)
60- variant: " secondary" , (optional)
61- size: " s" , (optional)
62- target: " _blank" , (optional)
63- color: " secondary" , (optional)
64- text: " Button"
65- // ... you can extend this as per the properties of `ifx-button`
66- }
67- }
68- ];
69- ```
70-
7140#### Example: Including a button column
7241
7342<Canvas of = { TableStories .IncludesButtons } sourceState = " shown" />
@@ -199,11 +168,24 @@ export default {
199168< / script>
200169```
201170
171+ <b >Nesting the tooltip component</b >
172+
173+ For simplicity purposes, the ``` variant ``` and ``` icon ``` properties have been removed from the tooltip integration into the table.
174+
175+ ``` js
176+ " tooltipInfo" : {
177+ " value" : " Table cell text" ,
178+ " text" : " tooltip text" ,
179+ " position" : " top"
180+ }
181+ ```
182+
202183#### Currently supported nestable components:
203184- ifx-button
204185- ifx-status
205186- ifx-icon-button
206187- ifx-link
188+ - ifx-tooltip
207189
208190#### Example: Including inner buttons
209191<Canvas of = { TableStories .IncludesInnerButtons } sourceState = " shown" />
0 commit comments