Can I use Tabulator js library in my java Spring + Thymeleaf project?












0















I want to add Tabulator js to my java project.
I added tabulator.min.js, tabulator.min.css to resources folder.
After that added to my html page these dependencies as recommending in readme.md.






<link rel="stylesheet" th:href="@{/css/tabulator.min.css}">
<script type="text/javascript" th:src="@{/js/tabulator.min.js}"></script>





Now my tables view all elements, that I have in the html page, but not correct.



In the documentation of Tabulator is example how to create header and table,






var table = new Tabulator("#example-table", {
columns:[
{title:"Name", field:"name", sorter:"string", width:200, editor:true},
{title:"Age", field:"age", sorter:"number", align:"right", formatter:"progress"},
{title:"Gender", field:"gender", sorter:"string", cellClick:function(e, cell){console.log("cell click")},},
{title:"Height", field:"height", formatter:"star", align:"center", width:100},
{title:"Favourite Color", field:"col", sorter:"string"},
{title:"Date Of Birth", field:"dob", sorter:"date", align:"center"},
{title:"Cheese Preference", field:"cheese", sorter:"boolean", align:"center", formatter:"tickCross"},
],
});





but I want to create header in html, is it possible?



And put data in server-side part from controllers, not as






var data = [
{id:1, name:"Oli Bob", age:"12", col:"red", dob:""},
{id:2, name:"Mary May", age:"1", col:"blue", dob:"14/05/1982"},
{id:3, name:"Christine Lobowski", age:"42", col:"green", dob:"22/05/1982"},
{id:4, name:"Brendon Philips", age:"125", col:"orange", dob:"01/08/1980"},
{id:5, name:"Margret Marmajuke", age:"16", col:"yellow", dob:"31/01/1999"},
];





enter image description here



enter image description here










share|improve this question























  • could you be a bit more specific about what you mean by "create header in html,"? Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table

    – Oli Folkerd
    Nov 22 '18 at 21:51
















0















I want to add Tabulator js to my java project.
I added tabulator.min.js, tabulator.min.css to resources folder.
After that added to my html page these dependencies as recommending in readme.md.






<link rel="stylesheet" th:href="@{/css/tabulator.min.css}">
<script type="text/javascript" th:src="@{/js/tabulator.min.js}"></script>





Now my tables view all elements, that I have in the html page, but not correct.



In the documentation of Tabulator is example how to create header and table,






var table = new Tabulator("#example-table", {
columns:[
{title:"Name", field:"name", sorter:"string", width:200, editor:true},
{title:"Age", field:"age", sorter:"number", align:"right", formatter:"progress"},
{title:"Gender", field:"gender", sorter:"string", cellClick:function(e, cell){console.log("cell click")},},
{title:"Height", field:"height", formatter:"star", align:"center", width:100},
{title:"Favourite Color", field:"col", sorter:"string"},
{title:"Date Of Birth", field:"dob", sorter:"date", align:"center"},
{title:"Cheese Preference", field:"cheese", sorter:"boolean", align:"center", formatter:"tickCross"},
],
});





but I want to create header in html, is it possible?



And put data in server-side part from controllers, not as






var data = [
{id:1, name:"Oli Bob", age:"12", col:"red", dob:""},
{id:2, name:"Mary May", age:"1", col:"blue", dob:"14/05/1982"},
{id:3, name:"Christine Lobowski", age:"42", col:"green", dob:"22/05/1982"},
{id:4, name:"Brendon Philips", age:"125", col:"orange", dob:"01/08/1980"},
{id:5, name:"Margret Marmajuke", age:"16", col:"yellow", dob:"31/01/1999"},
];





enter image description here



enter image description here










share|improve this question























  • could you be a bit more specific about what you mean by "create header in html,"? Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table

    – Oli Folkerd
    Nov 22 '18 at 21:51














0












0








0








I want to add Tabulator js to my java project.
I added tabulator.min.js, tabulator.min.css to resources folder.
After that added to my html page these dependencies as recommending in readme.md.






<link rel="stylesheet" th:href="@{/css/tabulator.min.css}">
<script type="text/javascript" th:src="@{/js/tabulator.min.js}"></script>





Now my tables view all elements, that I have in the html page, but not correct.



In the documentation of Tabulator is example how to create header and table,






