Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SelectedCallback ¶
type SelectedCallback func(int)
SelectedCallback for handler to handle the selected item
type TargetList ¶
type TargetList struct {
// contains filtered or unexported fields
}
TargetList common view for add-ons
func NewTargetList ¶
func NewTargetList(selectedCb SelectedCallback, opt *TargetListOpt) *TargetList
NewTargetList new a target list instance
func (*TargetList) CurrentSelected ¶
func (tl *TargetList) CurrentSelected() int
CurrentSelected return current selected target ID
func (*TargetList) UpdateState ¶
func (tl *TargetList) UpdateState(targets []string, actives map[int]bool)
UpdateState of the target list component
type TargetListOpt ¶
type TargetListOpt struct { // SelectOnMove no need to extra confirm SelectOnMove bool // InitSelected initial selected id InitSelected int // CallBackImmediate after init CallBackImmediate bool }
TargetListOpt for target list
Click to show internal directories.
Click to hide internal directories.