Author image Zakariyya Mughal
and 4 contributors

NAME

Renard::Curie::Model::View::Role::SubviewPageable - Role for view models that are paged

VERSION

version 0.005

ATTRIBUTES

_subview_idx

A private attribute that tracks the current subview.

METHODS

set_current_subview_to_first

  method set_current_subview_to_first()

Sets the subview to the first subview of the view collection.

set_current_subview_to_last

  method set_current_subview_to_last()

Sets the subview to the last subview of the view collection.

can_move_to_previous_subview

  method can_move_to_previous_subview() :ReturnType(Bool)

Predicate to check if we can decrement the current subview index.

can_move_to_next_subview

  method can_move_to_next_subview() :ReturnType(Bool)

Predicate to check if we can increment the current subview index.

set_current_subview_forward

  method set_current_subview_forward()

Increments the current subview index if possible.

set_current_subview_back

  method set_current_subview_back()

Decrements the current subview index if possible.

AUTHOR

Project Renard

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Project Renard.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.