Onsen에서의 setMenuPage
-
어두운은신
- 1건
- 170회
- 15-09-06 08:13
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
Name | Type | Description |
---|---|---|
pageUrl | String | Page URL. Can be either an HTML document or an <ons-template> . |
options | Object | Parameter object. |
options.closeMenu | Boolean | If true the menu will be closed after the menu page has been set. |
options.callback | Function | This function will be executed after the menu page has been set. |
openMenu([options])
Slide the above layer to reveal the layer behind.
Parameters
Name | Type | Description |
---|---|---|
options | Object | Parameter object. |
options.callback | Function | This function will be called after the menu has been opened. |
최고관리자
답변입니다...