Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
initComponent: function(){
//your init component
colorBlock: function(value){
return Ext.String.format('<div style="display:inline-block">{1}</div><div style="background-color:#{0};width:50px;height:10px;display:inline-block;margin:0 5px 0 5px;border:solid;border-color:gray;border-width:1px;"></div>', value, value);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment