【问题标题】:How to add button at bottom of dropdown in selectize js如何在选择js的下拉列表底部添加按钮
【发布时间】:2018-02-17 04:40:25
【问题描述】:

如何在 div.selectize-dropdown-content div 的兄弟中添加按钮。 所以该列表项应该像往常一样滚动,但该按钮应该固定在底部。

我已经完成了 selectize js 的插件,但所有的渲染功能都只适用于列表、标题和项目。

任何帮助都将不胜感激。

【问题讨论】:

    标签: selectize.js


    【解决方案1】:
    var $select = $('#select-state').selectize({
                    sortField: 'text',
                    hideSelected: false,
                    plugins: {
                        'dropdown_header': {
                            title: '<button class="btn full-width ng-binding" data-options="modal"><i class="fa fa-plus"></i> Yeni Ekle</button>'
                        }
                    }
                });
    

    【讨论】:

      猜你喜欢
      • 2021-09-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多