How to use the @material/tab-bar.MDCTabBarFoundation.strings function in @material/tab-bar

To help you get started, we’ve selected a few @material/tab-bar 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 jamesmfriedman / rmwc / src / tabs / tab-bar.tsx View on Github external
getTabElements(): Element[] | null {
    return [].slice.call(
      this.root.ref &&
        this.root.ref.querySelectorAll(MDCTabBarFoundation.strings.TAB_SELECTOR)
    );
  }
github jamesmfriedman / rmwc / src / tabs / tab-bar-foundation.tsx View on Github external
getFocusedTabIndex: () => {
          const tabElements: Element[] = [].slice.call(
            rootEl.ref?.querySelectorAll(
              MDCTabBarFoundation.strings.TAB_SELECTOR
            )
          );
          const activeElement = document.activeElement as Element;
          return tabElements ? tabElements.indexOf(activeElement) : -1;
        },
        getIndexOfTabById: (id: string) => {