Skip to content
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

Custom properties for user widgets without eez-flow #652

Open
devcarbon-com opened this issue Nov 27, 2024 · 0 comments
Open

Custom properties for user widgets without eez-flow #652

devcarbon-com opened this issue Nov 27, 2024 · 0 comments
Assignees
Milestone

Comments

@devcarbon-com
Copy link

Is your feature request related to a problem? Please describe.
When using LVGL without eez-flow, there does not seem to be a way to add custom properties. As a specific example where this is a problem is when trying to make a user-widget where you would like to reuse the structure and style, but want an individual instance to have unique properties, labels, etc.

In my current case, I'm making a scrollable list of settings, and currently there is not a way to use custom labels, events, etc. per each.

Describe the solution you'd like
I would like to be able to "raise" a property from a descendant widget to the top-level (user-widget) property panel. Ideally, with a custom name.

Going back to the setting-item custom widget as an example, this would allow me to design this layout:


+-------------------------------------------+
|  [setting-label]   spacer   toggle-switch |
+-------------------------------------------+

And assign the label & custom event per user-widget.

Describe alternatives you've considered

  • Copy-paste widget (Tedious to modify every instance later while adjusting UI)
  • Modifying the generated code (Not hard to do, but you loose ability to further edit the UI without having to manually redo your code edits)
  • Allowing for custom-code to be inserted in the UI (Not as nice, but would be (probably?) an easy feature to implement in the meanwhile. Similar to above approach, but gets us closer to not having to redo the code changes every time.)

Additional context

  • I'm programming for a rp2040 board, and it seems it doesn't have the resources to run eez-flow.
@mvladic mvladic added this to the 0.21.0 milestone Nov 28, 2024
@mvladic mvladic modified the milestones: 0.21.0, 0.22.0 Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants