我正在尝试使用角度材料,如下所示
1) Have it positioned on the right
2) When opened its locked until a close button is pressed
3) Doesn't close when you click away from menu
4) When open its positioned on right
问题是,当您指定md-is-locked-open
时,它始终在右侧打开?
https://material.angularjs.org/latest/demo/sidenav
<md-sidenav class="md-sidenav-right md-whiteframe-4dp" md-component-id="right" md-is-locked-open="vm.isOpen('right')">
vm.isOpen = function(navID){
if(navID){
return $mdSidenav(navID).isOpen();
}
};
有什么想法吗?