datatable footer conditional styling

Regular datatable rows have an ability to pass a function into the css property to handle conditional styling such as red numbers for negatives. The footer row has a css property but doesn’t appear to have the same support. If I have a formula that might return a negative number in the footer, how can I color the footer number red?

Hello,

Here’s the article about the custom footer content:
http://docs.webix.com/datatable__headers_footers.html#customheaderandfootercontent

To apply some style to the footer, you can simply add the css property in its config:
http://webix.com/snippet/c9d1e1bc

The title of the post is “conditional” styling. Neither the documentation, which was thoroughly read before posting this question, nor the sample handle conditional formatting in the footer or header. Webix provided a mechanism in the body for this very need. The question: how can a similar capability be realized in a header or footer.

still nothing on this?

The aggregation helper do not support dynamic styles, but you can define a custom template function, which can do any kind of styling or formatting

{ id:"year", footer:[{ content:"summColumn", template: function(obj){
  if (obj.value > 10000)
    return `<span style='color:red'>${obj.value}</span>`;
  return obj.value;
} }] }

https://snippet.webix.com/f1n1ksm3