text: icons support

This commit is contained in:
jean-emmanuel 2016-11-24 00:58:50 +01:00
parent 0c922f8184
commit 93150f893b
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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(){