| 1 | package opts |
| 2 | |
| 3 | // ParallelComponent is the option set for parallel component. |
| 4 | type ParallelComponent struct { |
| 5 | // Distance between parallel component and the left side of the container. |
| 6 | // Left value can be instant pixel value like 20. |
| 7 | // It can also be a percentage value relative to container width like '20%'; |
| 8 | // and it can also be 'left', 'center', or 'right'. |
| 9 | // If the left value is set to be 'left', 'center', or 'right', |
| 10 | // then the component will be aligned automatically based on position. |
| 11 | Left string `json:"left,omitempty"` |
| 12 | |
| 13 | // Distance between parallel component and the top side of the container. |
| 14 | // Top value can be instant pixel value like 20. |
| 15 | // It can also be a percentage value relative to container width like '20%'. |
| 16 | // and it can also be 'top', 'middle', or 'bottom'. |
| 17 | // If the left value is set to be 'top', 'middle', or 'bottom', |
| 18 | // then the component will be aligned automatically based on position. |
| 19 | Top string `json:"top,omitempty"` |
| 20 | |
| 21 | // Distance between parallel component and the right side of the container. |
| 22 | // Right value can be instant pixel value like 20. |
| 23 | // It can also be a percentage value relative to container width like '20%'. |
| 24 | Right string `json:"right,omitempty"` |
| 25 | |
| 26 | // Distance between parallel component and the bottom side of the container. |
| 27 | // Bottom value can be instant pixel value like 20. |
| 28 | // It can also be a percentage value relative to container width like '20%'. |
| 29 | Bottom string `json:"bottom,omitempty"` |
| 30 | } |