« get me outta code hell

tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/ui/Label.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/Label.js')
-rw-r--r--ui/Label.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/Label.js b/ui/Label.js
index d1b3098..f2cd405 100644
--- a/ui/Label.js
+++ b/ui/Label.js
@@ -44,4 +44,9 @@ module.exports = class Label extends DisplayElement {
   get text() {
     return this.getDep('text')
   }
+
+  // Kinda bad, but works as long as you're overwriting the array instead of
+  // mutating it.
+  set textAttributes(val) { return this.setDep('textAttributes', val) }
+  get textAttributes() { return this.getDep('textAttributes') }
 }