-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: addColumn (instead of double or quad) #74
Comments
I can see there's a
Double and quad works as expected. But I guess this comment should be part of another issue... 👌 |
Hi! thanks for reporting this issue! |
Fixes #74 Added fitHeight layout option
Hello! |
@Elius94 Thank you for pushing this. I'll check and let you know 😄 . For the primary request, what did you think about the work-around, where you just add two more layouts, where it's just growing full height, so you dont have to implement the addColumn()? |
I think that DynamicLayout (like your idea) should be a feature for the new major release 4.x.x. |
Thank you Elia! |
@Elius94 Im sorry for pinging you again, but I'd just like to ask id you have a milestone public on GitHub? I didn't manage to find it by myself. Thank you for the fitHeight prop, which works as expected 😄 ! |
https://github.com/Elius94/console-gui-tools/milestone/3 Hi! I've updated the 4.0.0 milestone! I will start the development when some other significant feature requests will be asked. |
@Elius94 Thanks 😄 . One last thing: I've tried to run through the examples and docs, but I've not spotted a way to add the table to a specific page (to a Is it correct that I can't add a Box inside my I'm not sure if it's somewhat related to #47. |
Yeah! this is the main intent of #47 |
What do you want?
Allow columns, too. Like used in Bootstrap's Grid-system (Columns, rows) to give the dev better options on how to setup a given layout. I'd also like to control, if the "Logs" should be be rendered in a specific column or row.
Why do you want it?
It would enable the dev to generate GUI-elements, instead of having to force the design in a "double" or "quad" layout.
How do you implement it?
Two rows, each with two columns:
Yes, that's actually a QuadLayout, but done manually.
I'd also like it to support two "horizontal views", where the first one contains two rows, and no. 2 is a single big one:
Another solution would be to just support a "triple` layout, maybe two (one for 100% left colum height, and one for 100 right column height - like the example).
Also, just to add it:
Personally I had a hard find spotting the "quad" option. Maybe I just missed the example, but after i noticed [https://github.com/Elius94/console-gui-tools/blob/main/docs/QuadLayout.md) in the docs, I though.... The quad-option must be part of the "type" on
ConsoleGuiOptions
, and luckily it was.I understand that the addColumn doesnt really fit into the current solution, if I understand the code-base correctly, so the other alternative with two new Layouts would be a good alternative. Maybe even just one, and a "mirror" function (but that's not that logical, for most users).
Yet another take would be to just allow one to be stretched to 100% height, and tell the user to set the proper pageRatio (Like
[[0.3, 0.7],[0.3, 0.7]]
, where page 2 (1
) is defined with 100% height). But right now, I even struggle to find the function to render a 100% height ConsoleManager.I'm new to the console-gui-tools, but I've looked at
terminal-kit
(node), and solutions likeurwid
(python) and bash solutions likewhiptail
/dialog
and a few others. Butconsole-gui-tools
looks very great! Inurwid
I find myself using way too much time creating simple GUI changes, instead of the functions behind it.Are you interested in developing this feature?
The text was updated successfully, but these errors were encountered: