diff --git a/CHANGELOG.md b/CHANGELOG.md index 593fc5b9..669e6b0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,10 @@ - **new** (piano) keyboard widget - matrices: fixed `preArgs` option; added `split` option (default to `false`), *it changes the default osc messages formatting for these widgets* - icons in labels are inserted using the `^` prefix - + - text: icons support in value +- tabs + - icons support in label + ## 0.11.6 - widgets diff --git a/src/browser/js/app/widgets/plots/text.js b/src/browser/js/app/widgets/plots/text.js index 11e69573..0ac11b6d 100644 --- a/src/browser/js/app/widgets/plots/text.js +++ b/src/browser/js/app/widgets/plots/text.js @@ -1,3 +1,5 @@ +var {iconify} = require('../../utils') + module.exports.options = { type:'text', id:'auto', @@ -36,7 +38,7 @@ module.exports.create = function(widgetData,container) { widget.setValue = function(v){ text = typeof v=='object' && !v.length?label:v - widget.text(text) + widget.html(iconify(text)) } widget.getValue = function(){