Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
This work
1.Formatting number
{{type:'numeric',numericFormat:{pattern:'0.000'}}} (Works Okay)
2. Formatting Color works
{{
renderer:function(instance, td, row, col, prop, value, cellProperties)
{
Handsontable.renderers.TextRenderer.apply(this, arguments);td.style.backgroundColor = '#FDE9D9';
}
}} (Works Okay)
3. combining the above two does not work.
{ {
type:'numeric',numericFormat:{pattern:'0.00'},
renderer:function(instance, td, row, col, prop, value, cellProperties)
{
Handsontable.renderers.TextRenderer.apply(this, arguments) ; td.style.backgroundColor = '#FDE9D9';
}
}} Does not work.
Example
{{
type:'date',dateFormat:'MM/DD/YYYY' ,
renderer:function(instance, td, row, col, prop, value, cellProperties)
{
Handsontable.renderers.TextRenderer.apply(this, arguments);td.style.backgroundColor = '#D8E4BC';
}
}} This works as well.
Hey Justin It does not work I tested it. did you test it ?
Hi, perhaps you can try it like this?
{ { renderer: function(instance, td, row, col, prop, value, cellProperties) { Handsontable.renderers.TextRenderer.apply(this, arguments); td.style.backgroundColor = '#D8E4BC'; td.style = 'numeric'; } } }
{{renderer:function(instance, td, row, col, prop, value, cellProperties){Handsontable.renderers.TextRenderer.apply(this, arguments);td.style.backgroundColor = '#D8E4BC';}
,
renderer:function(instance, td, row, col, prop, value, cellProperties){Handsontable.renderers.TextRenderer.apply(this, arguments);td.style = 'numeric';}
}}
Would like to do two things change color and use numeric with 0.00 using Custom properties .