How to use the ember-form-builder/components/inputs/select-option.extend function in ember-form-builder

To help you get started, we’ve selected a few ember-form-builder 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 nibynic / ember-form-builder / addon / components / inputs / checkbox-option.js View on Github external
import SelectOption from 'ember-form-builder/components/inputs/select-option';
import layout from '../../templates/components/inputs/checkbox-option';
import { computed } from '@ember/object';
import { alias } from '@ember/object/computed';

export default SelectOption.extend({
  layout,
  
  tagName: "div",
  attributeBindings: [],

  isChecked: alias("isSelected"),

  inputElementId: computed("elementId", function() {
    return this.get("elementId") + "-input";
  })
});