You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an example of drop-down control inside a table cell: https://nicegui.io/documentation/table#table_with_drop_down_selection
While it works fine, it heavily uses Javascript. Would it be possible in the future to translate it to Python?
Namely, I'm talking about this snippet:
Of course, it is just a pseudocode and does not work as intended, but you get the idea.
I think I might be able to help, but I would need a roadmap since I don't know where to start.
These scoped slots are certainly one of the most complicated things NiceGUI has to offer. I'm thinking about ways to simplify it for some time now, but so far I don't see how. Since these elements q-tr, q-td, ... don't live in Python (they are no NiceGUI elements), we would need something new to define template objects. It would have to allow for all possible HTML tags and attributes. And we need the ability access row props and to handle and forward events. It all needs to be nice and simple enough to justify the implementation and learning this new API instead of learning to write Vue templates. Pretty complicated, but maybe not impossible. 🙂
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
There is an example of drop-down control inside a table cell: https://nicegui.io/documentation/table#table_with_drop_down_selection
While it works fine, it heavily uses Javascript. Would it be possible in the future to translate it to Python?
Namely, I'm talking about this snippet:
Would it be possible to work on making it look like
Of course, it is just a pseudocode and does not work as intended, but you get the idea.
I think I might be able to help, but I would need a roadmap since I don't know where to start.
Beta Was this translation helpful? Give feedback.
All reactions