Last updated by admin 4 months ago
grails install-plugin kendo-ui
Last updated by chanwit 3 months ago
How to use
General use
Put the following lines:
<r:require module="kendo-ui"/>
<r:layoutResources/>
in the head tag (applicable for both Sitemesh template, and normal GSP files).
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()"/>
Then write your controller like this:
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"
}
}
}
}
Please note that
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/
Last updated by admin 4 months ago
Last updated by admin 4 months ago