SetTable sets the source table that we are viewing, using a sequential IndexView and then configures the display
(et *table.Table)
| 133 | // SetTable sets the source table that we are viewing, using a sequential IndexView |
| 134 | // and then configures the display |
| 135 | func (tb *Table) SetTable(et *table.Table) *Table { |
| 136 | if et == nil { |
| 137 | return nil |
| 138 | } |
| 139 | |
| 140 | tb.SetSliceBase() |
| 141 | tb.Table = table.NewIndexView(et) |
| 142 | tb.This.(core.Lister).UpdateSliceSize() |
| 143 | tb.Update() |
| 144 | return tb |
| 145 | } |
| 146 | |
| 147 | // AsyncUpdateTable updates the display for asynchronous updating from |
| 148 | // other goroutines. Also updates indexview (calling Sequential). |
no test coverage detected