How to use the @material/icon-toggle.MDCIconToggleFoundation.strings function in @material/icon-toggle

To help you get started, we’ve selected a few @material/icon-toggle 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 fintechstudios / angularjs-mdc / src / mdc-icon-toggle / mdc-icon-toggle.js View on Github external
import {directiveNormalize, convertStringsObjToBindingNames} from '../util/normalize';
import {BaseComponent} from '../util/base-component';

import {MDCIconToggleFoundation} from '@material/icon-toggle';
import {MDCRipple, MDCRippleFoundation} from '@material/ripple';


const bindings = {};
const STRING_BINDINGS = convertStringsObjToBindingNames(MDCIconToggleFoundation.strings, ['CHANGE_EVENT']);
const CHANGE_EVENT = MDCIconToggleFoundation.strings.CHANGE_EVENT;
STRING_BINDINGS.push('iconInnerSelector');

STRING_BINDINGS.forEach(function(a) {
  bindings[a] = '@';
});

bindings['ngDisabled'] = '
github fintechstudios / angularjs-mdc / src / mdc-icon-toggle / mdc-icon-toggle.js View on Github external
import {directiveNormalize, convertStringsObjToBindingNames} from '../util/normalize';
import {BaseComponent} from '../util/base-component';

import {MDCIconToggleFoundation} from '@material/icon-toggle';
import {MDCRipple, MDCRippleFoundation} from '@material/ripple';


const bindings = {};
const STRING_BINDINGS = convertStringsObjToBindingNames(MDCIconToggleFoundation.strings, ['CHANGE_EVENT']);
const CHANGE_EVENT = MDCIconToggleFoundation.strings.CHANGE_EVENT;
STRING_BINDINGS.push('iconInnerSelector');

STRING_BINDINGS.forEach(function(a) {
  bindings[a] = '@';
});

bindings['ngDisabled'] = '