-
Notifications
You must be signed in to change notification settings - Fork 263
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
Nice to have: vertical slider and table wizard #494
Comments
Thanks for the suggestions. I think the slider should probably become vertical when its height is larger than its width. |
That is likely to work. But how do I set these properties? |
Sorry, what properties do you mean? |
The height and width properties of the slider. They are not available in
Flexx, so I have to somehow set the HTML/CSS/JS properties of the slider...
Op ma 24 sep. 2018 om 22:37 schreef Almar Klein <[email protected]>:
… Sorry, what properties do you mean?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#494 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFkYZ7awuDOPqxd3lALAph-h3ZlWPczyks5ueUJygaJpZM4W2ZMv>
.
|
Oh, right. The layout generally determines the size of a widget, e.g. depending on the from flexx import flx
class Example(flx.Widget):
def init(self):
with flx.HSplit():
with flx.VBox():
flx.Widget(flex=1, style='background:#f00')
flx.Slider()
with flx.HBox():
flx.Widget(flex=1, style='background:#0f0')
flx.Slider()
flx.launch(Example)
flx.run() |
This does not work at all. I also tried with CSS, but this gives a very strange result: a mix of a horizontal and vertical slider:
|
Ooh! I think we have a misunderstanding :) I wrote "I think the slider should probably become vertical when its height is larger than its width.". What I meant with that this should be the behavior when we implement a vertical slider. At this point in time, Flexx does not have a vertical slider. Sorry for the confusion! |
Ok, I see. But would it not be easier and consistent to implement this behaviour via (raw) HTML/CSS properties? |
As in turn a slider horizontal/vertical? Yes this could well be. Maybe auto-mode by default, and an ability to explicitly set it. But I have not thought about it much yet. And I don't know yet how hard it would be implementation-wise. |
Doesn't phosphor.js have a really good table widget that they have shown off in the Jupyter lab demo's ? |
Yes, they have. Flexx does no longer depend on Phosphor, but it should be possible to load it as an asset and use the table that way. We should distinguish between different kinds of table widgets though :) I was thinking about a widget to layout child widgets in a table, a bit like the FormLayout. The Phosphor thing is a leaf widget for tabular data :) |
Sounds good! Since a table element could also contain an another element, like a button. Also, any table cell should be clickable... |
I really would like to see a vertical slider. A table wizard would also be handy. Although the latter could probably be created easily with a label and som HTML code...
The text was updated successfully, but these errors were encountered: