Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring mvc dandelion datatables spring mvc运行时选项_Spring Mvc_Themes_Datatables_Jquery Ui Theme_Dandelion - Fatal编程技术网

Spring mvc dandelion datatables spring mvc运行时选项

Spring mvc dandelion datatables spring mvc运行时选项,spring-mvc,themes,datatables,jquery-ui-theme,dandelion,Spring Mvc,Themes,Datatables,Jquery Ui Theme,Dandelion,我试图在《蒲公英》中使用jqueryui主题。所以我从这个开始。但是,我们可以在运行时传递操作吗 <datatables:table id="users" data="${list}" row="user" rowIdBase="userId" rowIdPrefix="person_" pageable="true" displayLength="5" filterable="true" processing="true" autoWidth="tr

我试图在《蒲公英》中使用jqueryui主题。所以我从这个开始。但是,我们可以在运行时传递
操作吗

<datatables:table id="users" data="${list}" row="user"
     rowIdBase="userId" rowIdPrefix="person_"  pageable="true" displayLength="5"       
     filterable="true"  processing="true" autoWidth="true" 
     theme="jqueryui" 
     themeOption="<spring:theme code="theme"/>" 
我的主题名称是
默认值
绿色
橙色
紫色
,以及
红色

datatables
我想使用的主题分别是
start
southstreet
humanity
peppergrinder
flick


如何实现这一点?

所有标记属性都接受运行时表达式值

也许您应该尝试以下语法:

例1:

<spring:theme code="theme" var="springTheme" />
<datatables:table id="users" data="${list}" row="user"
     rowIdBase="userId" rowIdPrefix="person_"  pageable="true" displayLength="5"       
     filterable="true"  processing="true" autoWidth="true" 
     theme="jqueryui" 
     themeOption="${springTheme}">
     ...
</datatables:table>

...
例2:

<datatables:table id="users" data="${list}" row="user"
     rowIdBase="userId" rowIdPrefix="person_"  pageable="true" displayLength="5"       
     filterable="true"  processing="true" autoWidth="true" 
     theme="jqueryui" 
     themeOption="${theme}">
    ...
</datatables>

...

(StackOverflow要求的免责声明:我是《蒲公英》的作者)

示例1为我工作。。。非常感谢。。。你能给我推荐一下
red
colorccss???的主题吗?如果我想使用自定义主题,请告诉我如何使用自定义主题。。。。提前感谢您……蒲公英数据表通过以下组合支持所有主题:例如:theme=“jqueryui”/themeOption=“sunny”。如何应用从名为
Purpletheme
下载的我自己的主题?请为此创建另一个问题;-)
<spring:theme code="theme" var="springTheme" />
<datatables:table id="users" data="${list}" row="user"
     rowIdBase="userId" rowIdPrefix="person_"  pageable="true" displayLength="5"       
     filterable="true"  processing="true" autoWidth="true" 
     theme="jqueryui" 
     themeOption="${springTheme}">
     ...
</datatables:table>
<datatables:table id="users" data="${list}" row="user"
     rowIdBase="userId" rowIdPrefix="person_"  pageable="true" displayLength="5"       
     filterable="true"  processing="true" autoWidth="true" 
     theme="jqueryui" 
     themeOption="${theme}">
    ...
</datatables>