在Sencha Touch中使用不同的模板

时间:2013-12-27 13:20:27

标签: sencha-touch-2

我已经开始在SenchaTouch 2.3中构建应用。我需要实现一个大型表格,我的问题是:我可以建立一个手风琴来将表格“分组”在不同的部分吗?这可能是扩展的面板:

    > Personal Data
    Salutation: Select or Radio
    Firstname: Textfield
    Lastname: Textfield

    > Address
    Street: Textfield
    Zip: Textfield
    Country: Select
    ...

    > Other Data
    ...

也许有人可以提供一些例子。非常感谢你!

2 个答案:

答案 0 :(得分:0)

对于手风琴部分,最好的选择可能是使用库并将可折叠组件包装在formpanel中,使用fieldsets分组。此代码也可能有用。 http://kubahulewicz.net/2012/07/18/sencha-touch-2-searchable-grouped-list-with-expandcollapse-functionality/

答案 1 :(得分:0)

我终于找到了一个甜蜜的解决方案:https://github.com/mitchellsimoens/Ux.layout.Accordion

它按预期工作,可以根据我的需要进行修改。

相关问题