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

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