()
| 168 | } |
| 169 | |
| 170 | func (m *TuiModel) GetSelectedColumnName() string { |
| 171 | col := m.GetColumn() |
| 172 | headers := m.GetHeaders() |
| 173 | index := Min(m.NumHeaders()-1, col) |
| 174 | if len(headers) == 0 { |
| 175 | return "" |
| 176 | } |
| 177 | return headers[index] |
| 178 | } |
| 179 | |
| 180 | func (m *TuiModel) GetColumnData() []interface{} { |
| 181 | schemaData := m.GetSchemaData() |
no test coverage detected