Skip to content

Commit 7129b97

Browse files
mesqueebrstoenescu
authored andcommitted
add column explanation (quasarframework#597)
1 parent 94bc013 commit 7129b97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/components/datatable.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ columns: /* array of Objects */ [
151151
// * is 0 then leave a and b unchanged with respect to each other, but sorted with respect to all different elements
152152
// * is greater than 0 then sort b to an index lower than a, i.e. b comes first
153153

154+
// (optional) you can format the data with a function
155+
format: val => `${val}%`
156+
154157
// v0.17.9+; if using scoped slots, apply this yourself instead
155158
style: 'width: 500px',
156159
classes: 'my-special-class'

0 commit comments

Comments
 (0)