atom-toolbar

Displays a configurable toolbar at the top of the workspace.

dart-atom

69,822

14

0.1.6

MIT

GitHub

This package provides the following services:

atom-toolbar package

Displays a configurable toolbar at the top of the workspace.

API

This package provides a service that you can use in other Atom packages. To use it, include atom-toolbar in the consumedServices section of your package.json:

{
  "name": "my-package",
  "consumedServices": {
    "atom-toolbar": {
      "versions": {
        "^1.0.0": "consumeToolbar"
      }
    }
  }
}

Then, in your package's main module, call methods on the service:

module.exports =
  activate: -> # ...

  consumeToolbar: (toolbar) ->
    @toolbarTile = toolbar.addLeftTile(item: myElement, priority: 100)

  deactivate: ->
    # ...
    @toolbarTile?.destroy()
    @toolbarTile = null

The atom-toolbar API has four methods:

The item parameter to these methods can be a DOM element, a jQuery object, or a model object for which a view provider has been registered in the the view registry.

All of these methods return Tile objects, which have the following methods:

Credits and Attributions

This package was forked from Atom's status-bar package.