Skip to content

Commit fd6bbde

Browse files
Add docs for visible columns in TreeList (#127)
* chore(treelist): add visible column docs * chore(treelist): updates to visible columns article * chore(treelist): add the Visible parameter to the bound article * chore(treelist): minor fixes * chore(treelist): fix link * chore(treeview): updated basic example for visible param * chore(treelist): updated toggle visibility example * chore(treeview): shorten code snippets and new screenshots * chore(treelist): minor adjustments Co-authored-by: Marin Bratanov <m.bratanov@gmail.com>
1 parent 791e5cb commit fd6bbde

8 files changed

+437
-2
lines changed

components/grid/columns/bound.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ You can use the following properties on the bound columns:
9595

9696
* `Locked` - (defaults to `false`) - if this parameter is set to true it [locks]({%slug grid-columns-frozen%}) the column so it is always visible to the user.
9797

98-
* `Visible` - (defaults to `true`) - if this parameter is set to `false` it [hides]({%slug grid-columns-visible%}) the column from the Grid.
98+
* `Visible` - (defaults to `null`) - if this parameter is set to `false` it [hides]({%slug grid-columns-visible%}) the column from the Grid. Accepts both `bool` and `bool?` types, and `null` is treated like `true`.
9999

100100
* `Template` - this property can also be used as an inner tag and it lets you define the [column display content]({%slug components/grid/features/templates%}#column-template). It can also point to a component name.
101101

components/grid/columns/visible.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In this article:
2222

2323
## Basics
2424

25-
To hide a Grid column set the `Visible` parameter to `false`. To hide a column based on a certain condition you can pass, for example, a ternary operator or a method that returns `bool` - the app can provide an expression according to its logic (like screen size).
25+
To hide a Grid column set its `Visible` parameter to `false`. To hide a column based on a certain condition you can pass, for example, a ternary operator or a method that returns `bool` - the app can provide an expression according to its logic (like screen size).
2626

2727
>caption Hide a column from the Grid. Basic example.
2828

components/treelist/columns/bound.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ You can use the following properties on the bound columns:
138138

139139
* `Width` - (defaults to `null`) - the width of the column. See the [Dimensions]({%slug common-features/dimensions%}) article. Keep in mind that these are columns in a `<table>`, so it is often a good practice to leave one column without explicit dimensions so it can accommodate the remaining width and changes to the container size.
140140

141+
* `Visible` - (defaults to `null`) - if this parameter is set to `false` it [hides]({%slug treelist-columns-visible%}) the column from the TreeList. Accepts both `bool` and `bool?` types, and `null` is treated like `true`.
142+
141143
* `Template` - this property can also be used as an inner tag and it defines the [custom cell content]({%slug treelist-templates-column%}) that renders instead of the default field value the treelist puts in it.
142144

143145
* `HeaderTemplate` - this property can also be used as an inner tag and defines the custom contents of the [header cell]({%slug treelist-templates-column-header%}) that you can render instead of the Title.
52.9 KB
Loading
53.1 KB
Loading
49 KB
Loading
139 KB
Loading

0 commit comments

Comments
 (0)