angular-material-sidemenu icon indicating copy to clipboard operation
angular-material-sidemenu copied to clipboard

How to by default enable one of the md-sidemenu-content?

Open NetajiBandi opened this issue 8 years ago • 10 comments

Hi Marcos, could you please tell us how to enable one of the md-sidemenu-content by default on load

NetajiBandi avatar Jun 23 '16 11:06 NetajiBandi

+1

kysela-petr avatar Jul 11 '16 17:07 kysela-petr

+1 This would be a great addtion

nikeshbhagat avatar Aug 09 '16 11:08 nikeshbhagat

+1

jhondev avatar Sep 26 '16 20:09 jhondev

+1

shennero avatar Feb 14 '17 14:02 shennero

+1

hvaleanu avatar Apr 25 '17 13:04 hvaleanu

+1

tianctrl avatar Oct 12 '17 09:10 tianctrl

I was looking for the same answer and found this rather hacky way to achieve what I wanted ... Add a hidden DIV with ng-init="$parent.$mdSidemenuContent.visible = true"within the content block you want to expand.

<md-sidemenu-content md-heading="Applications" md-arrow="true">
  <div ng-init="$parent.$mdSidemenuContent.visible = true" ng-hide></div>
  <md-sidemenu-button md-no-ink title="Lodge Enquiry" ui-sref="root.lodge">Lodge Enquiry</md-sidemenu-button>
</md-sidemenu-content>

Obviously would be much nicer to have an attribute we can set on the <md-sidemenu-content /> element.

garycjohnson avatar Oct 19 '17 04:10 garycjohnson

I created an option for this, After the PR approved, you can use the visible option to enable the initial state of side-menu-content.

Ex. ...

andersonfalcao avatar Nov 09 '17 11:11 andersonfalcao

Hi is this feature already merged?

blindsz avatar Feb 18 '18 16:02 blindsz

I think this feature is not working. this will need some update

blindsz avatar Feb 18 '18 16:02 blindsz