Skip to content

Commit 0c14ca3

Browse files
committed
Table page
1 parent dfd12e0 commit 0c14ca3

File tree

1 file changed

+26
-31
lines changed

1 file changed

+26
-31
lines changed

Documentation/Blazorise.Docs/Pages/Docs/Components/Tables/TablePage.razor

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -77,75 +77,75 @@
7777
</DocsPageSubtitle>
7878

7979
<DocsPageSection>
80-
<DocsPageSectionHeader Title="Simple">
80+
<DocsPageSectionHeader Title="Basic">
81+
A simple table to display data, with light padding and only horizontal dividers.
8182
</DocsPageSectionHeader>
82-
<DocsPageSectionContent Outlined FullWidth>
83+
<DocsPageSectionContent Outlined FullWidth SourceCode="BasicTableExample">
8384
<BasicTableExample />
8485
</DocsPageSectionContent>
85-
<DocsPageSectionSource Code="BasicTableExample" />
8686
</DocsPageSection>
8787

8888
<DocsPageSection>
8989
<DocsPageSectionHeader Title="Striped">
90+
Striped tables with alternating background colors, better for readability of data.
9091
</DocsPageSectionHeader>
91-
<DocsPageSectionContent Outlined FullWidth>
92+
<DocsPageSectionContent Outlined FullWidth SourceCode="TableStrippedExample">
9293
<TableStrippedExample />
9394
</DocsPageSectionContent>
94-
<DocsPageSectionSource Code="TableStrippedExample" />
9595
</DocsPageSection>
9696

9797
<DocsPageSection>
9898
<DocsPageSectionHeader Title="Hoverable">
99+
Highlight a row on hover to improve the user experience. Works well with striped tables.
99100
</DocsPageSectionHeader>
100-
<DocsPageSectionContent Outlined FullWidth>
101+
<DocsPageSectionContent Outlined FullWidth SourceCode="TableHoverableExample">
101102
<TableHoverableExample />
102103
</DocsPageSectionContent>
103-
<DocsPageSectionSource Code="TableHoverableExample" />
104104
</DocsPageSection>
105105

106106
<DocsPageSection>
107107
<DocsPageSectionHeader Title="Bordered">
108+
Add borders and rounded corners to a table, better for tables that stand out.
108109
</DocsPageSectionHeader>
109-
<DocsPageSectionContent Outlined FullWidth>
110+
<DocsPageSectionContent Outlined FullWidth SourceCode="TableBorderedExample">
110111
<TableBorderedExample />
111112
</DocsPageSectionContent>
112-
<DocsPageSectionSource Code="TableBorderedExample" />
113113
</DocsPageSection>
114114

115115
<DocsPageSection>
116116
<DocsPageSectionHeader Title="Borderless">
117+
Remove borders from a table, better for tables that blend in.
117118
</DocsPageSectionHeader>
118-
<DocsPageSectionContent Outlined FullWidth>
119+
<DocsPageSectionContent Outlined FullWidth SourceCode="TableBorderlessExample">
119120
<TableBorderlessExample />
120121
</DocsPageSectionContent>
121-
<DocsPageSectionSource Code="TableBorderlessExample" />
122122
</DocsPageSection>
123123

124124
<DocsPageSection>
125125
<DocsPageSectionHeader Title="Small table">
126+
Add <Code>Narrow</Code> attribute to make tables more compact by cutting cell padding in half.
126127
</DocsPageSectionHeader>
127-
<DocsPageSectionContent Outlined FullWidth>
128+
<DocsPageSectionContent Outlined FullWidth SourceCode="TableNarrowExample">
128129
<TableNarrowExample />
129130
</DocsPageSectionContent>
130-
<DocsPageSectionSource Code="TableNarrowExample" />
131131
</DocsPageSection>
132132

133133
<DocsPageSection>
134134
<DocsPageSectionHeader Title="Light header">
135+
Add <Code>ThemeContrast="ThemeContrast.Light"</Code> to make the table header appear lighter.
135136
</DocsPageSectionHeader>
136-
<DocsPageSectionContent Outlined FullWidth>
137+
<DocsPageSectionContent Outlined FullWidth SourceCode="TableLightHeaderExample">
137138
<TableLightHeaderExample />
138139
</DocsPageSectionContent>
139-
<DocsPageSectionSource Code="TableLightHeaderExample" />
140140
</DocsPageSection>
141141

