diff options
| author | Pietro Gagliardi <[email protected]> | 2015-02-21 14:57:21 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-02-21 14:58:07 -0500 |
| commit | 23e6739dfabd61fd732d9b78e13a55aeaa7c2c2d (patch) | |
| tree | 5bc6593de7d538e75ba470d80a02c3bab9f6e9f3 /table.go | |
| parent | d855f5df3f084f57ada2add87e3d5a59a8ccbd0a (diff) | |
Added provisions for giving Table columns custom titles. Will now implement.
Diffstat (limited to 'table.go')
| -rw-r--r-- | table.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -18,7 +18,8 @@ import ( // Tables are read-only by default, except for checkboxes, which are user-settable. // // Tables have headers on top of all columns. -// Currently the name of the header is the same as the name of the field. +// By default, the name of the header is the same as the name of the field. +// If the struct field has a tag "uicolumn", its value is used as the header string instead. // // Tables maintain their own storage behind a sync.RWMutex-compatible sync.Locker; use Table.Lock()/Table.Unlock() to make changes and Table.RLock()/Table.RUnlock() to merely read values. type Table interface { |
