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)
| 340 | // |
| 341 | // This function is used to provide custom sorting for models based on ReflectTableModel only. |
| 342 | func (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. |
| 347 | func (tvc *TableViewColumn) FormatFunc() func(value interface{}) string { |