Allow accessing parent
in exported component
#6840
Labels
enhancement
New feature or request
need triaging
Issue that the owner of the area still need to triage
Feature Description
Allow to access the parent attribute in components. Alternatively allow properties to have a
component
type to bind to another component.I would like to do one of two things with the above code:
OR
I used Rust syntax where there is no Slint equivalent for coherency, actual trait based typing may be asking a bit much.
In theory, the only
component
withoutparent
should beWindow
and those that inheritWindow
. Every other component should default the parent to the main window until they have been built. I understand that inferring the properties of the parent without knowing its type is not possible, but everything has position and size, so those should be accessible at least and everything else can error.Product Impact
Parent accessibility is fundamental.
Object binding is a must-have.
The text was updated successfully, but these errors were encountered: