Aligning table data with dataviewjs

I would like to right-justify numeric cells in a dataviewjs table. Does anyone know how to do this? In CSS it’s obvious, but I haven’t figured out how to use it with dataviewjs. Based on what I’ve read, adding this looks promising:

this.container.querySelectorAll(".markdown-preview table td").forEach(s => s.style.align = "right");

and doesn’t throw an error. It doesn’t do anything though. Can someone point out the error of my ways?

Thanks,
Brian