Date Picker With 3 Months View and Saturday and Sunday Disabled

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

{{type:'date',dateFormat:'MM/DD/YYYY',correctFormat:true,defaultDate:'01/01/1900',datePickerConfig:{firstDay:0,showWeekNumber:true,numberOfMonths:3,disableDayFn:function(date){return date.getDay()===0 || date.getDay()===6;}}}}

Date Picker With 3 Months

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

{{type:'date',dateFormat:'MM/DD/YYYY',correctFormat:true,defaultDate:'01/01/1900',datePickerConfig:{firstDay:0,showWeekNumber:true,numberOfMonths:3}}}

Date Picker With 3 Months, default and minimum Date set to current date

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

{{type:'date',dateFormat:'MM/DD/YYYY',correctFormat:true,defaultDate:'#date.dd/MM/yyyy#',datePickerConfig:{firstDay:0,showWeekNumber:false,numberOfMonths:3,minDate:new Date()}}}

Selection From Table

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

{{type: 'handsontable', handsontable: { colHeaders: ['Marque', 'Country', 'Parent company'], autoColumnSize: true, data: [{name: 'BMW', country: 'Germany', owner: 'Bayerische Motoren Werke AG'}, {name: 'Chrysler', country: 'USA', owner: 'Chrysler Group LLC'}, {name: 'Nissan', country: 'Japan', owner: 'Nissan Motor Company Ltd'}, {name: 'Suzuki', country: 'Japan', owner: 'Suzuki Motor Corporation'}, {name: 'Toyota', country: 'Japan', owner: 'Toyota Motor Corporation'}, {name: 'Volvo', country: 'Sweden', owner: 'Zhejiang Geely Holding Group'}], getValue: function() {var selection = this.getSelected(); return this.getSourceDataAtRow(selection[0]).name; }}}}

Customer Renderer to Change Background Color

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

{{renderer:function(instance, td, row, col, prop, value, cellProperties){Handsontable.renderers.TextRenderer.apply(this, arguments);td.style.backgroundColor = 'green';}}}

Custom Renderer to Change Text Style to Bold

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

{{renderer:function(instance, td, row, col, prop, value, cellProperties){console.log(value);td.innerHTML='<b>'+value+'</b>';}}}

Change Color Depending on Integer Value

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.


{{renderer:function(instance, td, row, col, prop, value, cellProperties){console.log(value);if(parseInt(value)<60){td.innerHTML="<span style='color: white; background-color: green;'>"+value+"</span>";}else{td.innerHTML="<span style='color: white; background-color: red;'>"+value+"</span>";}}}}

Date Picker with Customer Renderer

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

{{type:'date',dateFormat:'MM/DD/YYYY',correctFormat:true,defaultDate:'01/01/1900',datePickerConfig:{firstDay:0,showWeekNumber:true,numberOfMonths:3,disableDayFn:function(date){return date.getDay()===0 || date.getDay()===6;}},renderer:function(instance, td, row, col, prop, value, cellProperties){Handsontable.renderers.TextRenderer.apply(this, arguments);td.style.backgroundColor = 'green';}}}

Date Picker with Custom Renderer to Cater to Different Display Format and Data Format

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Display Format: DD-MM-YYYY

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.


Data Format: YYYY-MM-DD

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

{{type:'date',dateFormat:'YYYY-MM-DD',renderer:function(instance, td, row, col, prop, value, cellProperties){if(value!=""){const parts = value.split('-');const day = parseInt(parts[2], 10);const month = parseInt(parts[1] - 1, 10) + 1;const year = parseInt(parts[0], 10);const formattedDate = day + "-" + month + "-" + year;td.innerHTML=formattedDate;}}}}
  • No labels