Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

custom function for model2Select & select2Model#229

Open
devilankur18 wants to merge 1 commit intoangular-ui:masterfrom
devilankur18:custom_functions
Open

custom function for model2Select & select2Model#229
devilankur18 wants to merge 1 commit intoangular-ui:masterfrom
devilankur18:custom_functions

Conversation

@devilankur18
Copy link

For issue #149

Pass the custom function inside the options for the angular select2 options

model2Select: function(model) {
  return model.name;
},

select2Model: function(value) {
  return {'id': value, 'name': value};
} 

model2Select: function(model) {
  return model.name;
},

select2Model: function(value) {
  return {'id': value, 'name': value};
},
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant