We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like to use this library in combination with prawn-html, but I am unsure how to render HTML into a table cell.
My current approach is to create a custom cell class:
class HtmlCell < Prawn::Table::Cell def draw_content PrawnHtml.append_html(self, content) end end
and use it as such:
class PrintView include Prawn::View def print_section_x table [["header"], [HtmlCell.make(self, "<p>Test</p>")]] end end
but unfortunately the draw_content method is never called. The code clearly states that the Cell type can be extended:
draw_content
Cell
prawn-table/lib/prawn/table/cell.rb
Lines 48 to 50 in 38b5bdb
but I can't find any examples. Is this currently possible?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I would like to use this library in combination with prawn-html, but I am unsure how to render HTML into a table cell.
My current approach is to create a custom cell class:
and use it as such:
but unfortunately the
draw_content
method is never called. The code clearly states that theCell
type can be extended:prawn-table/lib/prawn/table/cell.rb
Lines 48 to 50 in 38b5bdb
but I can't find any examples. Is this currently possible?
The text was updated successfully, but these errors were encountered: