Closed TranBaVinhSon closed 5 years ago
I think row.style(:fill_color, '#000000')
could help
@Sotatek-NgocBach thanks for your help. But it didn't work. When I try row.style(:fill_color, '#000000')
I got this error:
"#<NoMethodError: undefined method `style' for #<Thinreports::Core::Shape::List::SectionInterface:0x00007fb0f7f54a88>>"
And tried with row.item(:col1).style(:fill_color, '#ffffff')
, still got new error:
#<Thinreports::Errors::UnknownShapeStyleName: The specified style name, 'fill_color', cannot be used. The available styles are :visible, :bold, :italic, :underline, :linethrough, :align, :valign, :color, :font_size.>
@TranBaVinhSon What version of Thinreports are you using?
@Sotatek-NgocBach yeah, great solution, I can change the background color 👍
Anyway, I have another question about how I can create the table in thinreports editor? currently, I create a list and have to draw vertical lines like this?
@Sotatek-NgocBach I'm not sure about version, I just clone Thinreport editor and launch Editor on development mode by yarn start
.
@TranBaVinhSon You can use List and style to make it looks like a table
@TranBaVinhSon
how I can create the table in thinreports editor?
Thinreports has no feature for creating Table and currently we have no plan for it.
@Sotatek-NgocBach Thanks for your support!
Does thinreports provide api to change color of background like :
In my case, I want to change background color of a row in list, for example:
How can I do that ?