You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 10, 2021. It is now read-only.
| column-sort | Only if `order` is defined in column array. Return the current column sorted with metadata ([Sort Column](#sort-column))
81
82
82
83
### Columns
83
84
Each column object needs `name` and `key` attributes.
@@ -122,6 +123,31 @@ To get the user role we would need to define in our columns array:
122
123
}
123
124
```
124
125
126
+
### Sort column
127
+
**[New]** You only need a `order` property in column defined for use this feature.
128
+
```javascript
129
+
{
130
+
...,
131
+
columns: [
132
+
{
133
+
name:'Name',
134
+
key:'name',
135
+
order:true
136
+
}
137
+
]
138
+
}
139
+
```
140
+
141
+
This feature emit a event `column-sort` with this data object
142
+
```javascript
143
+
{
144
+
sort: {
145
+
key:'name',
146
+
order:false
147
+
},
148
+
type:'DESC'
149
+
}
150
+
```
125
151
126
152
### Render column
127
153
This callback will modify the data for various operations. Such as applying a specific format or an arithmetic operation to the column value and return it.
0 commit comments