From 23e6739dfabd61fd732d9b78e13a55aeaa7c2c2d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 21 Feb 2015 14:57:21 -0500 Subject: Added provisions for giving Table columns custom titles. Will now implement. --- table.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'table.go') diff --git a/table.go b/table.go index 0f0552f..c9f7511 100644 --- a/table.go +++ b/table.go @@ -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 { -- cgit v1.2.3