angular-bootstrap-multiselect
angular-bootstrap-multiselect copied to clipboard
Set selected items with Object Model options
Hi, thanks for your multiselection items, it works very well. I am just wondering how can I set already selected items in the dropdown item. I am using Object model options. Here is my implementation
/
eventiAvversiItems is a array with two attributes: "designTableId" and "descrizione". Can you please help me? Thanks in advance
Hello Valentino,
use the attribute id-prop="designTableId". Then, add either the real object or another object with the same value for designTableId to the ng-model value.
Cheers,
Ben
On Tue, Jun 28, 2016 at 11:00 AM valentinatibollo [email protected] wrote:
Hi, thanks for your multiselection items, it works very well. I am just wondering how can I set already selected items in the dropdown item. I am using Object model options. Here is my implementation
show-select-all="true" show-unselect-all="true" display-prop="descrizione" ng-disabled="!therapy.eventiAvversiPresence || therapy.eventiAvversiPresence == 'false'" ng-required="therapy.eventiAvversiPresence == 'true'">
eventiAvversiItems is a array with two attributes: "designTableId" and "descrizione". Can you please help me? Thanks in advance
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bentorfs/angular-bootstrap-multiselect/issues/15, or mute the thread https://github.com/notifications/unsubscribe/AGFQ_JubGgUPBKYN8pIAvUEfcDl3_xNcks5qQOK1gaJpZM4I_4q4 .
Thanks a lot, it works. What about ng-required instead? I tried to add a condition, but it seems to ignore it.
I don't think it is implemented, but maybe one of the forks has it
On Tue, Jun 28, 2016 at 3:24 PM valentinatibollo [email protected] wrote:
Thanks a lot, it works. What about ng-required instead? I tried to add a condition, but it seems to ignore it.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/bentorfs/angular-bootstrap-multiselect/issues/15#issuecomment-229047333, or mute the thread https://github.com/notifications/unsubscribe/AGFQ_JBU6hnMhKF7cdtPN7rfl7y9cTwEks5qQSCAgaJpZM4I_4q4 .
@valentinatibollo were you able to solve the required condition?