var table = new Tabulator("#example-table", {
columns:[
{title:"Name", field:"name", sorter:"string", width:200, editor:true},
{title:"Age", field:"age", sorter:"number", align:"right", formatter:"progress"},
{title:"Gender", field:"gender", sorter:"string", cellClick:function(e, cell){console.log("cell click")},},
{title:"Height", field:"height", formatter:"star", align:"center", width:100},
{title:"Favourite Color", field:"col", sorter:"string"},
{title:"Date Of Birth", field:"dob", sorter:"date", align:"center"},
{title:"Cheese Preference", field:"cheese", sorter:"boolean", align:"center", formatter:"tickCross"},
],
});





but I want to create header in html, is it possible?



And put data in server-side part from controllers, not as






var data = [
{id:1, name:"Oli Bob", age:"12", col:"red", dob:""},
{id:2, name:"Mary May", age:"1", col:"blue", dob:"14/05/1982"},
{id:3, name:"Christine Lobowski", age:"42", col:"green", dob:"22/05/1982"},
{id:4, name:"Brendon Philips", age:"125", col:"orange", dob:"01/08/1980"},
{id:5, name:"Margret Marmajuke", age:"16", col:"yellow", dob:"31/01/1999"},
];





enter image description here



enter image description here










share|improve this question














I want to add Tabulator js to my java project.
I added tabulator.min.js, tabulator.min.css to resources folder.
After that added to my html page these dependencies as recommending in readme.md.






<link rel="stylesheet" th:href="@{/css/tabulator.min.css}">
<script type="text/javascript" th:src="@{/js/tabulator.min.js}"></script>





Now my tables view all elements, that I have in the html page, but not correct.



In the documentation of Tabulator is example how to create header and table,






var table = new Tabulator("#example-table", {
columns:[
{title:"Name", field:"name", sorter:"string", width:200, editor:true},
{title:"Age", field:"age", sorter:"number", align:"right", formatter:"progress"},
{title:"Gender", field:"gender", sorter:"string", cellClick:function(e, cell){console.log("cell click")},},
{title:"Height", field:"height", formatter:"star", align:"center", width:100},
{title:"Favourite Color", field:"col", sorter:"string"},
{title:"Date Of Birth", field:"dob", sorter:"date", align:"center"},
{title:"Cheese Preference", field:"cheese", sorter:"boolean", align:"center", formatter:"tickCross"},
],
});





but I want to create header in html, is it possible?



And put data in server-side part from controllers, not as






var data = [
{id:1, name:"Oli Bob", age:"12", col:"red", dob:""},
{id:2, name:"Mary May", age:"1", col:"blue", dob:"14/05/1982"},
{id:3, name:"Christine Lobowski", age:"42", col:"green", dob:"22/05/1982"},
{id:4, name:"Brendon Philips", age:"125", col:"orange", dob:"01/08/1980"},
{id:5, name:"Margret Marmajuke", age:"16", col:"yellow", dob:"31/01/1999"},
];





enter image description here



enter image description here






<link rel="stylesheet" th:href="@{/css/tabulator.min.css}">
<script type="text/javascript" th:src="@{/js/tabulator.min.js}"></script>





<link rel="stylesheet" th:href="@{/css/tabulator.min.css}">
<script type="text/javascript" th:src="@{/js/tabulator.min.js}"></script>





var table = new Tabulator("#example-table", {
columns:[
{title:"Name", field:"name", sorter:"string", width:200, editor:true},
{title:"Age", field:"age", sorter:"number", align:"right", formatter:"progress"},
{title:"Gender", field:"gender", sorter:"string", cellClick:function(e, cell){console.log("cell click")},},
{title:"Height", field:"height", formatter:"star", align:"center", width:100},
{title:"Favourite Color", field:"col", sorter:"string"},
{title:"Date Of Birth", field:"dob", sorter:"date", align:"center"},
{title:"Cheese Preference", field:"cheese", sorter:"boolean", align:"center", formatter:"tickCross"},
],
});





var table = new Tabulator("#example-table", {
columns:[
{title:"Name", field:"name", sorter:"string", width:200, editor:true},
{title:"Age", field:"age", sorter:"number", align:"right", formatter:"progress"},
{title:"Gender", field:"gender", sorter:"string", cellClick:function(e, cell){console.log("cell click")},},
{title:"Height", field:"height", formatter:"star", align:"center", width:100},
{title:"Favourite Color", field:"col", sorter:"string"},
{title:"Date Of Birth", field:"dob", sorter:"date", align:"center"},
{title:"Cheese Preference", field:"cheese", sorter:"boolean", align:"center", formatter:"tickCross"},
],
});





