How to use the @material/drawer.util.getTransformPropertyName function in @material/drawer

To help you get started, we’ve selected a few @material/drawer 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 trimox / angular-mdc-web / src / lib / drawer / persistent / drawer-persistent.ts View on Github external
setTranslateX: (value) => {
      if (this.drawerNav) {
        this.renderer.setProperty(this.drawerNav.elementRef, util.getTransformPropertyName(),
          value === null ? null : `translateX(${value}px)`);
      }
    },
    getFocusableElements: () => {
github src-zone / material / bundle / src / components / drawer / mdc.drawer.directive.ts View on Github external
setTranslateX: (value) => this.forDrawer((d) => {
                return d._elm.nativeElement.style.setProperty(util.getTransformPropertyName(),
                    value === null ? null : `translateX(${value}px)`);
            }),
            getFocusableElements: () => this.forDrawer((d) => {
github trimox / angular-mdc-web / src / lib / drawer / temporary / drawer-temporary.ts View on Github external
setTranslateX: (value) => {
      if (this.drawerNav) {
        this.renderer.setProperty(this.drawerNav.elementRef, util.getTransformPropertyName(),
          value === null ? null : `translateX(${value}px)`);
      }
    },
    updateCssVariable: (value: string) => {