Appending to current Row or Column #428
Unanswered
lordofscripts
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I generate my document on the go as I piecewise-process a very large JSON file.
As I do that, I invoke several methods (also using a fluent API). I would like to know if there is a way to get from a Maroto instance either of these (need both):
core.Row
and the current column number (0: none so far, 1..n: column) and, just in case the user defined a grid larger than 12, the maximum number of columns in the document.core.Col
instance.The purpose of that as I stated, is to have my program append text or objects/components**** to the currently active
Row/Col
.If anyone asks,
core.Row
has aGet columns()
method, but it returns the slice of columns, not their total span (normally <= 12). One would need to get them and iterate over eachcolumn.GetSize()
to calculate a total span. That's not good for performance.Well, that's a weird example but shows some of the API features I need to be able to use Maroto to generate my document.
Beta Was this translation helpful? Give feedback.
All reactions