How to use the ember-bootstrap/components/base/bs-form.extend function in ember-bootstrap

To help you get started, we’ve selected a few ember-bootstrap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kaliber5 / ember-bootstrap / addon / components / bs3 / bs-form.js View on Github external
import { computed } from '@ember/object';

import Form from 'ember-bootstrap/components/base/bs-form';

export default Form.extend({
  layoutClass: computed('formLayout', function() {
    let layout = this.get('formLayout');
    return layout === 'vertical' ? 'form' : `form-${layout}`;
  }).readOnly()
});
github kaliber5 / ember-bootstrap / addon / components / bs4 / bs-form.js View on Github external
import { computed } from '@ember/object';
import Form from 'ember-bootstrap/components/base/bs-form';

export default Form.extend({
  layoutClass: computed('formLayout', function() {
    let layout = this.get('formLayout');
    return layout === 'inline' ? 'form-inline' : null;
  }).readOnly()
});