How to use the @material/menu-surface/util.getTransformPropertyName function in @material/menu-surface

To help you get started, we’ve selected a few @material/menu-surface 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 pgbross / vue-material-adapter / packages / mcwv-menu / menu-surface.js View on Github external
setTransformOrigin: origin => {
            this.$el.style.setProperty(
              `${util.getTransformPropertyName(window)}-origin`,
              origin,
            );
          },
        },
github material-components / material-components-web-components / packages / select / src / mwc-menu-ponyfill.ts View on Github external
export const setTransformOrigin = (menu: HTMLElement, origin: string) => {
  const propertyName = `${getTransformPropertyName(window)}-origin`;
  menu.style.setProperty(propertyName, origin);
};