【问题标题】:Add side button in Brackets extension在括号扩展中添加侧边按钮
【发布时间】:2015-08-04 02:48:21
【问题描述】:

我正在开发 Brackets 扩展并希望添加侧边按钮。什么模块可以做到这一点?

【问题讨论】:

    标签: adobe-brackets


    【解决方案1】:

    简答:There is no module or API for it,你必须自己做。

    有用的答案: 您可以使用此片段将 Button 添加到工具栏:

    $toolbarButton = $(document.createElement("a"))
        .attr("id", "phanect-extensionname-toolbar-icon")
        .attr("href", "#")
        .attr("title", Strings.TOOLBAR_ICON_TOOLTIP)
        .on("click", function () {
            // Handle click
        })
        .appendTo($("#main-toolbar .buttons"));
    

    Button 的图标和 css 见Extension Icon Guidelines

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-11-06
      • 1970-01-01
      • 2012-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多