Closed Geryy closed 6 years ago
Hi, it should be possible with formatValue
. Try something like this:
$.progress.formatValue = function(val){ return "custom text\n" + value; };
Let me know if this works out.
I test it and.. yes, this work fine! Thanks @manumaticx and nice widget!
great! thank you <3
Sorry for that but i have a last question. Now i want align the text, any solution?
Unfortunately you can't apply properties to the label through the widget API. I'll think about how to add this functionality.
To align the text, you have to change the widget code and set $.label.textAlign = Ti.UI.TEXT_ALIGNMENT_CENTER
Ok thanks for all :D!
@Geryy hey, I've just added classes to view and label.
After updating the widget you should be able to style it without hacking the widget source.
". circularprogress_label": {
textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER
}
i want put Text + value. Photo exemple:
its all! thanks!