Kendo UI plugin
Dependency :
compile ":kendo-ui:1.0.0"
Summary
A Grails plugin to supply Kendo UI (kendoui.web-dataviz.2011.3.1129.open-source) dependencies.
Installation
grails install-plugin kendo-ui
Description
How to use
General use
Put the following lines:<r:require module="kendo-ui"/>
<r:layoutResources/>Autocomplete
(This tag is available in 1.0.1.BUILD-SNAPSHOT only. Sorry for inconvenience.)Declare the following tag in your GSP file.<k:autocomplete id="autoComplete" controller="my" action="data" min-length="1" data-text-field="name" param-q="self.value()"/>
class MyController { def data() {
def q = params['q']
render(contentType: "text/json") {
array {
// You may use q to query and put results here
city name: "Berlin"
city name: "Bangkok"
}
}
}
}param-q in the tag maps to params['q'] in your controller.The latest build snapshot can be found on:https://chanwit.ci.cloudbees.com/job/grails-kendo-ui/ws/