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

Method ShowAllColumns

gui/table.go:336–350  ·  view source on GitHub ↗

ShowAllColumns shows all the table columns

()

Source from the content-addressed store, hash-verified

334
335// ShowAllColumns shows all the table columns
336func (t *Table) ShowAllColumns() {
337
338 recalc := false
339 for ci := 0; ci < len(t.header.cols); ci++ {
340 c := t.header.cols[ci]
341 if !c.Visible() {
342 c.SetVisible(true)
343 recalc = true
344 }
345 }
346 if !recalc {
347 return
348 }
349 t.recalc()
350}
351
352// RowCount returns the current number of rows in the table
353func (t *Table) RowCount() int {

Callers

nothing calls this directly

Calls 3

recalcMethod · 0.95
VisibleMethod · 0.65
SetVisibleMethod · 0.65

Tested by

no test coverage detected