angular-material-rail-drawer-plugin icon indicating copy to clipboard operation
angular-material-rail-drawer-plugin copied to clipboard

Mode does not work for property binding values

Open AmandavZ opened this issue 4 years ago • 5 comments

Hi Jordan.

Thank you for the plugin and for sharing is with the community!

I would like to make the mode conditional (based on media queries) but as soon as I change the mode to a property binding value, it defaults to 'over'.

<mat-sidenav #appDrawer [mode]="mode" opened="true">

import { Component, ViewChild, ElementRef } from '@angular/core';

@Component()
export class AppComponent {
  mode = 'rail';
} 

Please can you point me in the right direction? Thanking you Amanda

AmandavZ avatar Jun 30 '20 19:06 AmandavZ

Apologies for the delay, Will address this issue tomorrow for you. Hoping to get a first major release out on sunday

Jordan-Hall avatar Jul 03 '20 10:07 Jordan-Hall

Hi @Jordan-Hall Is there any update about this issue?

Thanks!

mvmjacobs avatar Sep 08 '20 00:09 mvmjacobs

seems like this is still not supported

yalamber avatar Nov 19 '20 03:11 yalamber

Hey, been really busy and not taken a look. I'll have a look at the weekend

Jordan-Hall avatar Nov 19 '20 03:11 Jordan-Hall

This would be very useful for projects with strict type checking in template:

Type '"rail"' is not assignable to type 'MatDrawerMode'.ngtsc(2322)

Using [mode]="var" would allow us to typecast rail to any.

Ben0421 avatar Apr 20 '21 12:04 Ben0421

Issue closed please read https://github.com/Jordan-Hall/angular-material-rail-drawer-plugin/issues/56

Jordan-Hall avatar Oct 03 '23 15:10 Jordan-Hall