How to create a table in visual builder using custom array as dynamic columns.
Summary:
Assume user provided start date and end date, on click of button we should generate a table with dates between as column headers and an empty row.
Please provide an approach how to make it possible.
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
I have tried using javascript to get the dates between and also the columns field in oj-table:
class PageModule {
}
PageModule.prototype.getDatesBetween = function(startDate, endDate) {
const dates = [];
let currentDate = new Date(startDate);
while (currentDate <= endDateC) {
Tagged:
0