-
-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
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
Row should implement the Component interface #375
Comments
There is a reason for that, I want to differentiate the objects from Row, Col and Components (Line, Image, Codes and etc). This is to improve lib usage by avoiding the wrong usage by someone passing an Image inside a Col, which will not work. |
Ahhh interesting. Good to know! So does that mean that nesting rows / columns is not possible or expected? I.e. Row > Col > Row There are certain layouts that this recursion is quite helpful for 😄 For what it's worth image-in-col seems to be working for me - am I misunderstanding something?
|
I also need this nested functionality |
Could you provide a clear example of how do this nested feature would help you and also why is not possible to achieve with the today implementation? currently you can add more than one component inside a col. |
This is the first page I'm creating so I'm probably missing some simple way of doing it. I'm trying to achieve a layout as below. The page is split into two columns with a header row, Each column has different height rows, the colored blocks. Each row has two equal width columns. If I could nest rows in columns it will be simple to achieve.
|
This type of nesting feature would be greatly appreciated by me as well. I'm looking to automatically generate inventory labels, adhering to the format we already use: From what I can gather, there is currently no easy way to achieve this layout with the tools currently at our disposal (specifically the background color of the location). If I'm wrong, feel free to correct me. |
I think this would solve the issue i have as well of creating rows inside a column to be able to create a rowspan #434 |
@johnfercher Do you think this feature should be implemented? |
Hello, I also think this can be really useful. From your comment @johnfercher I tried doing this:
but Maybe I'm doing something wrong? |
+1 for this |
The Row
Render()
method is very close to the properComponent
interface, but not using a pointer properlymaroto/pkg/components/row/row.go
Line 60 in 7493f4c
Which should be:
maroto/pkg/core/core.go
Line 35 in 09b0b84
The text was updated successfully, but these errors were encountered: