radioset.js 639 B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * radioset.js - radio set element for blessed
  3. * Copyright (c) 2013-2015, Christopher Jeffrey and contributors (MIT License).
  4. * https://github.com/chjj/blessed
  5. */
  6. /**
  7. * Modules
  8. */
  9. var Node = require('./node');
  10. var Box = require('./box');
  11. /**
  12. * RadioSet
  13. */
  14. function RadioSet(options) {
  15. if (!(this instanceof Node)) {
  16. return new RadioSet(options);
  17. }
  18. options = options || {};
  19. // Possibly inherit parent's style.
  20. // options.style = this.parent.style;
  21. Box.call(this, options);
  22. }
  23. RadioSet.prototype.__proto__ = Box.prototype;
  24. RadioSet.prototype.type = 'radio-set';
  25. /**
  26. * Expose
  27. */
  28. module.exports = RadioSet;