Skip to content

Commit

Permalink
Add custom table sort field support
Browse files Browse the repository at this point in the history
  • Loading branch information
cg33 committed Feb 5, 2020
1 parent 3744e1f commit de93fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/datamodel/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func GetUserTable() (userTable table.Table) {
},
})

info := userTable.GetInfo().SetFilterFormLayout(form.LayoutTwoCol).SetSortField("updated_at")
info := userTable.GetInfo().SetFilterFormLayout(form.LayoutTwoCol)
info.AddField("ID", "id", db.Int).FieldSortable()
info.AddField("Name", "name", db.Varchar).FieldEditAble(editType.Text).
FieldFilterable(types.FilterType{Operator: types.FilterOperatorLike})
Expand Down

0 comments on commit de93fb3

Please sign in to comment.