Hi folks.
I found this exemple at stackoverflow:
http://stackoverflow.com/questions/26395286/qooxdoo-desktop-fullcalendar-integration
So, I dowloaded a resent version of FullCalendar (2.6.1) and create a custom
widget as wrapper:
<pre>
qx.Class.define('rigel.ui.Calendar', {
extend: qx.ui.core.Widget,
construct: function() {
this.base(arguments);
this.addListenerOnce("appear", this._appearRenderer, this);
},
properties: {
// overridden
appearance :
{
refine: true,
init: "fullcalendar"
}
},
members: {
_appearRenderer: function(event) {
var element =
event.getTarget().getContentElement().getDomElement();
element.style.fontFamily = "JosefinSlab";
$(element).fullCalendar();
}
}
});
</pre>
As you can see I set directly "JosefinSlab" to fontFamily style property,
because at moment is tho only way that I got it work.
I try defining it in my theme Font with "fullcalendar" key followind this
doc: http://qooxdoo.readthedocs.org/en/latest/pages/desktop/ui_webfonts.html
Also I set an Appearance definition:
"fullcalendar": {
style: function(states) {
return {
font: "fullcalendar"
};
}
}
But I cannot get it work.
Some idea to set the font family from theme files?
Thanks.
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Trying-to-set-a-font-to-a-custom-widget-fullcalendar-wrapper-tp7588109.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel