October/Winter CMS插件开发之数据排序
打开columns.yaml文件,在默认排序的字段下面加入sortable参数,如下
columns:
id:
label: ID
type: number
sortable: true
title:
label: 标题
type: text
searchable: true
sortable: true
headline:
label: 副标题
type: text
searchable: true
slug:
label: Slug
type: text