Row gets the row at index
(at int, opt ...ExportOption)
| 152 | |
| 153 | // Row gets the row at index |
| 154 | func (t *DataTable) Row(at int, opt ...ExportOption) Row { |
| 155 | opts := newExportOptions(opt...) |
| 156 | t.evaluateExpressions() |
| 157 | r := make(Row, len(t.cols)) |
| 158 | for _, col := range t.cols { |
| 159 | if opts.WithHiddenCols || col.IsVisible() { |
| 160 | r[col.name] = col.serie.Get(at) |
| 161 | } |
| 162 | } |
| 163 | return r |
| 164 | } |