RemoveAt removes the TableViewColumn at position index.
(index int)
| 109 | |
| 110 | // RemoveAt removes the TableViewColumn at position index. |
| 111 | func (l *TableViewColumnList) RemoveAt(index int) error { |
| 112 | tvc := l.items[index] |
| 113 | |
| 114 | if err := tvc.destroy(); err != nil { |
| 115 | return err |
| 116 | } |
| 117 | |
| 118 | tvc.tv = nil |
| 119 | |
| 120 | l.items = append(l.items[:index], l.items[index+1:]...) |
| 121 | |
| 122 | return nil |
| 123 | } |
| 124 | |
| 125 | func (l *TableViewColumnList) unsetColumnsTV() { |
| 126 | for _, tvc := range l.items { |