Onsen에서의 setMenuPage > 앱개발

앱개발

Onsen에서의 setMenuPage 정보

Onsen에서의 setMenuPage

본문

http://sir.co.kr/so_app/278 에서 멀티레벨 푸시 메뉴와 같은 옵션이 있는 것 같습니다. 

 

http://onsen.io/reference/ons-sliding-menu.html#method-setMenuPage 

 

구글을 해보니 Example이 없는데..  아래를 이용해서 한번 만들어 봐야 겠습니다.

 

 

setMenuPage(pageUrl, [options]) 

Show the page specified in pageUrl in the side menu pane.

Parameters
NameTypeDescription
pageUrlStringPage URL. Can be either an HTML document or an <ons-template>.
optionsObjectParameter object.
options.closeMenuBooleanIf true the menu will be closed after the menu page has been set.
options.callbackFunctionThis function will be executed after the menu page has been set.

openMenu([options]) 

Slide the above layer to reveal the layer behind.

Parameters
NameTypeDescription
optionsObjectParameter object.
options.callbackFunctionThis function will be called after the menu has been opened.

 

공감
0
  • 복사

댓글 3개

© SIRSOFT
현재 페이지 제일 처음으로