@material/auto-init

  • Version 11.0.0
  • Published
  • 50.8 kB
  • 2 dependencies
  • MIT license

Install

npm i @material/auto-init
yarn add @material/auto-init
pnpm add @material/auto-init

Overview

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

Index

Namespaces

namespace @material/auto-init

module '@material/auto-init' {}

    function mdcAutoInit

    mdcAutoInit: typeof mdcAutoInit;
    • Auto-initializes all MDC components on a page.

    interface MDCAttachable

    interface MDCAttachable {}

      method attachTo

      attachTo: <F extends any>(root: Element) => any;

        construct signature

        new <F extends MDCFoundation>(
        root: Element,
        foundation?: F,
        ...args: Array<unknown>
        ): MDCComponent<F>;

          namespace @material/auto-init.mdcAutoInit

          namespace @material/auto-init.mdcAutoInit {}

            function deregister

            deregister: (componentName: string) => void;

              function deregisterAll

              deregisterAll: () => void;

                function register

                register: (
                componentName: string,
                Constructor: MDCAttachable,
                warn?: (...data: any[]) => void
                ) => void;

                  Package Files (1)

                  Dependencies (2)

                  Dev Dependencies (0)

                  No dev dependencies.

                  Peer Dependencies (0)

                  No peer dependencies.

                  Badge

                  To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                  You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@material/auto-init.

                  • Markdown
                    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@material/auto-init)
                  • HTML
                    <a href="https://www.jsdocs.io/package/@material/auto-init"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>