Skip to content

Commit bf79b7f

Browse files
feat: add sticky column functionality to list view documentation
1 parent 4f59358 commit bf79b7f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

adminforth/documentation/docs/tutorial/03-Customization/13-standardPagesTuning.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,29 @@ export default {
120120
}
121121
```
122122

123+
### Sticky column
124+
125+
126+
You can make a column sticky in the list view by setting `listSticky` to `true`. This keeps the column visible when horizontally scrolling through the table, which is particularly useful for important columns like titles or IDs that should always remain in view.
127+
128+
```typescript title="./resources/apartments.ts"
129+
export default {
130+
resourceId: 'aparts',
131+
...
132+
columns: [
133+
{
134+
name: "title",
135+
//diff-add
136+
listSticky: true,
137+
...
138+
},
139+
...
140+
]
141+
}
142+
```
143+
144+
>⚠️ Please note that sticky columns can only be applied to one column per resource.
145+
123146
### Page size
124147

125148
use `options.listPageSize` to define how many records will be shown on the page

0 commit comments

Comments
 (0)