Skip to content

Provide a way to proxy properties from a component to another #7007

@bundyo

Description

@bundyo

Is your feature request related to a problem? Please describe.
When you create a custom component, usually you want to extend the features of another. For instance if you want to create a dropdown, you will need a TextField, a Label for its arrow and a Modal to open on tap. However, when creating the custom component, you want to make sure that all properties set on it can be transferred directly to the TextField without the need to register them one by one, so that the developer can configure it. There is something similar in Vue, achieved with v-bind="$attrs":
https://vuejs.org/v2/guide/components-props.html#Disabling-Attribute-Inheritance

Such possibility will greatly simplify inheriting existing components when you need to pass a whole bunch of properties to them without knowing what they are and make possible better UI frameworks in NativeScript.

Describe the solution you'd like
Something that will fit in the {N} way of binding.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions