How to use RGB with color editor within a datatable

I have a datatable with a column being color editor. The color value is in RGB, who do I setup the column to accept RGB?

Example:
var color1 = “#fill# &nbsp”;

column:[{ id:“fill”, header:“Fill Color”, editor:“color”, template: color1}]

The object is:
annotations = [{fill: “rgb(0,1,0)”}]

Thanks