Skip to content

vslinko/atom-message-panel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atom message panel

An easy way to display your messages in Atom.

Usage example

// require the module
var msgPanel = require('atom-message-panel');

// init my panel with a nice title
msgPanel.init('My panel');
// add a message for the world to see
msgPanel.append.header('Nice big message, using Atom message panel', 'text-info');

Why

To streamline how plugin messages are displayed in Atom.

API

// Initializes your panel with a 'title'
init(title)
// Doing some panel body clean up
clear()
// Removes your panel from this world
destroy()
// Only show the panel header, with the latest appended child (header, message or lineMessage)
fold(speed)
// Back to normal
unfold(speed)
// Adds a big nice header
append.header(text, className)
// Tell the people what your fell
append.message(msg, className)
// A line connected message, that will send the user to that line on click
append.lineMessage(line, character, msg, preview, className)
// Lets you add classes to specific line numbers
append.lineIndicators(lines, className)

License

MIT © tcarlsen

About

An easy way to display your messages in Atom

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%