pegli/RichText

Set background color

Closed this issue · 1 comments

Is it possible to set the background color of the richtext area? I've tried setting the body, wrapping it all in a div and setting the color on that, but all I get is white.

Thank you

Sure, you can set the background color in the constructor:

var text = module.createRichText({
   width: 200,
   height: Ti.UI.SIZE,
   color: 'yellow',
   backgroundColor: 'blue',
});

I've updated the example code to show this in action.