142142
<DocsPageSection>
143143
<DocsPageSectionHeader Title="Dark header">
144+
Add <Code>ThemeContrast="ThemeContrast.Dark"</Code> to make the table header appear darker.
144145
</DocsPageSectionHeader>
145-
<DocsPageSectionContent Outlined FullWidth>
146+
<DocsPageSectionContent Outlined FullWidth SourceCode="TableDarkHeaderExample">
146147
<TableDarkHeaderExample />
147148
</DocsPageSectionContent>
148-
<DocsPageSectionSource Code="TableDarkHeaderExample" />
149149
</DocsPageSection>
150150

151151
<DocsPageSection>
@@ -157,38 +157,36 @@
157157
</AlertDescription>
158158
</Alert>
159159
</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">
161161
<BasicMobileTableExample />
162162
</DocsPageSectionContent>
163-
<DocsPageSectionSource Code="BasicMobileTableExample" />
164163
</DocsPageSection>
165164

166165
<DocsPageSection>
167166
<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.
168168
</DocsPageSectionHeader>
169-
<DocsPageSectionContent Outlined FullWidth>
169+
<DocsPageSectionContent Outlined FullWidth SourceCode="TableFixedHeaderExample">
170170
<TableFixedHeaderExample />
171171
</DocsPageSectionContent>
172-
<DocsPageSectionSource Code="TableFixedHeaderExample" />
173172
</DocsPageSection>
174173

175174
<DocsPageSection>
176175
<DocsPageSectionHeader Title="Fixed columns">
177176
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.
178177
</DocsPageSectionHeader>
179-
<DocsPageSectionContent Outlined FullWidth>
178+
<DocsPageSectionContent Outlined FullWidth SourceCode="TableFixedColumnsExample">
180179
<TableFixedColumnsExample />
181180
</DocsPageSectionContent>
182-
<DocsPageSectionSource Code="TableFixedColumnsExample" />
183181
</DocsPageSection>
184182

185183
<DocsPageSection>
186184
<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.
187186
</DocsPageSectionHeader>
188-
<DocsPageSectionContent Outlined FullWidth>
187+
<DocsPageSectionContent Outlined FullWidth SourceCode="TableScrollToExample">
189188
<TableScrollToExample />
190189
</DocsPageSectionContent>
191-
<DocsPageSectionSource Code="TableScrollToExample" />
192190
</DocsPageSection>
193191

194192
<DocsPageSection>
@@ -213,10 +211,9 @@
213211
To set the <Code>Resizable</Code> property of a <Code>Table</Code> component in Blazorise, you can use the following syntax:
214212
</Paragraph>
215213
</DocsPageSectionHeader>
216-
<DocsPageSectionContent Outlined FullWidth>
214+
<DocsPageSectionContent Outlined FullWidth SourceCode="TableResizableExample">
217215
<TableResizableExample />
218216
</DocsPageSectionContent>
219-
<DocsPageSectionSource Code="TableResizableExample" />
220217
</DocsPageSection>
221218

222219
<DocsPageSection>
@@ -228,10 +225,9 @@
228225
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.
229226
</Paragraph>
230227
</DocsPageSectionHeader>
231-
<DocsPageSectionContent Outlined FullWidth>
228+
<DocsPageSectionContent Outlined FullWidth SourceCode="TableGroupingExample">
232229
<TableGroupingExample />
233230
</DocsPageSectionContent>
234-
<DocsPageSectionSource Code="TableGroupingExample" />
235231
</DocsPageSection>
236232

237233
<DocsPageSection>
@@ -243,10 +239,9 @@
243239
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.
244240
</Paragraph>
245241
</DocsPageSectionHeader>
246-
<DocsPageSectionContent Outlined FullWidth>
242+
<DocsPageSectionContent Outlined FullWidth SourceCode="TableCaptionExample">
247243
<TableCaptionExample />
248244
</DocsPageSectionContent>
249-
<DocsPageSectionSource Code="TableCaptionExample" />
250245
</DocsPageSection>
251246

252247
<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

Comments
 (0)