shapelets.apps.DataApp.place_grid#

DataApp.place_grid(rows: List[Union[Widget, List[Widget]]], *, justify: Literal['start', 'center', 'end', 'space-between', 'space-around', 'space-evenly'] = 'start', align: Literal['top', 'middle', 'bottom'] = 'top') None#

Places components automatically on a grid structure

Parameters:
children: List[Child|List[Child]], required

Array of Arrays containing the elements to be placed in the grid.

justify: str literal; one of ‘start’ (default), ‘center’, ‘end’, ‘space-between’, ‘space-around’, ‘space-evenly’

Determines how the empty space will be distributed horizontally among rows, where:

  • start, places all components next to each other to the left hand side of the container.

  • center, places all components next to each other and centers the group within the container.

  • end, similarly to start and center, but to the right hand side of the container.

  • space-between, places the first widget to the left hand side of the container and the last

one is aligned right end. The rest of the components are spread within the container, all of them with equal blank spaces. - space-around, similarly to space-between spreads all components within available container space space but, as difference to the previous settings, there will be a blank area at the rightmost and leftmost borders of the container, which is half of the space between two components. - space-evenly, same as before, but all empty spaces have equal width.

align: str literal; one of ‘top’, ‘middle’, ‘bottom’

Determines how the widget is aligned vertically within the container.

Notes

The number of elements on the outer list determines the number of rows to place; each row is a list of controls to be distributed evenly.

justify and align applies to all rows in the grid.