Can I use Tabulator js library in my java Spring + Thymeleaf project?
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"},
];
javascript java spring thymeleaf tabulator
add a comment |
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"},
];
javascript java spring thymeleaf tabulator
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
add a comment |
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"},
];
javascript java spring thymeleaf tabulator
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"},
];
<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
javascript java spring thymeleaf tabulator
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table
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
add a comment |
Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table
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
add a comment |
Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table
Tabulator is designed to create interactive JavaScript tables, it is not designed to output a simple HTML table
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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