bashbunni
6548f4e501
feat(table): add option for custom StyleFunc
2024-09-26 11:58:13 -07:00
bashbunni
48eb859f21
feat(table): Bring back Height and Rows
2024-09-25 12:40:44 -07:00
bashbunni
e7821ead32
feat(table): bring back SetColumn
2024-09-25 11:38:09 -07:00
bashbunni
add073a3e0
chore: tidy TODOs
2024-09-25 11:25:27 -07:00
bashbunni
b483f6dda9
feat(table): add SetBorder function to set/unset borders
2024-09-25 11:19:45 -07:00
bashbunni
cae042849c
chore: tidy
2024-09-25 10:27:11 -07:00
bashbunni
a0b7e17ab1
fix(table): use 0 as first row index (no off by one)
2024-09-24 17:18:26 -07:00
bashbunni
14927f0b94
fix(test): set correct type in comparison for TestFromValuesWithTabSeparator
2024-09-24 17:02:26 -07:00
bashbunni
e242987806
refactor(test): update error message for TestSetCursor
2024-09-24 16:58:37 -07:00
bashbunni
be32116954
fix(test): update outputs for TestTableAlignment
2024-09-24 16:57:38 -07:00
bashbunni
c436cff170
wip: fix table styles
2024-09-23 17:48:28 -07:00
bashbunni
ee1ba24d7b
refactor(table): use maxYOffset
2024-09-20 11:09:54 -07:00
bashbunni
791d89b668
wip: general yoffset logic. Needs clean + height fix
2024-09-20 10:47:15 -07:00
bashbunni
605b8ac4e5
wip: add scrolling
2024-09-16 10:05:09 -07:00
bashbunni
30bed825aa
fix(table): style selected row
2024-09-13 18:45:00 -07:00
bashbunni
2e34a232d2
refactor: make SetHeaders variadic
2024-09-11 17:12:22 -07:00
bashbunni
7b5c6cbcb2
chore: tidy
2024-09-11 17:07:14 -07:00
bashbunni
e18aafc29b
chore: remove header const from exports
2024-09-11 15:43:33 -07:00
bashbunni
1c621af57d
refactor: tidy; make Options bodies call setters
2024-09-11 15:38:29 -07:00
bashbunni
87b61f8646
feat: include NormalBorder in DefaultStyles
2024-09-11 14:47:04 -07:00
bashbunni
63869e3889
feat: add BorderHeader to Styles
2024-09-11 14:40:42 -07:00
bashbunni
0ce4f9250e
wip: include tests
2024-09-11 13:55:10 -07:00
bashbunni
f24890f15d
wip: runs but broken border
2024-09-11 06:48:21 -07:00
Christian Rocha
235075af49
feat: add HelpView to table as a convenience
2024-08-20 15:22:27 -04:00
bashbunni and GitHub
c1d9f7dd6b
feat(table): remove StyleFunc + add tests for table alignment ( #586 )
...
* Revert "Add support fo style func to table bubble"
This reverts commit 04658fed8e .
* test(table): add tests for table alignment
2024-08-19 13:56:47 -07:00
Aditi Patel and GitHub
6202df1306
fix: update position constant in JoinHorizontal ( #577 )
2024-08-07 14:06:50 -04:00
Gabriel Fu and GitHub
36baf3d64e
Update table.go ( #539 )
2024-06-18 11:45:04 -04:00
Ayman Bagabas and GitHub
11a9fccd58
chore: fix lint issues ( #534 )
2024-05-31 16:48:29 -04:00
Maas Lalani
68a68a472d
fix(table): inherit SelectedStyle for StyleFunc
2024-04-24 13:50:10 -04:00
Kevin Miller and Maas Lalani
04658fed8e
Add support fo style func to table bubble
2024-04-24 13:37:52 -04:00
David Zeleniak and GitHub
e726cbfb5c
fix(table): table scrolls before selected reaches top/bottom ( #429 )
...
* Fix bug in moving up in table
* fix
* Fix table viewport scroll down too early
2024-03-13 14:39:10 -04:00
6dbfc8284d
fix(table): substract headers Y size from the total table size ( #434 )
...
* fix(table): substract headers Y size from the total table size
* fix: change GetFrameSize to GetVerticalFrameSize and calc header height
* fix: remove GetVerticalFrameSize at all
* fix: account for headers in height WithHeight, SetHeight
---------
Co-authored-by: Maas Lalani <maas@lalani.dev >
2024-03-13 14:31:42 -04:00
Maciej Więcek and GitHub
9ffcdc06a0
feat(table): implement help.Keymap interface and add quit mapping ( #440 )
...
* feat(table): implement help.Keymap interface and add quit mapping
* feat(table): implement help.Keymap interface and add quit mapping
2024-02-28 14:12:37 -05:00
1029f3164d
(fix)table: don't render a column with a width <= 0 ( #465 )
...
* (fix)table: don't render a column with a width <= 0
This address #464
* Better check location
---------
Co-authored-by: Fabrice Bessettes <fbessett@cisco.com >
2024-02-28 12:15:07 -05:00
Abe Leininger and GitHub
9a7c783a75
feat(table): added column return func ( #369 )
2024-02-28 11:39:37 -05:00
af7e9ed3e1
Render Row Tests ( #487 )
...
* test(table): add renderRow test
* refactor(table): row tests
---------
Co-authored-by: Bill Havanki <bill.havanki@segment.com >
2024-02-28 11:30:22 -05:00
Stefan Bildl and Maas Lalani
3a1a24e211
refactor(table): remove unused cmds variable
2023-03-17 13:47:12 -04:00
Mikael Fangel and GitHub
7ba044773b
fix: add bounds checking to the selectedrow func ( #351 )
2023-03-11 15:47:31 +01:00
Glenn Gonda and Christian Rocha
3d3ed883d3
docs: fix typos and improve comment clarity
2023-02-16 17:49:32 -05:00
Yusuf Malikul Mulki and GitHub
30998513ba
ypo ( #300 )
2023-01-19 00:20:02 -05:00
Maas Lalani
e78f923af6
feat(table): add SetColumns method to set columns
2022-12-01 09:41:08 -05:00
Marc-Antoine and Maas Lalani
b528165592
expose table's rows
2022-12-01 09:30:35 -05:00
Jager,Petar and Maas Lalani
94252ef3b9
remove renderedlines from table struct
2022-12-01 09:24:30 -05:00
Jager,Petar and Maas Lalani
7392b363bd
fix: corner cases, YOffset manipulation for orig. scrolling
2022-12-01 09:24:30 -05:00
Jager,Petar and Maas Lalani
41478c3031
Table: Make UpdateViewport() have constant runtime, not depending on number of rows in a table
2022-12-01 09:24:30 -05:00
Christian Muehlhaeuser
4ae575a4c5
chore: use latest gofmt
2022-09-26 08:13:03 +02:00
Bastian Winkler and Maas Lalani
13f52d678d
fix(table): append headers/columns to zero sized string slice
2022-09-02 16:30:15 -04:00
Nicolas Karolak and GitHub
afd6f58c18
feat(table): add function to set cursor position ( #219 )
2022-08-30 20:54:25 -04:00
776062e30c
fix(table): correct keybinding for page down ( #220 )
...
Co-authored-by: Bastian Winkler <buz@serious.im >
2022-08-21 09:56:58 -04:00
58a9d4c7ec
feat: table bubble ( #173 )
...
Add table Bubble for displaying tabular data
Co-authored-by: Maas Lalani <maas@lalani.dev >
Co-authored-by: Christian Rocha <christian@rocha.is >
2022-07-21 15:06:38 -04:00