How to use the @material/auto-init.register function in @material/auto-init

To help you get started, we’ve selected a few @material/auto-init 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 otto-de-legacy / security-belt / app / js / client.js View on Github external
/* eslint-env browser */
'use strict';

import '../styles/style.scss';

import mdcAutoInit from '@material/auto-init';
import {MDCRipple} from '@material/ripple';
import {MDCTabBar, MDCTabBarScroller} from '@material/tabs';
import {initSkillActions} from "./skillToggle";
import {initTabbing} from './skillFilter';

mdcAutoInit.register('MDCTabBarScroller', MDCTabBarScroller);
mdcAutoInit.register('MDCTabBar', MDCTabBar);
mdcAutoInit.register('MDCRipple', MDCRipple);
mdcAutoInit();

initTabbing(); // This needs to happen after UI is initialized since we remove one of the tab-indicators here.
initSkillActions();
github otto-de-legacy / security-belt / app / js / client.js View on Github external
/* eslint-env browser */
'use strict';

import '../styles/style.scss';

import mdcAutoInit from '@material/auto-init';
import {MDCRipple} from '@material/ripple';
import {MDCTabBar, MDCTabBarScroller} from '@material/tabs';
import {initSkillActions} from "./skillToggle";
import {initTabbing} from './skillFilter';

mdcAutoInit.register('MDCTabBarScroller', MDCTabBarScroller);
mdcAutoInit.register('MDCTabBar', MDCTabBar);
mdcAutoInit.register('MDCRipple', MDCRipple);
mdcAutoInit();

initTabbing(); // This needs to happen after UI is initialized since we remove one of the tab-indicators here.
initSkillActions();
github otto-de-legacy / security-belt / app / js / client.js View on Github external
/* eslint-env browser */
'use strict';

import '../styles/style.scss';

import mdcAutoInit from '@material/auto-init';
import {MDCRipple} from '@material/ripple';
import {MDCTabBar, MDCTabBarScroller} from '@material/tabs';
import {initSkillActions} from "./skillToggle";
import {initTabbing} from './skillFilter';

mdcAutoInit.register('MDCTabBarScroller', MDCTabBarScroller);
mdcAutoInit.register('MDCTabBar', MDCTabBar);
mdcAutoInit.register('MDCRipple', MDCRipple);
mdcAutoInit();

initTabbing(); // This needs to happen after UI is initialized since we remove one of the tab-indicators here.
initSkillActions();

@material/auto-init

Declarative, easy-to-use auto-initialization for Material Components for the web

MIT
Latest version published 2 years ago

Package Health Score

85 / 100
Full package analysis