MCPcopy
hub / github.com/g3n/engine / SetColWidth

Method SetColWidth

gui/table.go:470–478  ·  view source on GitHub ↗

SetColWidth sets the specified column width and may change the widths of the columns to the right

(colid string, width float32)

Source from the content-addressed store, hash-verified

468// SetColWidth sets the specified column width and may
469// change the widths of the columns to the right
470func (t *Table) SetColWidth(colid string, width float32) {
471
472 // Checks column id
473 c := t.header.cmap[colid]
474 if c == nil {
475 panic(tableErrInvCol)
476 }
477 t.setColWidth(c, width)
478}
479
480// SetColExpand sets the column expand factor.
481// When the table width is increased the columns widths are

Callers

nothing calls this directly

Calls 1

setColWidthMethod · 0.95

Tested by

no test coverage detected