代码之家  ›  专栏  ›  技术社区  ›  Zoti

具有无限滚动的extjs 6现代组合框

  •  0
  • Zoti  · 技术社区  · 7 年前

    基于 this 评论来自 米切尔·斯莫恩斯 在sencha论坛上,我尝试在 extjs 6.5.2现代版 .

    问题是 combobox 存储到 virtual store 产生此错误: Uncaught TypeError: a.setExtraKeys is not a function .

    我还设置了 floatedPicker 收件人:

    {
    xtype: 'boundlist',
    infinite: true,
    // BoundListNavigationModel binds to input field
    // Must only be enabled when list is visible
    navigationModel: {
        disabled: true
    },
    scrollToTopOnRefresh: false,
    loadingHeight: 70,
    maxHeight: 300,
    floated: true,
    axisLock: true,
    hideAnimation: null
    }
    

    有没有办法在extjs 6 modern中实现无限滚动组合框,而不将默认选择器更改为网格?

    1 回复  |  直到 7 年前
        1
  •  1
  •   Zoti    7 年前

    好吧,这确实有效:

    floatedPicker: {
                xtype: 'boundlist',
                infinite: true,
                // BoundListNavigationModel binds to input field
                // Must only be enabled when list is visible
                navigationModel: {
                    disabled: true
                },
                plugins: {
                    listpaging: {
                        autoPaging: true,
                        loadMoreText: 'More records..',
                        noMoreRecordsText: 'No more records.'
                    }
                },
                scrollToTopOnRefresh: false,
                loadingHeight: 70,
                maxHeight: 300,
                floated: true,
                axisLock: true,
                hideAnimation: null,
                variableHeights: true
            }
    

    加载时有点难看,但它可以工作。

    我还使用了 Ext.data.store . 虚拟存储不使用组合框。