SearchListPickerItem
public struct SearchListPickerItem
extension SearchListPickerItem: View
Undocumented
-
Undocumented
Declaration
Swift
public init(model: SearchListPickerItemModel) -
Undocumented
Declaration
Swift
public init(value: Binding<[Int]>, valueOptions: [String] = [], hint: String? = nil, onTap: ((_ index: Int) -> Void)? = nil) -
init(value:valueOptions: hint: allowsMultipleSelection: allowsEmptySelection: isSearchBarHidden: disableListEntriesSection: allowsDisplaySelectionCount: barItemFrame: onTap: selectAll: updateSearchListPickerHeight: ) create a list picker which is used in FilterFeedbackBarItem
Declaration
Swift
init(value: Binding<[Int]>, valueOptions: [String] = [], hint: String? = nil, allowsMultipleSelection: Bool, allowsEmptySelection: Bool, isSearchBarHidden: Bool = false, disableListEntriesSection: Bool, allowsDisplaySelectionCount: Bool, barItemFrame: CGRect = .zero, onTap: ((_ index: Int) -> Void)? = nil, selectAll: ((_ isAll: Bool) -> Void)? = nil, updateSearchListPickerHeight: ((CGFloat) -> Void)? = nil)Parameters
valueIndexes for selected values.
valueOptionsThe data for constructing the list picker.
hintHint message.
allowsMultipleSelectionA boolean value to indicate to allow multiple selections or not.
allowsEmptySelectionA boolean value to indicate to allow empty selection or not.
onTapThe closure when tap on item.
selectAllThe closure when click ‘Select All’ button.
updateSearchListPickerHeightThe closure to update the parent view.
disableListEntriesSectionA boolean value to indicate to disable entries section or not.
allowsDisplaySelectionCountA boolean value to indicate to display selection count or not.
barItemFrameThe frame of the item in FilterFeedbackBar, which toggle to show this view.
-
Declaration
Swift
@MainActor public var body: some View { get }