| Page 1 of 1 | [ 2 posts ] |
Khoa Bui
|
Although I can skin YUI3 widgets with my own style, the same process cannot be applied for 2in3 widgets.
See the code snippet below: Code: YUI({ modules: { myYui2Datatable: { after: ['yui2-datatable'], fullpath: path_to_my_customize_datatable_css, type: 'css' }, myYui3Panel: { after: ['panel'], fullpath: path_to_my_customize_panel_css, type: 'css' } }, groups: { yui2: { base: '/2in3/2.9.0/build/', patterns: { 'yui2-': { configFn: function(me) { if(/-skin|reset|fonts|grids|base/.test(me.name)) { me.type = 'css'; me.path = me.path.replace(/\.js/, '.css'); me.path = me.path.replace(/\/yui2-skin/, '/assets/skins/sam/yui2-skin'); } } } } } } }).use('myYui2Datatable', 'yui2-datatable', 'myYui3Panel', 'panel', function(Y) { // use panel // use datatable }); The panel's style is customizable because my panel's css file is loaded after YUI3 panel's css file. But this method does not work for 2in3 datatable. So, how can I customize the 2in3 widget? |
Alberto SantiniYUI Contributor
|
|
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group