77
77
</DocsPageSubtitle >
78
78
79
79
<DocsPageSection >
80
- <DocsPageSectionHeader Title =" Simple" >
80
+ <DocsPageSectionHeader Title =" Basic" >
81
+ A simple table to display data, with light padding and only horizontal dividers.
81
82
</DocsPageSectionHeader >
82
- <DocsPageSectionContent Outlined FullWidth >
83
+ <DocsPageSectionContent Outlined FullWidth SourceCode = " BasicTableExample " >
83
84
<BasicTableExample />
84
85
</DocsPageSectionContent >
85
- <DocsPageSectionSource Code =" BasicTableExample" />
86
86
</DocsPageSection >
87
87
88
88
<DocsPageSection >
89
89
<DocsPageSectionHeader Title =" Striped" >
90
+ Striped tables with alternating background colors, better for readability of data.
90
91
</DocsPageSectionHeader >
91
- <DocsPageSectionContent Outlined FullWidth >
92
+ <DocsPageSectionContent Outlined FullWidth SourceCode = " TableStrippedExample " >
92
93
<TableStrippedExample />
93
94
</DocsPageSectionContent >
94
- <DocsPageSectionSource Code =" TableStrippedExample" />
95
95
</DocsPageSection >
96
96
97
97
<DocsPageSection >
98
98
<DocsPageSectionHeader Title =" Hoverable" >
99
+ Highlight a row on hover to improve the user experience. Works well with striped tables.
99
100
</DocsPageSectionHeader >
100
- <DocsPageSectionContent Outlined FullWidth >
101
+ <DocsPageSectionContent Outlined FullWidth SourceCode = " TableHoverableExample " >
101
102
<TableHoverableExample />
102
103
</DocsPageSectionContent >
103
- <DocsPageSectionSource Code =" TableHoverableExample" />
104
104
</DocsPageSection >
105
105
106
106
<DocsPageSection >
107
107
<DocsPageSectionHeader Title =" Bordered" >
108
+ Add borders and rounded corners to a table, better for tables that stand out.
108
109
</DocsPageSectionHeader >
109
- <DocsPageSectionContent Outlined FullWidth >
110
+ <DocsPageSectionContent Outlined FullWidth SourceCode = " TableBorderedExample " >
110
111
<TableBorderedExample />
111
112
</DocsPageSectionContent >
112
- <DocsPageSectionSource Code =" TableBorderedExample" />
113
113
</DocsPageSection >
114
114
115
115
<DocsPageSection >
116
116
<DocsPageSectionHeader Title =" Borderless" >
117
+ Remove borders from a table, better for tables that blend in.
117
118
</DocsPageSectionHeader >
118
- <DocsPageSectionContent Outlined FullWidth >
119
+ <DocsPageSectionContent Outlined FullWidth SourceCode = " TableBorderlessExample " >
119
120
<TableBorderlessExample />
120
121
</DocsPageSectionContent >
121
- <DocsPageSectionSource Code =" TableBorderlessExample" />
122
122
</DocsPageSection >
123
123
124
124
<DocsPageSection >
125
125
<DocsPageSectionHeader Title =" Small table" >
126
+ Add <Code >Narrow</Code > attribute to make tables more compact by cutting cell padding in half.
126
127
</DocsPageSectionHeader >
127
- <DocsPageSectionContent Outlined FullWidth >
128
+ <DocsPageSectionContent Outlined FullWidth SourceCode = " TableNarrowExample " >
128
129
<TableNarrowExample />
129
130
</DocsPageSectionContent >
130
- <DocsPageSectionSource Code =" TableNarrowExample" />
131
131
</DocsPageSection >
132
132
133
133
<DocsPageSection >
134
134
<DocsPageSectionHeader Title =" Light header" >
135
+ Add <Code >ThemeContrast="ThemeContrast.Light"</Code > to make the table header appear lighter.
135
136
</DocsPageSectionHeader >
136
- <DocsPageSectionContent Outlined FullWidth >
137
+ <DocsPageSectionContent Outlined FullWidth SourceCode = " TableLightHeaderExample " >
137
138
<TableLightHeaderExample />
138
139
</DocsPageSectionContent >
139
- <DocsPageSectionSource Code =" TableLightHeaderExample" />
140
140
</DocsPageSection >
141
141
142
142
<DocsPageSection >
143
143
<DocsPageSectionHeader Title =" Dark header" >
144
+ Add <Code >ThemeContrast="ThemeContrast.Dark"</Code > to make the table header appear darker.
144
145
</DocsPageSectionHeader >
145
- <DocsPageSectionContent Outlined FullWidth >
146
+ <DocsPageSectionContent Outlined FullWidth SourceCode = " TableDarkHeaderExample " >
146
147
<TableDarkHeaderExample />
147
148
</DocsPageSectionContent >
148
- <DocsPageSectionSource Code =" TableDarkHeaderExample" />
149
149
</DocsPageSection >
150
150
151
151
<DocsPageSection >
157
157
</AlertDescription >
158
158
</Alert >
159
159
</DocsPageSectionHeader >
160
- <DocsPageSectionContent Outlined FullWidth FrameUrl =" docs/components/table/mobile-mode-iframe" >
160
+ <DocsPageSectionContent Outlined FullWidth FrameUrl =" docs/components/table/mobile-mode-iframe" SourceCode = " BasicMobileTableExample " >
161
161
<BasicMobileTableExample />
162
162
</DocsPageSectionContent >
163
- <DocsPageSectionSource Code =" BasicMobileTableExample" />
164
163
</DocsPageSection >
165
164
166
165
<DocsPageSection >
167
166
<DocsPageSectionHeader Title =" Fixed header" >
167
+ To enable fixed header on a table, set the <Code >FixedHeader</Code > attribute to <Code >true</Code >. Additionally, you must specify a height for the table using the <Code >FixedHeaderTableHeight</Code > attribute.
168
168
</DocsPageSectionHeader >
169
- <DocsPageSectionContent Outlined FullWidth >
169
+ <DocsPageSectionContent Outlined FullWidth SourceCode = " TableFixedHeaderExample " >
170
170
<TableFixedHeaderExample />
171
171
</DocsPageSectionContent >
172
- <DocsPageSectionSource Code =" TableFixedHeaderExample" />
173
172
</DocsPageSection >
174
173
175
174
<DocsPageSection >
176
175
<DocsPageSectionHeader Title =" Fixed columns" >
177
176
Implementing this feature involves setting the <Code >FixedPosition</Code > attribute to <Code >TableColumnFixedPosition.Start</Code > for anchoring to the left, or <Code >TableColumnFixedPosition.End</Code > for anchoring to the right, on a cell. Additionally, you must enable fixed columns on a table with the <Code >FixedColumns</Code > attribute.
178
177
</DocsPageSectionHeader >
179
- <DocsPageSectionContent Outlined FullWidth >
178
+ <DocsPageSectionContent Outlined FullWidth SourceCode = " TableFixedColumnsExample " >
180
179
<TableFixedColumnsExample />
181
180
</DocsPageSectionContent >
182
- <DocsPageSectionSource Code =" TableFixedColumnsExample" />
183
181
</DocsPageSection >
184
182
185
183
<DocsPageSection >
186
184
<DocsPageSectionHeader Title =" Scroll To a Row Or Pixel Offset" >
185
+ Scrolling to a specific row or pixel offset within a table can be useful for improving the user experience and making it easier to navigate large tables of data. The Blazorise <Code >Table</Code > component provides built-in support for scrolling to a specific row or pixel offset using the <Code >ScrollToRow</Code > and <Code >ScrollToPixels</Code > methods.
187
186
</DocsPageSectionHeader >
188
- <DocsPageSectionContent Outlined FullWidth >
187
+ <DocsPageSectionContent Outlined FullWidth SourceCode = " TableScrollToExample " >
189
188
<TableScrollToExample />
190
189
</DocsPageSectionContent >
191
- <DocsPageSectionSource Code =" TableScrollToExample" />
192
190
</DocsPageSection >
193
191
194
192
<DocsPageSection >
213
211
To set the <Code >Resizable</Code > property of a <Code >Table</Code > component in Blazorise, you can use the following syntax:
214
212
</Paragraph >
215
213
</DocsPageSectionHeader >
216
- <DocsPageSectionContent Outlined FullWidth >
214
+ <DocsPageSectionContent Outlined FullWidth SourceCode = " TableResizableExample " >
217
215
<TableResizableExample />
218
216
</DocsPageSectionContent >
219
- <DocsPageSectionSource Code =" TableResizableExample" />
220
217
</DocsPageSection >
221
218
222
219
<DocsPageSection >
228
225
In this example, the <Code >Table</Code > component is grouped by the "Category" column, and the rows are organized into two groups: "Fruits" and "Vegetables". The <Code >TableRowGroup</Code > component specifies the value of the grouped column (e.g. "Fruits" or "Vegetables") and wraps the rows that belong to that group.
229
226
</Paragraph >
230
227
</DocsPageSectionHeader >
231
- <DocsPageSectionContent Outlined FullWidth >
228
+ <DocsPageSectionContent Outlined FullWidth SourceCode = " TableGroupingExample " >
232
229
<TableGroupingExample />
233
230
</DocsPageSectionContent >
234
- <DocsPageSectionSource Code =" TableGroupingExample" />
235
231
</DocsPageSection >
236
232
237
233
<DocsPageSection >
243
239
The <Code >TableCaption</Code > component is a child of the <Code >Table</Code > component and should be placed before the <Code >TableHeader</Code > and <Code >TableBody</Code > components.
244
240
</Paragraph >
245
241
</DocsPageSectionHeader >
246
- <DocsPageSectionContent Outlined FullWidth >
242
+ <DocsPageSectionContent Outlined FullWidth SourceCode = " TableCaptionExample " >
247
243
<TableCaptionExample />
248
244
</DocsPageSectionContent >
249
- <DocsPageSectionSource Code =" TableCaptionExample" />
250
245
</DocsPageSection >
251
246
252
247
<ComponentApiDocs ComponentTypes =" [typeof(Table), typeof(TableBody), typeof(TableCaption), typeof(TableRow), typeof(TableRowCell), typeof(TableRowGroup), typeof(TableRowHeader), typeof(TableHeader), typeof(TableHeaderCell), typeof(TableFooter)]" />
0 commit comments