Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leandrogehlen/grails-easyui
jQuery EasyUI resources and taglibs
https://github.com/leandrogehlen/grails-easyui
easyui grails jquery
Last synced: about 1 month ago
JSON representation
jQuery EasyUI resources and taglibs
- Host: GitHub
- URL: https://github.com/leandrogehlen/grails-easyui
- Owner: leandrogehlen
- Created: 2013-02-12T11:05:28.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-08T20:51:10.000Z (over 10 years ago)
- Last Synced: 2023-04-12T18:31:02.171Z (over 1 year ago)
- Topics: easyui, grails, jquery
- Language: Groovy
- Homepage:
- Size: 555 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Grails EasyUI
=============Grails EasyUI Plugin helps you to develop rich applications using the jQuery JavaScript library EasyUI framework.
The plugin implements taglibs for writing the compontentes in gsp, plus the scripts to generate scaffold to produce CRUD quick and powerful.
Another feature created is EasyuiDomainClassMarshaller that simplifies the rendering of domain objects to compatible JSON components JQuery EasyUI.
Including the resources
------------------------You must use the Grails resources framework to make use of this plugin.
Download http://www.jeasyui.com/download/, extracting content in webapp/js/jquery-easyui
jquery-easyui - jQuery EasyUI framework (latest version)
Configuration
-------------
The following settings are available
```groovy
// available "en", "pt_BR"
grails.plugin.easyui.locale = 'en'//folder name found in "jquery-easyui/themes"
grails.plugin.easyui.theme = 'black'//version defined in the file "jquery-1.8.0.min.js" found in "jquery-easyui"
grails.plugin.easyui.jquery.version = '1.8.0'//Auto register marshaller on bootstrap
grails.plugin.easyui.register.marshaller = true
```TagLib
------```xml
```
```xml
Hello World Demo
Some Content.
```
Scaffold
--------
We can generate scaffold with commands:```
grails easyui-generate-controller [domainClass]
grails easyui-generate-view [domainClass]
grails easyui-generate-all [domainClass]
grails easyui-install-templates
```Registering DomainClassMarshaller
---------------------------------To integrate the data with the components you need to register the domain class renderer. To register this class it is necessary to change the file BootStrap.groovy as follows:
```groovy
import grails.converters.JSON
import org.codehaus.groovy.grails.commons.GrailsApplication
import org.grails.plugins.easyui.EasyuiDomainClassMarshaller...
class BootStrap {
GrailsApplication grailsApplication
def init = { servletContext ->
JSON.registerObjectMarshaller(new EasyuiDomainClassMarshaller(true, grailsApplication))
...
}
...
}
```