neo-blessed/lib/widget.js

45 lines
733 B
JavaScript
Raw Normal View History

/**
2013-07-24 19:40:05 +00:00
* widget.js - high-level interface for blessed
2015-02-01 15:22:39 +00:00
* Copyright (c) 2013-2015, Christopher Jeffrey and contributors (MIT License).
2013-07-24 19:40:05 +00:00
* https://github.com/chjj/blessed
*/
2015-05-06 06:20:28 +00:00
var widget = exports;
widget.classes = [
'Node',
'Screen',
'Element',
'Box',
'Text',
'Line',
'ScrollableBox',
'ScrollableText',
'List',
'Form',
'Input',
'Textarea',
'Textbox',
'Button',
'ProgressBar',
'FileManager',
'Checkbox',
'RadioSet',
'RadioButton',
'Prompt',
'Question',
'Message',
'Loading',
'Listbar',
'Log',
'Table',
'ListTable',
'Terminal',
'Image'
];
widget.classes.forEach(function(name) {
var file = name.toLowerCase();
widget[name] = widget[file] = require('./widgets/' + file);
});