lib/YuiRestClient/Widget/ItemSelector.pm

NAME

YuiRestClient::Widget::ItemSelector - handle item selectors

COPYRIGHT

Copyright 2021 SUSE LLC

SPDX-License-Identifier: FSFAP

AUTHORS

QE Yam <qe-yam at suse de>

SYNOPSIS

$self->{rb_skip_registration}->select(); $self->{cb_chunk_size}->select($chunk_size);

return $self->{sel_role}->selected_items();

DESCRIPTION

Overview

This class provides methods to select items like radio buttons or dropdown lists and to read out the current selection.

Class and object methods

select($item) - selects an item

If the class object is a radio button then $item can be omitted. If the object is a multi-selector object you need to provide $item to specify what selection to make.

selected_items() - get a list of selected items

This method returns an array with all the (sanitized) labels of items that are selected in the current class object.