메뉴 적용

· 10년 전 · 1647
1.jpg

http://sir.co.kr/so_app/278?cpage=1#c_282 에 있는 angular.js 메뉴 ( http://gnavarro77.github.io/angular-vertical-menu/#/basic-usage ) 를 적용 해 봤습니다.

 

그러나 이것은 메뉴가 아래처럼 컨트롤이 되다 보니..  수정하기가 힘드네요..

 

 

[code]

<ons-page style="background-color: white" ng-controller="angularVerticalMenuDemoCtrl as ctrl"

    >

  <vertical-menu config="ctrl.config"></vertical-menu>

 

</ons-page> 

[/code]

 

대부분 이런 구조가 dynamic template로 넘어 오다 보니 힘드네요..

 

아래와 같은 구조에서 하위 list가 컨트롤되는 구조가 되어야 되는데...

 

[code]

<ons-page style="background-color: white">

 

 <ons-list class=mtree>

  <ons-list-item><a href="#">Africa</a>

    <ons-list>

      <ons-list-item modifier='chevron'><a href="#">Algeria</a></ons-list-item>

      <ons-list-item modifier='chevron'><a href="#">Marocco</a></ons-list-item>

    </ons-list>

  </ons-list-item>

  <ons-list-item><a href="#">America</a>

    <ons-list>

      <ons-list-item modifier='chevron'><a href="#">North-America</a>

      </ons-list-item>

      <ons-list-item modifier='chevron'><a href="#">Middle-America</a>

      </ons-list-item>

    </ons-list>

  </ons-list-item>

  <ons-list-item modifier='chevron'><a href="#">Arctica</a></ons-list-item>

</ons-list>

</ons-page> 

[/code]

첨부파일

1.jpg (38.2 KB)
0회 2015-09-06 05:38
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

앱개발

+
분류 제목 글쓴이 날짜 조회
10년 전 조회 1,582
10년 전 조회 1,725
10년 전 조회 968
10년 전 조회 1,724
10년 전 조회 1,598
10년 전 조회 2,437
10년 전 조회 1,049
10년 전 조회 1,452
10년 전 조회 2,334
10년 전 조회 1,458
10년 전 조회 982
10년 전 조회 1,267
10년 전 조회 1,207
10년 전 조회 1,586
10년 전 조회 1,648
10년 전 조회 2,346
10년 전 조회 1,163
10년 전 조회 1,393
10년 전 조회 1,416
10년 전 조회 1,861
10년 전 조회 2,429
10년 전 조회 1,783
10년 전 조회 1,707
10년 전 조회 1,698
10년 전 조회 1,235
10년 전 조회 1,749
10년 전 조회 1,459
10년 전 조회 2,474
10년 전 조회 1,269
10년 전 조회 2,686
🐛 버그신고