Quantcast

Grails 2.0 jQuery UI theme

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Grails 2.0 jQuery UI theme

U10C11
Hi,

I believe jQuery UI ships with "ui-lightness" theme, how do I change this theme to something else (example:'smoothness')

--
Regards,
U10C11
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Grails 2.0 jQuery UI theme

Marc Palmer Local

On 4 Aug 2011, at 05:15, U10C11 wrote:

> Hi,
>
> I believe jQuery UI ships with "ui-lightness" theme, how do I change this theme to something else (example:'smoothness')
>
Hi,

This is easy using the Resources framework. The jQ UI plugin declares its resources like this:

modules = {
    'jquery-theme' {
        resource id:'theme',
            url:[ plugin: 'jqueryUi', dir: 'jquery-ui/themes/ui-lightness',
                  file:'jquery-ui-'+jqver+'.custom.css'],
            attrs:[media:'screen, projection']
    }


}

So all you need to do is add resource override for that resource, pointing at whatever you want to include.

Please see the docs:

http://grails-plugins.github.com/grails-resources/guide/5.%20Overriding%20resources.html

Cheers


~ ~ ~
Marc Palmer
Freelancer (Grails/Groovy/Java)

Founder @ http://noticelocal.com | Developer @ http://weceem.org
Member @ http://spottymushroom.com | Contributor @ http://grails.org
Twitter: http://twitter.com/wangjammer5 | Resumé: http://www.anyware.co.uk/marc/
Blog: http://www.anyware.co.uk | Grails Rocks: http://www.grailsrocks.com


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...