-
-
Notifications
You must be signed in to change notification settings - Fork 622
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
Combination of @dynamicOptions
and primaryProperty
#937
Comments
And also there is a need to combination of |
Another necessity of this behavior is when I want to have some bindables dynamic and also have some two-way bindables or other ways. |
@ConductedClever thanks for filing this issue. It maybe do-able, let me have a look, are you blocked by this or it only causes boilerplate code that you would love to eliminate? |
and I also have this problem how to set defaultBindingMode for dynamicOptions?
if I set fill property to bindable I will not access inside the propertyChanged to other property like size |
@bigopon thanks for paying attention to this issue. In fact this issue does not exactly block our job but pulls our job out of its way. Let me describe more. We are developing a full UI-component framework for our company. And currently in order to use binding options, I have to lose the benefits of dynamic options. And I found that, I have asked this question before on stackoverflow. |
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 abindable
asprimaryProperty
, but in other way, whendynamicOptions
is used, I can't find a way to specify aprimaryProperty
. And if I usedynamicOptions
and also define a@bindable
, thedynamicOptions
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 likeprimaryProperty
on them and also I want to be able to receive dynamic options.Being able to have benefits of
@dynamicOptions
andprimaryPropert
in a place.The text was updated successfully, but these errors were encountered: