pub type NcSelectorOptions = ncselector_options;
Expand description

Options structure for NcSelector.

Implementations§

source§

impl NcSelectorOptions

source

pub fn new(items: &[NcSelectorItem]) -> Self

New NcSelectorOptions with just the list of items.

source

pub fn with_all_options( title: Option<&NcString>, secondary: Option<&NcString>, footer: Option<&NcString>, items: &[NcSelectorItem], default: u32, max_display: u32, opchannels: impl Into<NcChannels>, descchannels: impl Into<NcChannels>, titlechannels: impl Into<NcChannels>, footchannels: impl Into<NcChannels>, boxchannels: impl Into<NcChannels> ) -> Self

New NcSelectorOptions with all options.