类型 TableSortState

API 文档由 Go 源码生成,内容为英文。

type TableSortState struct {
	Column    int
	Direction TableSortDirection
}

TableSortState is caller-owned single-column ordering. Its zero value has no active column; Toggle selects ascending first, then alternates both ways.

方法

Toggle#

func (state TableSortState) Toggle(column int) TableSortState