XuniComboBox Class Reference

Inherits from XuniDropDown : UIView
Declared in XuniComboBox.h

Overview

XuniComboBox Class.

  itemsSource

Gets or sets the source collection that contains the items to select from.

@property (nonatomic) NSMutableArray *itemsSource

Discussion

Gets or sets the source collection that contains the items to select from.

Declared In

XuniComboBox.h

  collectionView

Gets or sets the XuniCollectionView object used as the items source.

@property (nonatomic) XuniCollectionView *collectionView

Discussion

Gets or sets the XuniCollectionView object used as the items source.

Declared In

XuniComboBox.h

  autoComplete

Gets or sets whether the control should try to automatically complete entries using the list of items.

@property (nonatomic) IBInspectable BOOL autoComplete

Discussion

Gets or sets whether the control should try to automatically complete entries using the list of items.

Declared In

XuniComboBox.h

  displayMemberPath

Gets or sets the name of the property to use as the visual representation of the items.

@property (nonatomic) IBInspectable NSString *displayMemberPath

Discussion

Gets or sets the name of the property to use as the visual representation of the items.

Declared In

XuniComboBox.h

  isEditable

Gets or sets the value that enables or disables editing of the text in the control.

@property (nonatomic) IBInspectable BOOL isEditable

Discussion

Gets or sets the value that enables or disables editing of the text in the control.

Declared In

XuniComboBox.h

  placeholder

Gets or sets the string shown as a hint when the control is empty.

@property (nonatomic) IBInspectable NSString *placeholder

Discussion

Gets or sets the string shown as a hint when the control is empty.

Declared In

XuniComboBox.h

  selectedBackgroundColor

Gets or sets the selected background color.

@property (nonatomic) IBInspectable UIColor *selectedBackgroundColor

Discussion

Gets or sets the selected background color.

Declared In

XuniComboBox.h

  selectedIndex

Gets or sets the index of the selected item. It returns -1 if there is no selection, or the selection doesn’t match any item in the source collection.

@property (nonatomic) NSUInteger selectedIndex

Discussion

Gets or sets the index of the selected item. It returns -1 if there is no selection, or the selection doesn’t match any item in the source collection.

Declared In

XuniComboBox.h

  selectedItem

Gets or sets the current selected item.

@property (nonatomic) NSObject *selectedItem

Discussion

Gets or sets the current selected item.

Declared In

XuniComboBox.h

  selectedValue

Gets or sets the value of the currently selected item using SelectedValuePath.

@property (nonatomic) NSObject *selectedValue

Discussion

Gets or sets the value of the currently selected item using SelectedValuePath.

Declared In

XuniComboBox.h

  selectedValuePath

Gets or sets the path that is used to get the value from the selected item.

@property (nonatomic) IBInspectable NSString *selectedValuePath

Discussion

Gets or sets the path that is used to get the value from the selected item.

Declared In

XuniComboBox.h

  text

Gets or sets the text of the control.

@property (nonatomic) IBInspectable NSString *text

Discussion

Gets or sets the text of the control.

Declared In

XuniComboBox.h

  tableView

Gets or sets the dropdown table view.

@property (nonatomic, readonly) UITableView *tableView

Discussion

Gets or sets the dropdown table view.

Declared In

XuniComboBox.h

  textColor

Gets or sets the text color.

@property (nonatomic) UIColor *textColor

Discussion

Gets or sets the text color.

Declared In

XuniComboBox.h

  textFont

Gets or sets the text font.

@property (nonatomic) UIFont *textFont

Discussion

Gets or sets the text font.

Declared In

XuniComboBox.h

  textAlignment

Gets or sets the alignment of input text.

@property (nonatomic) NSTextAlignment textAlignment

Discussion

Gets or sets the alignment of input text.

Declared In

XuniComboBox.h

  selectedIndexChanged

Occurs when the value of selectedIndex changes.

@property XuniEvent *selectedIndexChanged

Discussion

Occurs when the value of selectedIndex changes.

Declared In

XuniComboBox.h

  textChanged

Occurs when the text value changes.

@property XuniEvent *textChanged

Discussion

Occurs when the text value changes.

Declared In

XuniComboBox.h

  dropDownItemLoading

Occurs when the dropdown item is loading.

@property XuniEvent *dropDownItemLoading

Discussion

Occurs when the dropdown item is loading.

Declared In

XuniComboBox.h

– getDisplayText:

Gets the display text for the item at the given index.

- (NSString *)getDisplayText:(NSUInteger)index

Parameters

index

The item index.

Return Value

The display text.

Discussion

Gets the display text for the item at the given index.

Declared In

XuniComboBox.h

– indexOf:fullMatch:

Gets the index of the first item that matches the given string.

- (NSUInteger)indexOf:(NSString *)text fullMatch:(BOOL)fullMatch

Parameters

text

The given string.

fullMatch

Is need full match when searching.

Discussion

Gets the index of the first item that matches the given string.

Declared In

XuniComboBox.h

– selectAll

Sets the focus to the control and selects all of its contents.

- (void)selectAll

Discussion

Sets the focus to the control and selects all of its contents.

Declared In

XuniComboBox.h

– getDescriptor:

Get a descriptor of font.

- (UIFontDescriptor *)getDescriptor:(NSMutableDictionary *)attributes

Parameters

attributes

the font attributes.

Return Value

a descriptor.

Discussion

Get a descriptor of font.

Declared In

XuniComboBox.h