【问题标题】:Display custom footer for twitter bootstrap typeahead plugin显示 twitter bootstrap typeahead 插件的自定义页脚
【发布时间】:2013-04-06 09:16:08
【问题描述】:

我正在尝试使用 bootstrap 和 typeahead 插件在 twitter 上创建类似搜索功能的功能。

到目前为止,我已经通过编译来自 ajax 调用的结果列表并在“荧光笔”函数中引用它,设法根据类型(人/等)以不同的方式显示结果。

我想做的是为弹出的下拉菜单显示一个自定义页脚,其中包含 twitter 上的结果(“查看所有结果”、“搜索所有人进行测试”等)。

【问题讨论】:

    标签: search twitter-bootstrap customization typeahead.js


    【解决方案1】:
    $('.typeahed').typeahed(null, {
        name: 'suggestions',
        templates: {
            footer: Handlebars.compile('Results for {{ query }}'),
        }
    });
    

    【讨论】:

    • 这个答案不被接受,但我可以确认它有效!
    猜你喜欢
    • 2012-03-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多