Created
May 27, 2013 04:04
-
-
Save spacemunkay/5655147 to your computer and use it in GitHub Desktop.
app/components/bosses/javascripts/init_component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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