Skip to content

Combination of @dynamicOptions and primaryProperty #937

@ConductedClever

Description

@ConductedClever

I'm submitting a feature request

  • Library Version:
    v1.0.2

  • Operating System:
    Windows 10

  • Node Version:
    v12.5.0

  • NPM Version:
    v6.9.0

  • Aurelia CLI Version
    CLI v1.0.2

  • Browser:
    all

  • Language:
    ESNext

Current behavior:
Currently there are two options to develop a custom-attribute in aurelia. One to use dynamicOptions and one to not.
If dynamicOptions is not used, I can mark a bindable as primaryProperty, but in other way, when dynamicOptions is used, I can't find a way to specify a primaryProperty. And if I use dynamicOptions and also define a @bindable, the dynamicOptions stops working.

Expected/desired behavior:
I think it will be a good possibility to be able to use both @dynamicOptions and @bindable({ primaryProperty: true }) ... in a component or attribute. Because I have some predefined properties that I want to have configurations like primaryProperty on them and also I want to be able to receive dynamic options.

  • What is the motivation / use case for changing the behavior?
    ‌Being able to have benefits of @dynamicOptions and primaryPropert in a place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions