-
Notifications
You must be signed in to change notification settings - Fork 56
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
Proposal to change SelectArray plugin #490
Comments
SelectArray was one of the first plugins in LUYA and is therefore used very often, so we should keep it like this, but i total agree, introducing a new/other SelectArray would be great. Maybe could name it dropdownSelect like yii active field does, but one of the big issues there is also: how to load the data and should the plugin auto observe/change the original value from the database. |
I don't mind "dropdownSelect" name. The data is loaded via
It will be updated each time we load or reload CRUD data through api request. The displayed value in the CRUD list will change of course when the What about the name of AngularJs directive? |
Closed by #658 |
The SelectArray plugin has bad behavior, which leads to a change in the model attribute (see #439).
This behavior can be disabled by novel
assignAfterFind
option (#444). Howewer, this option disables autoconversion of data in a list view also.I suggest changing
renderList
method ofSelectArray
orSelect
class and introducing new AngularJs directiveselectArraySpan
in the following way.I intentionally do not create PR, want to discuss first.
If such a solution does not find objection, I suggest changing a default behavior of
SelectArray
plugin in the next major version.For now, we can inroduce
SelectArray2
plugin, for example.The text was updated successfully, but these errors were encountered: