相同配置,使用v1.0.1就ok了,换成v1.1.0和1.1.1-core后,刷新页面前还可以,但是刷新后down(下拉菜单全部down,bootstrap-modal变得奇怪和数据表的风格改变了例如)我的配置是这样的:
datatables.properties:
#File containing Dandelion Datatables properties
main.standalone=true
global.css.theme=bootstrap3
global.feature.displayLength=25
global.feature.pagingType=listbox
global.css.class=table table-bordered table-striped dataTable
global.feature.dom = '<"row"<"col-sm-6"l><"col-sm-6"0rf>><"row"<"col-sm-12"t>><"row"<"col-sm-5"i><"col-sm-7"p>>'
global.feature.autoWidth = false
global.feature.processing=false
dandelion.properties:
bundle.includes=dt-functions
asset.minification = true
asset.css.excludes = datatables
dt-functions.json:
{
"bundle" : "dt-functions",
"assets": [
{
"name": "dt-functions",
"version": "0.1",
"type": "js",
"locations": {
"classpath": "public/js/dt-functions.js"
}
},
{
"name": "datatable",
"version": "1.10.7",
"type": "js",
"locations": {
"classpath": "public/plugins/datatables/jquery.dataTables.min.js"
}
},
{
"name": "datatables",
"version": "1.10.7",
"type": "css",
"locations": {
"classpath": "public/plugins/datatables/jquery.dataTables.min.css"
}
},
{
"name": "bootstrap3-theme-js",
"version": "1.10.7",
"type": "js",
"locations": {
"classpath": "public/plugins/datatables/dataTables.bootstrap.min.js"
}
},
{
"name": "bootstrap3-theme-css",
"version": "1.10.7",
"type": "css",
"locations": {
"classpath": "public/plugins/datatables/dataTables.bootstrap.css"
}
}
]
}
因为 https://github.com/dandelion/dandelion/issues/66
我像这样使用maven:
<properties>
<dandelion.core.version>1.1.1</dandelion.core.version>
<dandelion.datatable.version>1.1.0</dandelion.datatable.version>
</properties>
<dependency>
<groupId>com.github.dandelion</groupId>
<artifactId>datatables-thymeleaf</artifactId>
<version>${dandelion.datatable.version}</version>
<exclusions>
<exclusion>
<groupId>com.github.dandelion</groupId>
<artifactId>dandelion-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.dandelion</groupId>
<artifactId>datatables-spring3</artifactId>
<version>${dandelion.datatable.version}</version>
<exclusions>
<exclusion>
<groupId>com.github.dandelion</groupId>
<artifactId>dandelion-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.dandelion</groupId>
<artifactId>dandelion-core</artifactId>
<version>${dandelion.core.version}</version>
</dependency>