Skip to content

nickschot/ember-bootstrap-model-select

Repository files navigation

ember-bootstrap-model-select

Build Status Ember Observer Score npm version

Integrate ember-model-select into your ember-bootstrap forms.

Compatibility

  • Ember.js v3.12 or above
  • Ember CLI v2.13 or above
  • Node.js v10 or above

Installation

ember install ember-bootstrap-model-select

Usage

With this addon installed, you have a new controlType of model-select available which enables you to set belongsTo relationships on the form.

{{#bs-form model=yourModel as |form|}}  
  {{#form.element controlType="model-select" label="My Relationship" property="myOtherModel" as |el|}}
    {{el.control
      modelName='my-other-model'
      labelProperty='name'
    }}
  {{/form.element}}
{{/bs-form}}

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

About

ember-bootstrap form integration for ember-model-select

Resources

License

Stars

Watchers

Forks

Packages

No packages published