forked from amitjain1982/remote-pagination
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RemotePaginationGrailsPlugin.groovy
49 lines (40 loc) · 1.63 KB
/
RemotePaginationGrailsPlugin.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
class RemotePaginationGrailsPlugin {
// the plugin version
def version = "0.4.8"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "2.0.3 > *"
// the other plugins this plugin depends on
def dependsOn = [:]
// resources that are excluded from plugin packaging
def pluginExcludes = [
"grails-app/views/error.gsp",
"web-app/images",
"web-app/css"
]
def author = "Amit Jain"
def authorEmail = "amitjain1982@gmail.com"
def title = "Remote Pagination Plugin"
def description = '''
Remote-Pagination plugin provides tags for pagination and to sort columns without page refresh, using ajax and loads only the list of objects needed. It supports multiple paginations as well. More than one remotePaginate, remotePageScroll, remoteNonStopPageScroll and remoteSortableColumn can be used on the same page unlike non-ajax pagination tags.
'''
// URL to the plugin's documentation
def documentation = "https://github.com/amitjain1982/remote-pagination"
def doWithSpring = {
}
def doWithApplicationContext = { applicationContext ->
if(!application.config.grails?.plugins?.remotepagination?.max){
application.config.grails.plugins.remotepagination.max = 10
}
if(!application.config.grails?.plugins?.remotepagination?.enableBootstrap){
application.config.grails.plugins.remotepagination.enableBootstrap = false
}
}
def doWithWebDescriptor = { xml ->
}
def doWithDynamicMethods = { ctx ->
}
def onChange = { event ->
}
def onConfigChange = { event ->
}
}