Skip to content

Commit

Permalink
Add function to set minimal column width
Browse files Browse the repository at this point in the history
  • Loading branch information
mtb-xt authored and mattn committed Sep 9, 2017
1 parent 31e8775 commit a73fc5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions table.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ func (t *Table) SetColWidth(width int) {
t.mW = width
}

// Set the minimal width for a column
func (t *Table) SetColMinWidth(column int, width int) {
t.cs[column] = width
}

// Set the Column Separator
func (t *Table) SetColumnSeparator(sep string) {
t.pColumn = sep
Expand Down

0 comments on commit a73fc5f

Please sign in to comment.