namlook / ember-eureka

Ember client for Eureka applications
MIT License
3 stars 0 forks source link

implement "suggest" configuration #39

Open namlook opened 10 years ago

namlook commented 10 years ago

allow to configure how a relation is suggested (autocompleted):

{
  TheModel: {
    schema: {
      relation: {
        type: 'OtherModel',
        suggest: {
          field: 'otherTitle', // on what field to look up
          sortBy: '-otherField' // how to sort the suggestions
          // title: {template: "erf: {{title}}"} // how to represent a suggested item
          }
      }
    }
  }
}