Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NetajiBandi opened this issue Jun 23, 2016 · 10 comments
Open

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

NetajiBandi opened this issue Jun 23, 2016 · 10 comments

Comments

@NetajiBandi
Copy link

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

@kysela-petr
Copy link

+1

@nikeshbhagat
Copy link

+1
This would be a great addtion

@jhondev
Copy link

jhondev commented Sep 26, 2016

+1

3 similar comments
@shennero
Copy link

+1

@hvaleanu
Copy link

+1

@tianctrl
Copy link

+1

@garycjohnson
Copy link

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.

@andersonfalcao
Copy link
Contributor

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. ...

@blindsz
Copy link

blindsz commented Feb 18, 2018

Hi is this feature already merged?

@blindsz
Copy link

blindsz commented Feb 18, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants