MCPcopy Index your code
hub / github.com/lxn/walk / SetLessFunc

Method SetLessFunc

tableviewcolumn.go:342–344  ·  view source on GitHub ↗

SetLessFunc sets the less func of this TableViewColumn. This function is used to provide custom sorting for models based on ReflectTableModel only.

(lessFunc func(i, j int) bool)

Source from the content-addressed store, hash-verified

340//
341// This function is used to provide custom sorting for models based on ReflectTableModel only.
342func (tvc *TableViewColumn) SetLessFunc(lessFunc func(i, j int) bool) {
343 tvc.lessFunc = lessFunc
344}
345
346// FormatFunc returns the custom format func of this TableViewColumn.
347func (tvc *TableViewColumn) FormatFunc() func(value interface{}) string {

Callers 1

CreateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected