mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-08 21:37:58 -05:00
Add Not Selectable Rows to interactiveView
This commit is contained in:
@@ -240,8 +240,12 @@ func (i *interactiveView) update() {
|
||||
i.Table.SetCell(x, 0,
|
||||
GetCell(b, tcell.StyleDefault.Foreground(fg).Background(fg)))
|
||||
for y := range s[x] {
|
||||
selectable := true
|
||||
if s[x][y].Style == NotSelectableStyle {
|
||||
selectable = false
|
||||
}
|
||||
i.Table.SetCell(x, y+1,
|
||||
GetCell(s[x][y].Content, s[x][y].Style).SetMaxWidth(w/n).SetExpansion(1))
|
||||
GetCell(s[x][y].Content, s[x][y].Style).SetMaxWidth(w/n).SetExpansion(1).SetSelectable(selectable))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user