reorder_child#

SliderLayout.reorder_child(target_child_template: Template, new_position: int) None#

Move a child template to a new position in children.

Parameters:
target_child_templateTemplate

Child template instance to move.

new_positionint

New index in the children list.

Raises:
TemplateReorderOutOfBounds

If new_position is not within [0, len(children)).

TemplateDoesNotExist

If the target template is not present in children.