NewAt inserts a new blank element at given index in the slice -- -1 means the end
(idx int)
| 410 | // NewAt inserts a new blank element at given index in the slice -- -1 |
| 411 | // means the end |
| 412 | func (tb *Table) NewAt(idx int) { |
| 413 | tb.NewAtSelect(idx) |
| 414 | |
| 415 | tb.Table.InsertRows(idx, 1) |
| 416 | |
| 417 | tb.SelectIndexEvent(idx, events.SelectOne) |
| 418 | tb.Update() |
| 419 | tb.IndexGrabFocus(idx) |
| 420 | } |
| 421 | |
| 422 | // DeleteAt deletes element at given index from slice |
| 423 | func (tb *Table) DeleteAt(idx int) { |
nothing calls this directly
no test coverage detected