Commit Graph

308 Commits

Author SHA1 Message Date
Matthew Coleman 2e0828fdef Remove accidental binary include 2024-01-29 15:03:06 -05:00
Matthew Coleman 120b02117f Implement backtab for tcell widgets 2024-01-27 17:34:33 -05:00
Jakub Sobon b00342e91c
Fix GoLint issue.
Signed-off-by: Jakub Sobon <jakub.sobon@elohim.sk>
2023-02-08 15:29:10 -05:00
Jakub Sobon b1943d95cf
Fix tests in editor_test.go.
Signed-off-by: Jakub Sobon <jakub.sobon@elohim.sk>
2023-02-08 13:38:38 -05:00
Jakub Sobon 188017287a
Merge pull request #347 from LQR471814/devel
Add OnChange handler to the TextInput widget
2023-02-08 13:27:33 -05:00
Jakub Sobon 94d07aea18
Format files with gofmt from Golang 1.20.
Signed-off-by: Jakub Sobon <jakub.sobon@elohim.sk>
2023-02-08 13:15:27 -05:00
LQR471814 45f26a878d address comments 2023-01-30 17:56:04 -08:00
LQR471814 e87b1cb791 capitalize text 2023-01-29 11:15:42 -08:00
LQR471814 f28390ba72 Fixed an issue with ReadAndClear, Add example to textinputdemo.go, Add tests 2023-01-29 11:13:48 -08:00
LQR471814 2cbce1c330 Add OnChange event handler to TextInput widget 2023-01-29 10:24:32 -08:00
Lovro Mažgon bc37cb70a7 more gauge threshold tests 2022-12-30 13:18:28 +01:00
Lovro Mažgon 9beb36080d return error if gauge threshold is negative 2022-12-30 13:05:38 +01:00
Lovro Mažgon 6e46b73927 refactor drawing of gauge threshold 2022-12-30 13:01:07 +01:00
Lovro Mažgon 1aba280365
add gauge threshold 2022-12-08 14:49:38 +01:00
Jakub Sobon 9ed371362b
Release Termdash v0.16.0. (#302)
## v0.16.0 - 03-Apr-2021

### Added

- The `Text` widget has a new option `MaxTextCells` which can be used to limit
  the maximum number of cells the widget keeps in memory.

### Changed

- Bump github.com/mattn/go-runewidth from 0.0.10 to 0.0.12.
2021-04-03 17:21:22 -04:00
Jakub Sobon 5ba573cd74
Moving formdemo under widgets/textinput. 2020-12-30 02:12:37 -05:00
Jakub Sobon c3be258da0
Self-review. 2020-12-30 00:59:39 -05:00
Jakub Sobon ba6224f5ae
Complete demo of a text input form with keyboard navigation. 2020-12-30 00:54:50 -05:00
Jakub Sobon d30bc47245 Merge branch 'devel' into 243-formdemo 2020-12-30 00:27:32 -05:00
Jakub Sobon 93428e8091
Allow a no-op button with a nil callback. 2020-12-30 00:22:36 -05:00
Jakub Sobon d70bcd1afb
Allow updating the callback function on an existing button instance. 2020-12-30 00:10:55 -05:00
Jakub Sobon fe052262d0
Refactor form construction. 2020-12-29 23:56:11 -05:00
Jakub Sobon b91eac380d
Formdemo now displays default text in the input boxes. 2020-12-28 03:54:36 -05:00
Jakub Sobon db2fcdcffc Merge branch 'devel' into 243-formdemo 2020-12-28 03:48:27 -05:00
Jakub Sobon 0912c9dbea
DefaultText option for textinput. 2020-12-28 03:41:52 -05:00
Jakub Sobon 0af5fbc606
Make the first input box focused by default. 2020-12-27 03:23:36 -05:00
Jakub Sobon b392e157dd Merge branch 'devel' into 243-formdemo 2020-12-27 02:25:27 -05:00
Jakub Sobon 912de88b90
Textinput can request keyboard exclusively. 2020-12-27 02:19:38 -05:00
Jakub Sobon 6c387a4be7
Adding a demo demonstrating form input. 2020-12-27 02:18:22 -05:00
Jakub Sobon dc90197592
Added method comment. 2020-11-28 14:25:29 -05:00
Jakub Sobon ee90ac89dc
Code refactor and self-review. 2020-11-28 14:24:22 -05:00
Jakub Sobon 79f696a100
Fixing a golint error. 2020-11-28 14:16:36 -05:00
Jakub Sobon 9da89424ee
Button can now be triggered by different global and focused keys. 2020-11-28 14:11:21 -05:00
Jakub Sobon 93438e3ef9
Moving formdemo out of this branch. 2020-11-28 13:31:47 -05:00
Jakub Sobon de41768dbc
Merge branch 'devel' into 243-form-demo 2020-11-28 00:06:14 -05:00
Jakub Sobon 31c7a24041
Button now supports separate color values for text chunks.
Custom color values can be specified for each of its main states.
2020-11-27 15:11:59 -05:00
Jakub Sobon cf9554ae9f
Renaming WriteOptions to TextOptions. 2020-11-25 10:16:51 -05:00
Jakub Sobon 0643120697
Button's support for cell options on each text cell. 2020-11-25 02:28:05 -05:00
Jakub Sobon 73644716a5
Button can be drawn without horizontal padding around its text. 2020-11-25 01:44:50 -05:00
Jakub Sobon ce3adfb084
Button can be drawn without the shadow and animation. 2020-11-25 01:24:38 -05:00
Jakub Sobon 3a0d044a4d
Allow button to specify multiple trigger keys. 2020-11-24 23:02:21 -05:00
Jakub Sobon dd6acb15e1
Give metadata about events to widgets. 2020-11-24 22:03:58 -05:00
Jakub Sobon 891a672716
WIP: Button can be configured to accept multiple keys as triggers. 2020-11-24 20:30:58 -05:00
Hoshea 283801e4ed Rename AxisWith to axisWith and add comments 2020-11-23 15:35:15 +08:00
Hoshea b7a73f0d40 dev 2020-11-23 10:57:07 +08:00
Hoshea f5dc3335b3 dev 2020-11-20 20:17:24 +08:00
Hoshea 2ac3bc52a4 dev 2020-11-19 21:31:59 +08:00
Hoshea e5e6097bdf Update comments 2020-11-18 17:22:49 +08:00
Hoshea 65debbb18f Design APIs of the HeatMap widget 2020-11-18 16:01:09 +08:00
Hoshea 29d7e65c6a dev 2020-11-17 21:19:50 +08:00