Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
app/components/bosses/javascripts/init_component.js
{
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
You can’t perform that action at this time.