Skip to main content

PrevNextButtonsStyle

Customizes the appearance of the previous and next buttons.

class PrevNextButtonsStyle

Properties​

previous_style​

previous_style: ButtonStyle = default_button_style

The style for the previous trigger.

See ButtonStyle


next_style​

next_style: ButtonStyle = default_button_style

The style for the next trigger.

See ButtonStyle


axis​

axis: Axis = Axis.horizontal

The orientation of the two triggers, vertical or horizontal.

See Axis


spacing​

spacing: Float = 5

The space between the two triggers.

Methods​

copy​

copy() -> (PrevNextButtonsStyle)

Returns a shallow copy (nested reference objects aren't copied).


deep_copy​

deep_copy() -> (PrevNextButtonsStyle)

Returns a deep copy, including copies of previous_style and next_style.


overriding​

overriding(_ modify: (PrevNextButtonsStyle) -> ()) -> (PrevNextButtonsStyle)

Returns a modified copy of the style. Modify the copy inside the modify function.