var data = [
{id:1, name:"Oli Bob", age:"12", col:"red", dob:""},
{id:2, name:"Mary May", age:"1", col:"blue", dob:"14/05/1982"},
{id:3, name:"Christine Lobowski", age:"42", col:"green", dob:"22/05/1982"},
{id:4, name:"Brendon Philips", age:"125", col:"orange", dob:"01/08/1980"},
{id:5, name:"Margret Marmajuke", age:"16", col:"yellow", dob:"31/01/1999"},
];





var data = [
{id:1, name:"Oli Bob", age:"12", col:"red", dob:""},
{id:2, name:"Mary May", age:"1", col:"blue", dob:"14/05/1982"},
{id:3, name:"Christine Lobowski", age:"42", col:"green", dob:"22/05/1982"},
{id:4, name:"Brendon Philips", age:"125", col:"orange", dob:"01/08/1980"},
{id:5, name:"Margret Marmajuke", age:"16", col:"yellow", dob:"31/01/1999"},
];






javascript java spring thymeleaf tabulator






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 20 '18 at 15:37









Paul ChechegovPaul Chechegov

7918




7918













  • could you be a bit more specific about what you mean by "create header in html,"? Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table

    – Oli Folkerd
    Nov 22 '18 at 21:51



















  • could you be a bit more specific about what you mean by "create header in html,"? Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table

    – Oli Folkerd
    Nov 22 '18 at 21:51

















could you be a bit more specific about what you mean by "create header in html,"? Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table

– Oli Folkerd
Nov 22 '18 at 21:51





could you be a bit more specific about what you mean by "create header in html,"? Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table

– Oli Folkerd
Nov 22 '18 at 21:51












1 Answer
1






active

oldest

votes


















0














Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table






share|improve this answer
























  • I have the complicated html page, but I created this page on the back-end with all data). And I was so disappointed that I can work with tabulator with my html.

    – Paul Chechegov
    Nov 23 '18 at 9:50











  • Tabulator is designed to run on the front end, there is nothing to stop you putting the javascript from your server to turn your table into a Tabulator

    – Oli Folkerd
    Nov 23 '18 at 9:52











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53396477%2fcan-i-use-tabulator-js-library-in-my-java-spring-thymeleaf-project%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table






share|improve this answer
























  • I have the complicated html page, but I created this page on the back-end with all data). And I was so disappointed that I can work with tabulator with my html.

    – Paul Chechegov
    Nov 23 '18 at 9:50











  • Tabulator is designed to run on the front end, there is nothing to stop you putting the javascript from your server to turn your table into a Tabulator

    – Oli Folkerd
    Nov 23 '18 at 9:52
















0














Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table






share|improve this answer
























  • I have the complicated html page, but I created this page on the back-end with all data). And I was so disappointed that I can work with tabulator with my html.

    – Paul Chechegov
    Nov 23 '18 at 9:50











  • Tabulator is designed to run on the front end, there is nothing to stop you putting the javascript from your server to turn your table into a Tabulator

    – Oli Folkerd
    Nov 23 '18 at 9:52














0












0








0







Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table






share|improve this answer













Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 22 '18 at 21:51









Oli FolkerdOli Folkerd

1,69011116




1,69011116













  • I have the complicated html page, but I created this page on the back-end with all data). And I was so disappointed that I can work with tabulator with my html.

    – Paul Chechegov
    Nov 23 '18 at 9:50











  • Tabulator is designed to run on the front end, there is nothing to stop you putting the javascript from your server to turn your table into a Tabulator

    – Oli Folkerd
    Nov 23 '18 at 9:52



















  • I have the complicated html page, but I created this page on the back-end with all data). And I was so disappointed that I can work with tabulator with my html.

    – Paul Chechegov
    Nov 23 '18 at 9:50











  • Tabulator is designed to run on the front end, there is nothing to stop you putting the javascript from your server to turn your table into a Tabulator

    – Oli Folkerd
    Nov 23 '18 at 9:52

















I have the complicated html page, but I created this page on the back-end with all data). And I was so disappointed that I can work with tabulator with my html.

– Paul Chechegov
Nov 23 '18 at 9:50





I have the complicated html page, but I created this page on the back-end with all data). And I was so disappointed that I can work with tabulator with my html.

– Paul Chechegov
Nov 23 '18 at 9:50













Tabulator is designed to run on the front end, there is nothing to stop you putting the javascript from your server to turn your table into a Tabulator

– Oli Folkerd
Nov 23 '18 at 9:52





Tabulator is designed to run on the front end, there is nothing to stop you putting the javascript from your server to turn your table into a Tabulator

– Oli Folkerd
Nov 23 '18 at 9:52




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53396477%2fcan-i-use-tabulator-js-library-in-my-java-spring-thymeleaf-project%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?