How to use the @material/checkbox.MDCCheckboxFoundation.strings function in @material/checkbox

To help you get started, we’ve selected a few @material/checkbox 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 secondstreet / ember-material-components-web / addon / components / mdc-checkbox.js View on Github external
import { A } from '@ember/array';
import Component from '@ember/component';
import { set, get } from '@ember/object';
import { run, next, scheduleOnce } from '@ember/runloop';
import layout from '../templates/components/mdc-checkbox';
import { addClass, removeClass, MDCComponent } from '../mixins/mdc-component';
import getElementProperty from '../utils/get-element-property';
import { MDCCheckboxFoundation } from '@material/checkbox';
import SupportsBubblesFalse from '../mixins/supports-bubbles-false';

const { ANIM_END_EVENT_NAME } = MDCCheckboxFoundation.strings;

export default Component.extend(MDCComponent, SupportsBubblesFalse, {
  //region Attributes
  /**
   * This property is considered read-only by the component, and will not be
   * updated by user action. Please see `onchange` to handle user actions.
   * @type {Boolean}
   */
  checked: false,
  /**
   * This property is considered read-only by the component, and will not be
   * updated by user action.
   * @type {Boolean}
   */
  indeterminate: false,
  /**