本文介绍了OnsenUI的手风琴列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OnsenUI可以做到吗? http://codepen.io/ionic/pen/uJkCz

Is this possible with OnsenUI? http://codepen.io/ionic/pen/uJkCz

我确定在1.1更新之前,我已经在文档中看到了它的演示,但现在找不到了.是否存在这样的演示,更重要的是,是否可以使用框架来实现?

I am sure I saw a demo of it in the docs before the 1.1 update, but I can't find it now. Does such a demo exist and, more importantly, is it possible to do this with the framework?

以下琐碎的示例并不令人鼓舞:

The trivial example below is not encouraging:

<ons-list>           
    <ons-list-item modifier="chevron">One</ons-list-item>
    <ons-list-item modifier="chevron">
        <ons-list>           
            <ons-list-item modifier="chevron">One</ons-list-item>
            <ons-list-item modifier="chevron">Two</ons-list-item>
        </ons-list>
    </ons-list-item>
</ons-list>

推荐答案

是的.请参阅 http://codepen.io/onsen/pen/vjlsF

请注意,不同于离子型,Onsen UI最初不包括ngAnimate.您应该使用以下声明.

Note that different from ionic, Onsen UI does not include ngAnimate initially. You should use thefollowing statement.

angular.module('myApp',['onsen','ngAnimate'])

这篇关于OnsenUI的手风琴列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 18:28