Merge pull request #56 from sachaos/master

Add GetOffset method on Table
This commit is contained in:
rivo 2018-02-13 14:15:23 +01:00 committed by GitHub
commit 2a7e773060
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -295,6 +295,12 @@ func (t *Table) SetOffset(row, column int) *Table {
return t return t
} }
// GetOffset returns current offset.
// Refer to SetOffset() for details.
func (t *Table) GetOffset() (row, column int) {
return t.rowOffset, t.columnOffset
}
// SetSelectedFunc sets a handler which is called whenever the user presses the // SetSelectedFunc sets a handler which is called whenever the user presses the
// Enter key on a selected cell/row/column. The handler receives the position of // Enter key on a selected cell/row/column. The handler receives the position of
// the selection and its cell contents. If entire rows are selected, the column // the selection and its cell contents. If entire rows are selected, the column