angular-material-rail-drawer-plugin
angular-material-rail-drawer-plugin copied to clipboard
Mode does not work for property binding values
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
Apologies for the delay, Will address this issue tomorrow for you. Hoping to get a first major release out on sunday
Hi @Jordan-Hall Is there any update about this issue?
Thanks!
seems like this is still not supported
Hey, been really busy and not taken a look. I'll have a look at the weekend
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.
Issue closed please read https://github.com/Jordan-Hall/angular-material-rail-drawer-plugin/issues/56