projects/i-components/src/lib/components/combo-box/combo-box.component.ts
Angular Component for the ComboBox Control.
changeDetection | ChangeDetectionStrategy.OnPush |
selector | wm-combo-box |
styleUrls | ./combo-box.component.scss |
templateUrl | ./combo-box.component.html |
Public
constructor(injectedModel: ComboBoxModel, injector: Injector, cdRef: ChangeDetectorRef, element: ElementRef)
|
|||||||||||||||
Creates an instance of ComboBoxComponent.
Parameters :
|
borderBrush | |
Sets the border color for the ComboBoxComponent. |
displayMemberPath | |
Type : string
|
|
The name or path of the property that is displayed for each data item. |
itemsSource | |
Type : any
|
|
Gets ItemsSource for the ComboBoxComponent |
maxDropDownHeight | |
Type : any
|
|
Sets MaxDropDownHeight property of the ComboBoxComponent. |
model | |
Type : ComboBoxModel
|
|
Object with properties and events for the ComboBox. |
selectedItem | |
Type : any
|
|
ComboBox SelectedItem property |
selectedValue | |
Type : any
|
|
ComboBox selected value |
selectedValuePath | |
Type : any
|
|
Sets Property path that is used to get the SelectedValue property of the SelectedItem property. |
controlTemplate | |
Type : any
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1197
|
|
Sets the controlTemplate Input property for changing the model's |
cursor | |
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1451
|
|
Property used to save the cursor value |
dataContext | |
Type : any
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:952
|
|
Gets/sets the dataContext Input property for changing the model's |
dataGridRowHeight | |
Type : number
|
|
Default value : 22
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:507
|
|
Represents the row height of both the DataGrid and XamGrid components it affects the css and also an internal function that virtualized data, so do not change directly on css, use this variable instead. |
foreground | |
Type : any
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1223
|
|
Sets the value of the Foreground property |
height | |
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1394
|
|
Sets the height |
horizontalAlignment | |
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1096
|
|
Sets the horizontal alignment. |
horizontalContentAlignment | |
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1125
|
|
Sets the horizontal content alignment. |
hostHozSelfAlign | |
Type : boolean
|
|
Default value : false
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:380
|
|
Applies horizontal selfalign class. Flags indicates when the control should handle its own horizontal alignment and ignore container alignment. |
isEnabled | |
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1008
|
|
Gets/sets the isEnabled property for the BaseComponent |
isTabStop | |
Type : boolean
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:760
|
|
Sets/gets IsTabStop property of the BaseComponent |
margin | |
Type : string
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:782
|
|
Sets Margin property of the BaseComponent. |
maxHeight | |
Type : any
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1325
|
|
Sets maxHeight |
maxWidth | |
Type : any
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1283
|
|
Sets maxWidth |
minHeight | |
Type : any
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1304
|
|
Sets minHeight |
minWidth | |
Type : any
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1262
|
|
Sets min Width |
name | |
Type : string
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1153
|
|
Sets the name model property for the control when the name is an input |
opacity | |
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1336
|
|
Sets Opacity value property of the component |
spellCheck | |
Type : boolean
|
|
Default value : false
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:186
|
|
Flag to determinate if the component should do the spell check or not. Default value is false. |
style | |
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1434
|
|
Sets the style |
tabIndex | |
Type : number
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:733
|
|
Sets the property TabIndex of the control model. |
tag | |
Type : any
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1171
|
|
Object used in the Tag property of the Button |
useCss | |
Type : boolean
|
|
Default value : false
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:177
|
|
Determines if the component uses CSS height/width values, instead of inputs |
verticalAlignment | |
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1038
|
|
Sets the vertical alignment. |
verticalContentAlignment | |
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1067
|
|
Sets the vertical content alignment. |
visibility | |
Type : any
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:980
|
|
Gets/sets the visibility property for the BaseComponent |
width | |
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1365
|
|
Sets the width |
zindex | |
Type : number
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:1498
|
|
Property used to set the canvas zindex value. Note: Consider moving this @Input to canvas.direcive.ts, refactoring the directive so all inputs are declared in the directive, and all @HostBindings are declared here in baseComponent, the directive would be responsible for updating the models, while baseComponent will be responsible for binding the values: zIndex, Top, Left... |
dropDownClosed | |
Type : EventEmitter<literal type>
|
|
DropDownClosed event |
dropDownOpened | |
Type : EventEmitter<literal type>
|
|
DropDownOpened event |
loaded | |
Type : EventEmitter<any>
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:199
|
|
Loaded event. |
selectionChanged | |
Type : EventEmitter<any>
|
|
SelectionChanged event output |
bindingValidationError | |
Type : EventEmitter<any>
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:114
|
|
output to emit the new value of the bindingValidationError event |
layoutUpdated | |
Type : EventEmitter<any>
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:140
|
|
Output to emit when then component's layout is updated. |
mouseEnter | |
Type : EventEmitter<literal type>
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:157
|
|
Event Emitter. EventEmitter normally called in the mouseEnterHandler. |
mouseLeave | |
Type : EventEmitter<literal type>
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:167
|
|
Event Emitter Called in the mouseLeave handler |
mouseLeftButtonUp | |
Type : EventEmitter<literal type>
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:147
|
|
MouseLeftButtonUp event Emitter. |
sizeChanged | |
Type : EventEmitter<any>
|
|
Inherited from
BaseComponent
|
|
Defined in
BaseComponent:132
|
|
Output to emit when then component size is changed. |
class |
Type : string
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:407
|
Applies custom CSS classes |
class.defaultFontStyles |
Type : boolean
|
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:398
|
Applies default font styles class, used to allow specificity for each control css |
class.focusable |
Type : boolean
|
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:388
|
Display if the component is focusable or not |
class.hasDefinedCursor |
Type : boolean
|
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:415
|
Applies Defined Cursor class |
class.horizontal-center |
Type : boolean
|
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:308
|
Applies horizontal alignment left class |
class.horizontal-left |
Type : boolean
|
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:298
|
Applies horizontal alignment left class |
class.horizontal-right |
Type : boolean
|
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:368
|
Applies horizontal alignment right class |
class.horizontal-stretch |
Type : boolean
|
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:358
|
Applies horizontal alignment stretch class |
class.vertical-bottom |
Type : boolean
|
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:328
|
Applies vertical alignment bottom class |
class.vertical-center |
Type : boolean
|
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:338
|
Applies vertical alignment center class |
class.vertical-stretch |
Type : boolean
|
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:318
|
Applies horizontal alignment stretch class |
class.vertical-top |
Type : boolean
|
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:348
|
Applies vertical alignment top class |
style.display |
Type : any
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:243
|
Property use it to apply the host binding for the visibility |
style.font-family |
Type : any
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:261
|
Property use it to apply the host binding for the font-family |
style.font-size |
Type : any
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:270
|
Property use it to apply the host binding for the font-size |
style.font-style |
Type : any
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:279
|
Property use it to apply the host binding for the font-style |
style.font-weight |
Type : any
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:288
|
Property use it to apply the host binding for the font-weight |
style.height |
Type : string
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:218
|
Property use it to apply the host binding for the height |
style.max-height.px |
Type : number
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:234
|
Property used to apply the host binding for max-height |
style.max-width.px |
Type : number
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:210
|
Property used to apply the host binding for max-width |
style.min-height.px |
Type : number
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:226
|
Property used to apply the host binding for min-height |
style.min-width.px |
Type : number
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:202
|
Property used to apply the host binding for min-width |
style.opacity |
Type : any
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:252
|
Property use it to apply the host binding for the opacity |
style.width |
Type : string
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:194
|
Property use it to apply the host binding for the width |
style.z-index |
Type : string
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:424
|
Sets the z-index style. |
mouseenter |
mouseenter()
|
Listener to the mouse enter event to trigger visual state change animation |
mouseleave |
mouseleave()
|
Listener to the mouse leave event to trigger visual state change animation |
Private calcVisualState |
calcVisualState()
|
Resolves which should be the custom css class to apply based on the current state of the control
Returns :
void
|
getDynamicComponent | ||||||||
getDynamicComponent(item: any)
|
||||||||
Creates the required structure to display the combobox item inside a wmContainer component. This is required because the Angular 12 version introduces a breaking changes while using the ngTemplateOutlet directive
Parameters :
Returns :
any
a structure expected by the wmcontainer component |
handleClosing | ||||||
handleClosing(event: any)
|
||||||
Event before the dropdown is closed
Parameters :
Returns :
void
|
handleOpening | ||||||
handleOpening(event: any)
|
||||||
Event before the dropdown is opened
Parameters :
Returns :
void
|
Protected hostHorizontalAlignmentCall |
hostHorizontalAlignmentCall()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:820
|
Assign all the horizontal bindings for the control
Returns :
void
|
isDynamicTemplate | ||||||
isDynamicTemplate(dropdown: any)
|
||||||
Verify if current dropdownSelectedItem is a dynamic control.
Parameters :
Returns :
boolean
{boolean} |
isItemUIElement |
isItemUIElement()
|
Verify if selectedItem is an UIElement.
Returns :
boolean
|
isValidSelectedItem |
isValidSelectedItem()
|
Returns :
boolean
|
loadedHandler |
loadedHandler()
|
Occurs when a FrameworkElement has been constructed and added to the object tree
Returns :
void
|
modelChangeHandler | ||||||
modelChangeHandler(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:770
|
||||||
Model Change handler method for the combobox component It should handle the properties changed by code behind
Parameters :
Returns :
void
|
ngAfterViewInit |
ngAfterViewInit()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:546
|
Angular lifecycle Determines when all properties are ready and set renderingFlag true
Returns :
void
|
ngOnInit |
ngOnInit()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:529
|
Angular lifecycle Initialize model
Returns :
void
|
onInputKeyUpHandler | ||||||
onInputKeyUpHandler(event: any)
|
||||||
Event that occurs on a key up while the editor is in edit mode and the editor has focus
Parameters :
Returns :
void
|
onMouseEnter |
onMouseEnter()
|
Decorators :
@HostListener('mouseenter')
|
Listener to the mouse enter event to trigger visual state change animation
Returns :
void
|
onMouseLeave |
onMouseLeave()
|
Decorators :
@HostListener('mouseleave')
|
Listener to the mouse leave event to trigger visual state change animation
Returns :
void
|
onSelection | ||||||
onSelection(event: any)
|
||||||
Event triggered when selection changes and itemSource property is defined.
Parameters :
Returns :
void
|
returnDisplayMemberPath | ||||
returnDisplayMemberPath(dropDown)
|
||||
Returns returnDisplayMemberPath based on igxDropdown information.
Parameters :
Returns :
void
{void} |
returnItemLiteral | ||||||
returnItemLiteral(item: any)
|
||||||
Used to render literal items on the comboBox item list
Parameters :
Returns :
any
{*} |
returnSelectedItem |
returnSelectedItem()
|
Return selectedItem with or without displayMemberPath
Returns :
any
|
returnValueItemLiteral | ||||||
returnValueItemLiteral(dropDown: any)
|
||||||
Used to render literal items on the input value comboBox
Parameters :
Returns :
any
{*} |
syncModel |
syncModel()
|
Syncs the model with the component values.
Returns :
void
|
Private syncToUISelectedItem |
syncToUISelectedItem()
|
Makes sure the drop down will show the selected index if one is specified by the model
Returns :
void
|
Private updateSelectedItem |
updateSelectedItem()
|
Update the selected item when the Selected Value is changed on code behind or the itemSource is updated
Returns :
void
|
Private updateSelectedItemByIndex |
updateSelectedItemByIndex()
|
Updates selected item value when selectedValuePath is not defined and only a new index is a reference.
Returns :
void
|
widthCalc |
widthCalc()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:874
|
Applies the width CSS value
Returns :
any
|
Protected alignmentHandler |
alignmentHandler()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:2346
|
Calculate the values for the grid size behavior from the alignments
Returns :
void
|
Protected assignPendingPropertyValues |
assignPendingPropertyValues()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:2057
|
Apply pending assignments to properties with property values
Returns :
void
|
calculateActualSize | ||||||||
calculateActualSize(name?: string)
|
||||||||
Inherited from
BaseComponent
|
||||||||
Defined in
BaseComponent:1674
|
||||||||
If the name is equal to 'calculateActualSize', then call the handlerCalcActualSize function and pass in false to avoid the timer in the function. memberof BaseComponent
Parameters :
Returns :
void
|
Protected checkAndRegisterCompatibilityBinding | |||||||||
checkAndRegisterCompatibilityBinding(property: DependencyProperty, bindingObjectCandidate: any)
|
|||||||||
Inherited from
BaseComponent
|
|||||||||
Defined in
BaseComponent:2023
|
|||||||||
Verifies if the given object (bindingObjectCandidate) is a binding object. If so the binding will be registered.
Parameters :
Returns :
boolean
{boolean} true if the value is a binding info object and if the binding was registered, false if not |
Protected checkForStaticResource | ||||||||||||
checkForStaticResource(property: string, value: any)
|
||||||||||||
Inherited from
BaseComponent
|
||||||||||||
Defined in
BaseComponent:2043
|
||||||||||||
Checks if the given value is a static resource reference or not, if a reference then the value is queue for later assignment.
Parameters :
Returns :
boolean
true if the value is a static resource reference, otherwise false |
checkStaticItemInModelCollection | ||||||||||||
checkStaticItemInModelCollection(collection: any, itemToCheck: any)
|
||||||||||||
Inherited from
BaseComponent
|
||||||||||||
Defined in
BaseComponent:1889
|
||||||||||||
Checks if the element exists previously in the items collection
Parameters :
Returns :
number
number Returns -1 if the item is not present in the items collection otherwise the index value |
createElementInRoot |
createElementInRoot(injector: Injector, componentToCreate: any)
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:2698
|
Create a given component on the HTML body.
Returns :
ComponentRef<any>
|
cursorStyle |
cursorStyle()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:1549
|
Returns the correct CSS cursor style and sets the definedCursor flag if necessary
Returns :
string
{string} |
detectChanges |
detectChanges()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:813
|
Performs a single detect Changes over the component
Returns :
void
|
detectChangesAction |
detectChangesAction()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:1686
|
Handle subscription to the notifyDetectChanges action Refresh the component whenever a model modification was performed
Returns :
void
|
getForeground |
getForeground()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:1966
|
Calculates the Foreground color to be applied
Returns :
string
string |
getImageString | ||||||
getImageString(value: any)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:2221
|
||||||
Returns string path to the image.
Parameters :
Returns :
any
|
getTargetValue | ||||||
getTargetValue(e: Event)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:2239
|
||||||
Returns the value from a $event
Parameters :
Returns :
string
|
Protected handlerCalcActualSize | ||||||
handlerCalcActualSize(async: boolean)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:2391
|
||||||
Handler that calculates ActualHeight & ActualWidth based on its inner content.
Parameters :
Returns :
void
|
heightCalc |
heightCalc()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:1939
|
Applies the height CSS value
Returns :
any
|
heightDefaultStyle |
heightDefaultStyle()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:1914
|
Calculates the auto height value
Returns :
string
{string} |
Protected hostVerticalAlignmentCall |
hostVerticalAlignmentCall()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:2357
|
Assign all the vertical bindings for the control
Returns :
void
|
imageToPath | ||||||
imageToPath(value: any)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:2202
|
||||||
Returns the path of the given image.
Parameters :
Returns :
any
|
loadStaticItems | ||||||||||||
loadStaticItems(staticItems: any, itemsCollection: any)
|
||||||||||||
Inherited from
BaseComponent
|
||||||||||||
Defined in
BaseComponent:1634
|
||||||||||||
Parameters :
Returns :
void
void |
Private markForCheckComp |
markForCheckComp()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:2451
|
Marks current component
Returns :
void
|
mouseEnterHandler | ||||||||
mouseEnterHandler(event: any)
|
||||||||
Inherited from
BaseComponent
|
||||||||
Defined in
BaseComponent:1982
|
||||||||
Event Handler for when the mouse enter the Image component.
Parameters :
Returns :
void
|
mouseLeaveHandler | ||||||||
mouseLeaveHandler(event: any)
|
||||||||
Inherited from
BaseComponent
|
||||||||
Defined in
BaseComponent:2001
|
||||||||
Event Handler for when the mouse enter the Image component.
Parameters :
Returns :
void
|
Public ngAfterContentChecked |
ngAfterContentChecked()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:867
|
Angular Lifecycle Hooks
Returns :
void
|
Public ngAfterContentInit |
ngAfterContentInit()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:857
|
Angular Lifecycle Hooks
Returns :
void
|
Public ngAfterViewChecked |
ngAfterViewChecked()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:893
|
Angular Lifecycle Hooks
Returns :
void
|
Public ngDoCheck |
ngDoCheck()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:847
|
Angular Lifecycle Hooks
Returns :
void
|
Public ngOnChanges |
ngOnChanges()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:824
|
Angular Lifecycle Hooks
Returns :
void
|
Public ngOnDestroy |
ngOnDestroy()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:906
|
Cleanup operations for base component
Returns :
void
|
preventItemsDuplication | ||||||||||||||||||
preventItemsDuplication(itemsToRender: any, items: any, contentChildTemplate: any, afterContentInitCalled: boolean, injector: Injector)
|
||||||||||||||||||
Inherited from
BaseComponent
|
||||||||||||||||||
Defined in
BaseComponent:2170
|
||||||||||||||||||
Validates if coming models are the same, and prevents to be recreated on Ribbon DOM. (Needs to be checked, in some statics scenarios RibbonTab, RibbonGroup duplicates items)
Parameters :
Returns :
any[]
|
processAlignments | ||||||
processAlignments(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:1704
|
||||||
Method to check if the component should assign a alignment property
Parameters :
Returns :
void
{void} |
processCursor | ||||||
processCursor(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:1850
|
||||||
Method to set the cursor style of the component
Parameters :
Returns :
void
|
processCustomCssClasses | ||||||
processCustomCssClasses(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:1723
|
||||||
Method to set custom CSS Clases
Parameters :
Returns :
void
{void} |
processFocusable | ||||||
processFocusable(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:1816
|
||||||
Method to check and set the height of the grid
Parameters :
Returns :
void
|
Private processFontFamily | ||||||
processFontFamily(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:2784
|
||||||
Process the FontFamily property
Parameters :
Returns :
any
|
processFonts | ||||||
processFonts(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:1778
|
||||||
Method to apply the font styles for the component.
Parameters :
Returns :
void
|
Private processFontSize | ||||||
processFontSize(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:2798
|
||||||
Process the FontSize property
Parameters :
Returns :
any
|
Private processFontStyle | ||||||
processFontStyle(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:2815
|
||||||
Process the FontStyle property
Parameters :
Returns :
any
|
Private processFontWeight | ||||||
processFontWeight(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:2832
|
||||||
Process the FontWeight property
Parameters :
Returns :
any
|
processHeights | ||||||
processHeights(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:1797
|
||||||
Method to check and set the height of the grid
Parameters :
Returns :
void
|
processIsEnabled | ||||||
processIsEnabled(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:1764
|
||||||
Process changes to
Parameters :
Returns :
void
|
processOpacity | ||||||
processOpacity(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:1751
|
||||||
Method to apply the opacity for the component.
Parameters :
Returns :
void
|
processVisibility | ||||||
processVisibility(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:1737
|
||||||
Method to check if the component should be show or hide.
Parameters :
Returns :
void
|
processWidths | ||||||
processWidths(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:1829
|
||||||
Method to check and set the width of the grid
Parameters :
Returns :
void
|
Private processZIndex | ||||||
processZIndex(name: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:1872
|
||||||
Method to process the ZIndex when set through the model
Parameters :
Returns :
void
|
Private recreateInvalidBindings |
recreateInvalidBindings()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:2756
|
Execution of removeModelProxyHandlers in a previous instance of the component (that used the same model) could have set some bindings in an invalid state, this will check if some of them has to be recreated
Returns :
void
|
Private registerContextMenuActions | ||||||
registerContextMenuActions(ctxMenu: ContextMenuManager)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:2533
|
||||||
Enable the contextMenu actions to be displayed when the user perform an action Creates dinamically a new instance of XamContextMenu to be displayed in the screen
Parameters :
Returns :
void
|
Protected registerDomEventListenerOnElement |
registerDomEventListenerOnElement(eventName: string, handler: any)
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:2316
|
Registers a DOM handler on the current element
Returns :
void
|
Protected registerHandler | |||||||||
registerHandler(event: SubscriptionEvent<void>, arrowHandler: (s: any,a: any) => void)
|
|||||||||
Inherited from
BaseComponent
|
|||||||||
Defined in
BaseComponent:2298
|
|||||||||
Register arrow handler into the given
Parameters :
Returns :
void
|
Protected registerMouseEvents |
registerMouseEvents()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:2272
|
Registers mouse events if required
Returns :
void
|
Protected registerObservers | ||||||||||||
registerObservers(emitter: EventEmitter
|
||||||||||||
Inherited from
BaseComponent
|
||||||||||||
Defined in
BaseComponent:2252
|
||||||||||||
Register observers from the given
Parameters :
Returns :
void
|
Private registerToolTip | |||||||||
registerToolTip(element: ElementRef
|
|||||||||
Inherited from
BaseComponent
|
|||||||||
Defined in
BaseComponent:2607
|
|||||||||
Registers a tooltip to a component
Parameters :
Returns :
void
|
Private removeModelProxyHandlers |
removeModelProxyHandlers()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:2738
|
Clean up the handlers when the component is destroyed
Returns :
void
|
Private setComponentForDirectives |
setComponentForDirectives()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:2512
|
Sets an internal reference through the element ref to access the component in a directive
Returns :
void
|
Protected setPendingPropertyValue |
setPendingPropertyValue(property: string, value: any)
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:2336
|
Stores the pending property values for instance attach properties. Which will be applied when the model is available
Returns :
void
|
setupDependencyComponents | ||||||
setupDependencyComponents(model: FrameworkElement)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:1612
|
||||||
Adds the references to the dependency components
Parameters :
Returns :
void
|
setupModel | ||||||
setupModel(model: FrameworkElement)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:1559
|
||||||
Syncs the modelProxy with model
Parameters :
Returns :
void
void |
Private syncToolTip | ||||||
syncToolTip(tooltip: ToolTipModel)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:2587
|
||||||
Updates the tooltip associated to a component
Parameters :
Returns :
void
|
Private syncValidationError | ||||||
syncValidationError(name?: string)
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:2766
|
||||||
Syncs validation information with component properties
Parameters :
Returns :
void
|
Private tabSelectionSubscription |
tabSelectionSubscription()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:2471
|
Subscribe to the tabhandler event if Required When the component is inside a tab control it should trigger the load event every time the tab is selected
Returns :
void
|
trackByFn | ||||||||||||
trackByFn(index: any, item: any)
|
||||||||||||
Inherited from
BaseComponent
|
||||||||||||
Defined in
BaseComponent:1904
|
||||||||||||
Function used by Angular to track elements in the ngFor directive. We use the GUID property to compare elements.
Parameters :
Returns :
any
{*} -return the model or object itself |
Private unregisterToolTip | ||||||
unregisterToolTip(element: ElementRef
|
||||||
Inherited from
BaseComponent
|
||||||
Defined in
BaseComponent:2719
|
||||||
Unregisters a tooltip to a component
Parameters :
Returns :
void
|
Private updateSizePropertiesForActualSizeChange | ||||||||
updateSizePropertiesForActualSizeChange(element: Element)
|
||||||||
Inherited from
BaseComponent
|
||||||||
Defined in
BaseComponent:2421
|
||||||||
Updates the size properties of the component based on the initial size change
Parameters :
Returns :
void
|
validatesLoadingFlag |
validatesLoadingFlag()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:1519
|
Validates loading flag for components outside current tab index TabIndexService should be only tabItem provider, and when currentTabId is different from selectedTab IsFirstTimeLoad is set to false because tabService is going to be one in charge to trigger only one time when tab changes.
Returns :
void
|
widthDefaultStyle |
widthDefaultStyle()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:1926
|
Calculates the auto width value
Returns :
string
{string} |
comboBoxItem |
Type : QueryList<any>
|
Decorators :
@ContentChildren('comboBoxItem')
|
Static elements template reference |
dropDown |
Type : IgxDropDownComponent
|
Decorators :
@ViewChild('dropDown')
|
Gets the reference of the dropdown |
dropDownChanged |
Type : boolean
|
Flag to handle changed by user action |
dropDownClosed |
Type : EventEmitter<literal type>
|
Default value : new EventEmitter()
|
Decorators :
@Output()
|
DropDownClosed event |
dropDownInputGroup |
Type : any
|
Decorators :
@ViewChild('inputGroup')
|
Gets the input group section of the combo box |
dropDownOpened |
Type : EventEmitter<literal type>
|
Default value : new EventEmitter()
|
Decorators :
@Output()
|
DropDownOpened event |
inputContainerClasses |
Type : string
|
Default value : 'control-normal'
|
Custom classes binding to apply depending on the current visual statel |
isInitialized |
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:503
|
Flag to know if the component is ready to render |
itemTemplate |
Type : TemplateRef<any>
|
Decorators :
@ContentChild('itemTemplate')
|
Template elements reference |
loaded |
Type : EventEmitter<any>
|
Default value : new EventEmitter()
|
Decorators :
@Output()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:199
|
Loaded event. |
model |
Type : ComboBoxModel
|
Decorators :
@Input()
|
Object with properties and events for the ComboBox. |
Protected modelProxy |
Type : ComboBoxModel
|
Default value : ModelProxy.create<ComboBoxModel>()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:495
|
ModelProxy is copy of model, used on the component initial building to prevent crashes with external bindings. |
Private onMouseOver |
Default value : false
|
Control state variable |
Private onSyncToUISelectedItem |
Default value : false
|
Flag to avoid unnecessary actions |
Private overlayService |
Type : IgxOverlayService
|
Reference to the overlay service, used to display the dropDown |
Public positionStrategyAuto |
Default value : new AutoPositionStrategy()
|
The auto position strategy |
selectionChanged |
Type : EventEmitter<any>
|
Default value : new EventEmitter()
|
Decorators :
@Output()
|
SelectionChanged event output |
actualSizeCalled |
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:481
|
Flag to know if the Angular event was called |
afterContentInitCalled |
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:465
|
Flag to know if the Angular event was called |
afterViewCheckedCalled |
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:473
|
Flag to know if the Angular event was called |
afterViewInitCalled |
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:457
|
Flag to know if the Angular event was called |
Private bindingValidationCallback |
Type : function
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:618
|
Callback for binding validation |
bindingValidationError |
Type : EventEmitter<any>
|
Default value : new EventEmitter()
|
Decorators :
@Output()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:114
|
output to emit the new value of the bindingValidationError event |
Private cdRefInjection |
Type : ChangeDetectorRef
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:659
|
Change Detector Reference for the component |
Private changeDetectionTimer |
Type : any
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:668
|
A timer to debounce changedetection actions |
Protected changeDetectorNotifier |
Type : ChangeDectionNotifierService
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:576
|
Change Detection Notifier Service instace. |
Private contextMenuUnlistener |
Type : function
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:676
|
Context Menu event unlisten action. |
Private ctxMenuInstance |
Type : any
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:630
|
Reference to the ctxMenuInstance |
customCssClasses |
Type : string
|
Default value : null
|
Decorators :
@HostBinding('class')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:407
|
Applies custom CSS classes |
Private customTooltipInstance |
Type : any
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:641
|
Reference to the custom tooltip instance this is used to render a popup with custom elements used when the content value is not a string |
dataGridRowHeight |
Type : number
|
Default value : 22
|
Decorators :
@Input()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:507
|
Represents the row height of both the DataGrid and XamGrid components it affects the css and also an internal function that virtualized data, so do not change directly on css, use this variable instead. |
Protected domHandlerUnListeners |
Type : Array<void>
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:567
|
A collection (possible undefined) of DOM unlistener functions . That is, functions to de register handlers |
fireLoadedSubscription |
Type : Subscription
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:449
|
Flag to control load event for components inside tab control |
focusable |
Default value : false
|
Decorators :
@HostBinding('class.focusable')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:388
|
Display if the component is focusable or not |
Protected handlersToUnregister |
Type : Array<>
|
Default value : []
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:558
|
handlers to unregister when the component is destroyed |
hasDefinedCursor |
Default value : false
|
Decorators :
@HostBinding('class.hasDefinedCursor')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:415
|
Applies Defined Cursor class |
hostFontFamily |
Type : any
|
Default value : null
|
Decorators :
@HostBinding('style.font-family')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:261
|
Property use it to apply the host binding for the font-family |
hostFontSize |
Type : any
|
Default value : null
|
Decorators :
@HostBinding('style.font-size')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:270
|
Property use it to apply the host binding for the font-size |
hostFontStyle |
Type : any
|
Default value : null
|
Decorators :
@HostBinding('style.font-style')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:279
|
Property use it to apply the host binding for the font-style |
hostFontStyles |
Default value : false
|
Decorators :
@HostBinding('class.defaultFontStyles')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:398
|
Applies default font styles class, used to allow specificity for each control css |
hostFontWeight |
Type : any
|
Default value : null
|
Decorators :
@HostBinding('style.font-weight')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:288
|
Property use it to apply the host binding for the font-weight |
hostHeight |
Type : string
|
Default value : null
|
Decorators :
@HostBinding('style.height')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:218
|
Property use it to apply the host binding for the height |
hostHozCenter |
Default value : false
|
Decorators :
@HostBinding('class.horizontal-center')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:308
|
Applies horizontal alignment left class |
hostHozLeft |
Default value : false
|
Decorators :
@HostBinding('class.horizontal-left')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:298
|
Applies horizontal alignment left class |
hostHozRight |
Default value : false
|
Decorators :
@HostBinding('class.horizontal-right')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:368
|
Applies horizontal alignment right class |
hostHozSelfAlign |
Default value : false
|
Decorators :
@HostBinding('class.horizontal-selfalign')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:380
|
Applies horizontal selfalign class. Flags indicates when the control should handle its own horizontal alignment and ignore container alignment. |
hostHozStretch |
Default value : false
|
Decorators :
@HostBinding('class.horizontal-stretch')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:358
|
Applies horizontal alignment stretch class |
hostMaxHeight |
Type : number
|
Decorators :
@HostBinding('style.max-height.px')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:234
|
Property used to apply the host binding for max-height |
hostMaxWidth |
Type : number
|
Decorators :
@HostBinding('style.max-width.px')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:210
|
Property used to apply the host binding for max-width |
hostMinHeight |
Type : number
|
Decorators :
@HostBinding('style.min-height.px')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:226
|
Property used to apply the host binding for min-height |
hostMinWidth |
Type : number
|
Decorators :
@HostBinding('style.min-width.px')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:202
|
Property used to apply the host binding for min-width |
hostOpacity |
Type : any
|
Default value : null
|
Decorators :
@HostBinding('style.opacity')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:252
|
Property use it to apply the host binding for the opacity |
hostVerBottom |
Default value : false
|
Decorators :
@HostBinding('class.vertical-bottom')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:328
|
Applies vertical alignment bottom class |
hostVerCenter |
Default value : false
|
Decorators :
@HostBinding('class.vertical-center')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:338
|
Applies vertical alignment center class |
hostVerStretch |
Default value : false
|
Decorators :
@HostBinding('class.vertical-stretch')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:318
|
Applies horizontal alignment stretch class |
hostVerTop |
Default value : false
|
Decorators :
@HostBinding('class.vertical-top')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:348
|
Applies vertical alignment top class |
hostVisibility |
Type : any
|
Default value : null
|
Decorators :
@HostBinding('style.display')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:243
|
Property use it to apply the host binding for the visibility |
hostWidth |
Type : string
|
Default value : null
|
Decorators :
@HostBinding('style.width')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:194
|
Property use it to apply the host binding for the width |
hostZIndex |
Type : string
|
Default value : null
|
Decorators :
@HostBinding('style.z-index')
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:424
|
Sets the z-index style. |
isInternalInherit |
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:515
|
Flag which indicates that the component is an internal use for inheritance |
layoutUpdated |
Type : EventEmitter<any>
|
Default value : new EventEmitter()
|
Decorators :
@Output()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:140
|
Output to emit when then component's layout is updated. |
Protected modelChangeRef |
Type : function
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:601
|
Contains the reference of the function added for handle the model's change |
mouseEnter |
Type : EventEmitter<literal type>
|
Default value : new EventEmitter()
|
Decorators :
@Output()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:157
|
Event Emitter. EventEmitter normally called in the mouseEnterHandler. |
mouseLeave |
Type : EventEmitter<literal type>
|
Default value : new EventEmitter()
|
Decorators :
@Output()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:167
|
Event Emitter Called in the mouseLeave handler |
Private mouseLeaveTooltipUnlistener |
Type : function
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:684
|
Mouse over event for tooltip unlisten action. |
mouseLeftButtonUp |
Type : EventEmitter<literal type>
|
Default value : new EventEmitter<any>()
|
Decorators :
@Output()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:147
|
MouseLeftButtonUp event Emitter. |
Private mouseMoveTooltipUnlistener |
Type : function
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:701
|
Mouse move event for tooltip unlisten action. This should have a short lifespan, as much as it takes for the tooltip to be shown |
Private mouseOverTooltipUnlistener |
Type : function
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:692
|
Mouse over event for tooltip unlisten action. |
Protected ngZone |
Type : NgZone
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:585
|
Angular´s NgZone accessor |
Protected pendingDependencyPropertyValue |
Type : Array<>
|
Default value : []
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:549
|
A collection of pending dependency properties values to assign to the model |
Protected pendingSetValues |
Type : Array<>
|
Default value : []
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:540
|
A collection of pending values to assign to the model |
Protected renderer2 |
Type : Renderer2
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:594
|
Angular´s Renderer2 |
sizeChanged |
Type : EventEmitter<any>
|
Default value : new EventEmitter()
|
Decorators :
@Output()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:132
|
Output to emit when then component size is changed. |
Private sizeChangedPendingTimeout |
Type : any
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:610
|
Timeout id for triggering the sizechanged event |
spellCheck |
Default value : false
|
Decorators :
@Input()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:186
|
Flag to determinate if the component should do the spell check or not. Default value is false. |
staticContent |
Type : any
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:432
|
cache the static content of the control to validate if the current data is not equals. |
tabSubscription |
Type : Subscription
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:440
|
TabSelection event subscription |
Private tooltipMousePosition |
Type : DOMRect
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:710
|
To track the position of the mouse while the tooltip is being displayed |
Private toolTipTimeout |
Type : any
|
Default value : null
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:650
|
To control the timer to show the tooltip |
useCss |
Default value : false
|
Decorators :
@Input()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:177
|
Determines if the component uses CSS height/width values, instead of inputs |
validationError |
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:488
|
Property to set the validationError class in the component |
validationErrorMessage |
Type : string
|
Default value : ''
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:496
|
Property for specifying validation error message |
borderBrush | ||||||
getborderBrush()
|
||||||
Gets the border color from the ComboBoxComponent.
Returns :
string | BindingInfo
|
||||||
setborderBrush(value: BindingInfo | string)
|
||||||
Sets the border color for the ComboBoxComponent.
Parameters :
Returns :
void
|
selectedValue | ||||||
getselectedValue()
|
||||||
Return SelectedItem property
Returns :
any
|
||||||
setselectedValue(value: any)
|
||||||
ComboBox selected value
Parameters :
Returns :
void
|
selectedItem | ||||||
getselectedItem()
|
||||||
Return SelectedItem property
Returns :
any
|
||||||
setselectedItem(value: any)
|
||||||
ComboBox SelectedItem property
Parameters :
Returns :
void
|
displayMemberPath | ||||||
getdisplayMemberPath()
|
||||||
Gets The name or path of the property that is displayed for each data item.
Returns :
string
|
||||||
setdisplayMemberPath(value: string)
|
||||||
The name or path of the property that is displayed for each data item.
Parameters :
Returns :
void
|
selectedValuePath | ||||||
getselectedValuePath()
|
||||||
Get property path that is used to get the SelectedValue property of the SelectedItem property.
Returns :
any
|
||||||
setselectedValuePath(value: any)
|
||||||
Sets Property path that is used to get the SelectedValue property of the SelectedItem property.
Parameters :
Returns :
void
|
comboBoxItemArray |
getcomboBoxItemArray()
|
Returns the array of templates to be accepted by igxCombobox
Returns :
any
|
items |
getitems()
|
Returns current model items.
Returns :
any
|
itemsSource | ||||||
getitemsSource()
|
||||||
Gets ItemsSource for the ComboBoxComponent
Returns :
any
|
||||||
setitemsSource(value: any)
|
||||||
Sets ItemsSource for the ComboBoxComponent
Parameters :
Returns :
void
|
maxDropDownHeight | ||||||
getmaxDropDownHeight()
|
||||||
Gets MaxDropDownHeight property of the ComboBoxComponent.
Returns :
any
|
||||||
setmaxDropDownHeight(value: any)
|
||||||
Sets MaxDropDownHeight property of the ComboBoxComponent.
Parameters :
Returns :
void
|
itemsToRender |
getitemsToRender()
|
Collection of components to render.
Returns :
any
|
containsUIElements |
getcontainsUIElements()
|
Verifies if the items collections contains UIElements to be rendered
Returns :
boolean
|
import {
AfterViewInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChildren,
ContentChild,
EventEmitter,
Injector,
Input,
OnInit,
Optional,
Output,
QueryList,
TemplateRef,
ViewChild,
ElementRef,
HostListener,
} from '@angular/core';
import {
ComboBoxModel,
ModelProxy,
ComponentId,
AngularComponentId,
UIElement,
BindingInfo,
SolidColorBrush,
smColorToCssColor,
} from '@mobilize/wms-framework';
import {
AbsoluteScrollStrategy,
AutoPositionStrategy,
IgxDropDownComponent,
IgxOverlayService,
OverlaySettings,
} from 'igniteui-angular';
import { Utils } from '../../utils/utilities';
import { BaseComponent } from '../base/base.component';
/**
* Angular Component for the ComboBox Control.
*
* @export
* @class ComboBoxComponent
* @extends {BaseComponent}
* @implements {OnInit}
* @implements {AfterViewInit}
*/
@Component({
selector: 'wm-combo-box',
templateUrl: './combo-box.component.html',
styleUrls: ['./combo-box.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
@ComponentId([AngularComponentId.comboBox])
export class ComboBoxComponent
extends BaseComponent
implements OnInit, AfterViewInit
{
/**
* Flag to avoid unnecessary actions
*
* @private
* @type {boolean}
* @memberof ComboBoxComponent
*/
private onSyncToUISelectedItem = false;
/**
* Custom classes binding to apply depending on the current visual statel
*
* @memberof ComboBoxComponent
*/
inputContainerClasses = 'control-normal';
/**
* Control state variable
*
* @memberof ComboBoxComponent
*/
private onMouseOver = false;
/**
* Reference to the overlay service, used to display the dropDown
*
* @private
* @type {IgxOverlayService}
* @memberof ComboBoxComponent
*/
private overlayService: IgxOverlayService;
/**
* Listener to the mouse enter event to trigger visual state change animation
*
* @memberof ComboBoxComponent
*/
@HostListener('mouseenter')
onMouseEnter() {
this.onMouseOver = true;
this.calcVisualState();
}
/**
* Listener to the mouse leave event to trigger visual state change animation
*
* @memberof ComboBoxComponent
*/
@HostListener('mouseleave')
onMouseLeave() {
this.onMouseOver = false;
this.calcVisualState();
}
/**
* Resolves which should be the custom css class to apply based on the current state of the control
*
* @private
* @memberof ComboBoxComponent
*/
private calcVisualState(): void {
this.inputContainerClasses = 'control-normal';
if (this.isEnabled) {
if (this.onMouseOver) {
this.inputContainerClasses = 'control-mouseover';
}
if (this.model?.IsDropDownOpen) {
this.inputContainerClasses = 'control-pressed';
}
}
}
/**
* Sets the border color for the ComboBoxComponent.
*
* @memberof ComboBoxComponent
*/
@Input()
set borderBrush(value: BindingInfo | string) {
/* istanbul ignore else */
if (
!this.checkAndRegisterCompatibilityBinding(
ComboBoxModel.BorderBrushProperty,
value
)
) {
this.modelProxy.BorderBrush = Utils.createSolidBrush(value);
}
}
/**
* Gets the border color from the ComboBoxComponent.
*
* @type {string}
* @memberof ComboBoxComponent
*/
get borderBrush(): string | BindingInfo {
if (
this.model.BorderBrush != null &&
this.model.BorderBrush instanceof SolidColorBrush
) {
return smColorToCssColor(this.model.BorderBrush.Color);
}
return undefined;
}
/**
* SelectionChanged event output
*
* @type {EventEmitter<any>}
* @memberof ComboBoxComponent
*/
@Output()
selectionChanged: EventEmitter<any> = new EventEmitter();
/**
* Loaded event.
*
* @type {EventEmitter<any>}
* @memberof ComboBoxComponent
*/
@Output()
loaded: EventEmitter<any> = new EventEmitter();
/**
* DropDownClosed event
*
* @type {EventEmitter<{sender: ComboBoxModel; e: any}>}
* @memberof ComboBoxComponent
*/
@Output()
dropDownClosed: EventEmitter<{ sender: ComboBoxModel; e: any }> =
new EventEmitter();
/**
* DropDownOpened event
*
* @type {EventEmitter<{sender: ComboBoxModel; e: any}>}
* @memberof ComboBoxComponent
*/
@Output()
dropDownOpened: EventEmitter<{ sender: ComboBoxModel; e: any }> =
new EventEmitter();
/**
* Object with properties and events for the ComboBox.
*
* @type {ComboBox}
* @memberof ComboBoxComponent
*/
@Input()
model: ComboBoxModel;
/**
* ComboBox selected value
*
* @type {any}
* @memberof ComboBoxComponent
*/
@Input()
set selectedValue(value: any) {
/* istanbul ignore else */
if (
!this.checkAndRegisterCompatibilityBinding(
ComboBoxModel.SelectedValueProperty,
value
)
) {
this.modelProxy.SelectedValue = value;
}
}
/**
* Return SelectedItem property
*
* @readonly
* @type {*}
* @memberof ComboBoxComponent
*/
get selectedValue(): any {
return this.model.SelectedValue;
}
/**
* ComboBox SelectedItem property
*
* @type {any}
* @memberof ComboBoxComponent
*/
@Input()
set selectedItem(value: any) {
/* istanbul ignore else */
if (
!this.checkAndRegisterCompatibilityBinding(
ComboBoxModel.SelectedItemProperty,
value
)
) {
this.modelProxy.SelectedItem = value;
}
}
/**
* Return SelectedItem property
*
* @readonly
* @type {*}
* @memberof ComboBoxComponent
*/
get selectedItem(): any {
return this.model.SelectedItem;
}
/**
* The name or path of the property that is displayed for each data item.
*
* @type {string}
* @memberof ComboBoxComponent
*/
@Input()
set displayMemberPath(value: string) {
this.modelProxy.DisplayMemberPath = value;
}
/**
* Gets The name or path of the property that is displayed for each data item.
*
* @readonly
* @type {string}
* @memberof ComboBoxComponent
*/
get displayMemberPath(): string {
return this.model.DisplayMemberPath;
}
/**
* Sets Property path that is used to get the SelectedValue property of the SelectedItem property.
*
* @memberof ComboBoxComponent
*/
@Input()
set selectedValuePath(value: any) {
this.modelProxy.SelectedValuePath = value;
}
/**
* Get property path that is used to get the SelectedValue property of the SelectedItem property.
*
* @readonly
* @type {*}
* @memberof ComboBoxComponent
*/
get selectedValuePath(): any {
return this.model.SelectedValuePath;
}
/**
* Template elements reference
*
* @type {TemplateRef<any>}
* @memberof ComboBoxComponent
*/
@ContentChild('itemTemplate')
itemTemplate: TemplateRef<any>;
/**
* Static elements template reference
*
* @type {QueryList<any>}
* @memberof ComboBoxComponent
*/
@ContentChildren('comboBoxItem')
comboBoxItem: QueryList<any>;
/**
* Gets the reference of the dropdown
*
* @type {*}
* @memberof ComboBoxComponent
*/
@ViewChild('dropDown')
dropDown: IgxDropDownComponent;
/**
* Gets the input group section of the combo box
*
* @type {*}
* @memberof ComboBoxComponent
*/
@ViewChild('inputGroup')
dropDownInputGroup: any;
/**
* Flag to handle changed by user action
*
* @type {boolean}
* @memberof ComboBoxComponent
*/
dropDownChanged: boolean;
/**
* The auto position strategy
*
* @memberof ComboBoxComponent
*/
public positionStrategyAuto = new AutoPositionStrategy();
/**
* The auto overlay settings
*
* @memberof ComboBoxComponent
*/
public overlaySettingsAuto: OverlaySettings = {
positionStrategy: this.positionStrategyAuto,
scrollStrategy: new AbsoluteScrollStrategy(),
modal: false,
closeOnEscape: false,
};
/**
* Returns the array of templates to be accepted by igxCombobox
*
* @readonly
* @type {*}
* @memberof ComboBoxComponent
*/
get comboBoxItemArray(): any {
return this.comboBoxItem.toArray();
}
/**
* Returns current model items.
*
* @readonly
* @type {*}
* @memberof ComboBoxComponent
*/
get items(): any {
return this.model.items;
}
/**
* Sets ItemsSource for the ComboBoxComponent
*
* @memberof ComboBoxComponent
*/
set itemsSource(value: any) {
/* istanbul ignore else */
if (
!this.checkAndRegisterCompatibilityBinding(
ComboBoxModel.ItemsSourceProperty,
value
)
) {
this.modelProxy.ItemsSource = value;
}
}
/**
* Gets ItemsSource for the ComboBoxComponent
*
* @readonly
* @type {*}
* @memberof ComboBoxComponent
*/
@Input()
get itemsSource(): any {
return this.model.ItemsSource;
}
/**
* Sets MaxDropDownHeight property of the ComboBoxComponent.
*
* @type {any}
* @memberof ComboBoxComponent
*/
@Input()
set maxDropDownHeight(value: any) {
/* istanbul ignore else */
if (
!this.checkAndRegisterCompatibilityBinding(
ComboBoxModel.MaxDropDownHeightProperty,
value
)
) {
this.modelProxy.MaxDropDownHeight = value;
}
}
/**
* Gets MaxDropDownHeight property of the ComboBoxComponent.
*
* @type {any}
* @memberof ComboBoxComponent
*/
get maxDropDownHeight(): any {
return this.model.MaxDropDownHeight;
}
/**
* Collection of components to render.
*
* @protected
* @memberof ComboBoxComponent
*/
get itemsToRender(): any {
return this.containsUIElements
? Utils.getUIControls(this.items, this.injector)
: this.model.items?.internalArray;
}
/**
* ModelProxy is copy of model, used on the component initial building to prevent crashes with external bindings.
*
* @private
* @type {ComboBox}
* @memberof ComboBoxComponent
*/
protected modelProxy: ComboBoxModel = ModelProxy.create<ComboBoxModel>();
/**
* Flag to know if the component is ready to render
*
* @type {boolean}
* @memberof ComboBoxComponent
*/
isInitialized = false;
/**
* Creates an instance of ComboBoxComponent.
*
* @param {ComboBox} [injectedModel=null]
* @memberof ComboBoxComponent
*/
/* istanbul ignore next */
public constructor(
@Optional() protected injectedModel: ComboBoxModel = null,
private injector: Injector,
private cdRef: ChangeDetectorRef,
@Optional() protected element: ElementRef = null
) {
super(cdRef, injector);
this.overlayService = injector?.get(IgxOverlayService);
this.model = injectedModel;
}
/**
* Angular lifecycle
* Initialize model
*
* @memberof ComboBoxComponent
*/
ngOnInit(): void {
this.model = this.model || this.injectedModel || new ComboBoxModel();
this.setupModel(this.model);
super.ngOnInit();
this.registerObservers(
this.selectionChanged,
this.model,
this.model.SelectionChanged
);
}
/**
* Angular lifecycle
* Determines when all properties are ready and set renderingFlag true
*
* @memberof ComboBoxComponent
*/
ngAfterViewInit(): void {
super.ngAfterViewInit();
setTimeout(() => {
this.syncModel();
this.isInitialized = true;
this.detectChangesAction();
}, 0);
}
/**
* Occurs when a FrameworkElement has been constructed and added to the object tree
*
* @memberof ComboBoxComponent
*/
loadedHandler(): void {
const params = { sender: this.model, e: this };
this.model.Loaded.fire([params.sender, params.e]);
this.loaded.emit(params);
}
/**
* Event triggered when selection changes and itemSource property is defined.
*
* @param {*} event
* @memberof ComboBoxComponent
*/
onSelection(event: any) {
if (this.onSyncToUISelectedItem || !this.itemsSource) return;
if (this.selectedValuePath) {
this.selectedValue = event.newSelection.value[this.selectedValuePath];
} else {
this.selectedValue = event.newSelection.value;
}
this.selectedItem = event.newSelection.value;
}
/**
* Returns returnDisplayMemberPath based on igxDropdown information.
*
* @param {*} dropDown
* @return {*} {void}
* @memberof ComboBoxComponent
*/
returnDisplayMemberPath(dropDown): void {
return dropDown.selectedItem?.value[this.displayMemberPath];
}
/**
* Verifies if the items collections contains UIElements to be rendered
*
* @returns boolean True if the collection contains UIElements otherwise false
* @memberof ComboBoxComponent
*/
get containsUIElements(): boolean {
return Utils.containsUIElement(this.items);
}
/**
* Syncs the model with the component values.
*
* @memberof ComboBoxComponent
*/
syncModel() {
// Sync static items to the model
/* istanbul ignore next */
if (!this.itemsSource && this.comboBoxItemArray.length > 0) {
const arrayItems = this.comboBoxItemArray;
for (const item of arrayItems) {
this.model.items.add(item.model);
}
}
}
/**
* Used to render literal items on the input value comboBox
*
* @param {*} dropDown
* @return {*} {*}
* @memberof ComboBoxComponent
*/
returnValueItemLiteral(dropDown: any): any {
return dropDown.selectedItem?.value.item;
}
/**
* Used to render literal items on the comboBox item list
*
* @param {*} item
* @return {*} {*}
* @memberof ComboBoxComponent
*/
returnItemLiteral(item: any): any {
if (typeof item === 'object' && item !== null) {
return item['item'];
}
return item;
}
/**
* Verify if current dropdownSelectedItem is a dynamic control.
*
* @param {*} dropdown
* @return {*} {boolean}
* @memberof ComboBoxComponent
*/
isDynamicTemplate(dropdown: any): boolean {
return (
dropdown &&
dropdown.selectedItem &&
!this.itemTemplate &&
dropdown.selectedItem.value.component
);
}
/**
* Return selectedItem with or without displayMemberPath
*
* @return {any}
* @memberof ComboBoxComponent
*/
returnSelectedItem(): any {
if (this.model.SelectedIndex >= 0)
return this.displayMemberPath
? this.selectedItem?.[this.displayMemberPath]
: this.selectedItem;
else return '';
}
/**
* Verify if selectedItem is an UIElement.
*
* @return {boolean}
* @memberof ComboBoxComponent
*/
isItemUIElement(): boolean {
return this.selectedItem instanceof UIElement;
}
isValidSelectedItem(): boolean {
const value = this.model.SelectedItem;
return typeof value !== 'undefined' && value !== null;
}
/**
* Event before the dropdown is opened
*
* @param {*} event
* @memberof ComboBoxComponent
*/
handleOpening(event: any): void {
const params = { sender: this.model, e: event };
this.overlaySettingsAuto.target = this.dropDownInputGroup?.nativeElement;
this.model.OnDropDownOpened(event);
this.model.DropDownOpened.fire([params.sender, params.e]);
this.dropDownOpened.emit(params);
this.dropDownChanged = true;
this.model.IsDropDownOpen = true;
this.calcVisualState();
this.syncToUISelectedItem();
setTimeout(() => {
const minWidth =
this.element?.nativeElement?.getBoundingClientRect?.()?.width;
const overlay = document.querySelector(
'.igx-overlay>.igx-overlay__wrapper>.igx-overlay__content'
);
if (overlay != null) {
(overlay as HTMLElement).style.setProperty('width', 'auto');
if (!Number.isNaN(minWidth) && minWidth > 0) {
(overlay as HTMLElement).style.setProperty(
'min-width',
`${minWidth}px`
);
}
Utils.adjustDropDownToWindow(
overlay,
(this.dropDown as any).toggleDirective.overlayId,
this.overlayService
);
}
}, 16);
}
/**
* Makes sure the drop down will show the selected index if one is specified by the model
*
* @private
* @memberof ComboBoxComponent
*/
private syncToUISelectedItem(): void {
if (
this.dropDown &&
!this.dropDown.selectedItem &&
this.model?.SelectedIndex >= 0
) {
this.onSyncToUISelectedItem = true;
this.dropDown?.setSelectedItem(this.model?.SelectedIndex);
this.onSyncToUISelectedItem = false;
}
}
/**
* Event before the dropdown is closed
*
* @param {*} event
* @memberof ComboBoxComponent
*/
handleClosing(event: any): void {
const params = { sender: this.model, e: event };
this.model.OnDropDownClosed(event);
this.model.DropDownClosed.fire([params.sender, params.e]);
this.dropDownClosed.emit(params);
this.dropDownChanged = true;
this.model.IsDropDownOpen = false;
this.calcVisualState();
}
/**
* Model Change handler method for the combobox component
* It should handle the properties changed by code behind
*
* @param {string} name
* @memberof ComboBoxComponent
*/
modelChangeHandler(name: string): void {
if (name === 'IsDropDownOpen' && this.dropDown) {
if (this.dropDownChanged) {
this.dropDownChanged = false;
} else {
if (this.model.IsDropDownOpen) {
this.dropDown.open(this.overlaySettingsAuto);
} else {
this.dropDown.close();
}
}
}
if (
(name === 'SelectedValue' || name === 'ItemsSource') &&
this.selectedValuePath
) {
this.updateSelectedItem();
}
if (
name === 'SelectedItem' &&
!this.selectedValuePath &&
this.model.SelectedIndex !== null &&
this.model.SelectedIndex >= 0
) {
this.updateSelectedItemByIndex();
}
if (name === 'IsEnabled') {
this.calcVisualState();
}
super.modelChangeHandler(name);
}
/**
* Event that occurs on a key up while the editor is in edit mode and the editor has focus
*
* @memberof ComboBoxComponent
*/
onInputKeyUpHandler(event: any): void {
/* istanbul ignore else */
if (event.ctrlKey && event.code === 'ArrowDown') {
this.model.IsDropDownOpen = true;
}
}
/**
* Assign all the horizontal bindings for the control
*
* @private
* @memberof ComboBoxComponent
*/
protected hostHorizontalAlignmentCall(): void {
super.hostHorizontalAlignmentCall();
this.hostHozSelfAlign = true;
}
/**
* Updates selected item value when selectedValuePath is not defined and only a new index is a reference.
*
* @private
* @memberof ComboBoxComponent
*/
private updateSelectedItemByIndex() {
this.selectedItem =
this.items?.innerCollection?.internalArray[this.model.SelectedIndex];
}
/**
* Update the selected item when the
* Selected Value is changed on code behind
* or the itemSource is updated
*
* @private
* @memberof ComboBoxComponent
*/
private updateSelectedItem() {
this.selectedItem = this.items?.innerCollection?.internalArray.find(
(itm: any) => itm[this.selectedValuePath] === this.selectedValue
);
}
/**
* Creates the required structure to display the combobox item
* inside a wmContainer component.
* This is required because the Angular 12 version introduces a breaking changes
* while using the ngTemplateOutlet directive
*
* @param item the comboBox item to be render
* @returns a structure expected by the wmcontainer component
*/
getDynamicComponent(item: any): any {
return {
dynamics: [item.item],
injector: item.customInjector,
container: 'wrappanel',
};
}
/**
* Applies the width CSS value
*
* @readonly
* @type {*}
* @memberof ComboBoxComponent
*/
widthCalc(): any {
const widthValue = super.widthCalc();
return widthValue === 'auto' && this.minWidth
? `${this.minWidth}px`
: widthValue;
}
}
<div
*ngIf="visibility && isInitialized"
[ngClass]="{ disabled: !isEnabled }"
class="autoHeightWidth comboContainer"
[wmValidationSupport]="[
validationError,
validationErrorMessage,
'.inputGeneralContainer',
'7px'
]"
>
<div
class="inputGeneralContainer"
[class]="inputContainerClasses"
[tabindex]="tabIndex"
(keyup)="onInputKeyUpHandler($event)"
[style.border-color]="borderBrush"
[igxDropDownItemNavigation]="dropDown"
>
<span
#inputGroup
class="inputClass"
[igxToggleAction]="dropDown"
[overlaySettings]="overlaySettingsAuto"
>
<span class="valueTemplate" [igxDropDownItemNavigation]="dropDown">
<div
*ngIf="
dropDown &&
isValidSelectedItem() &&
!isItemUIElement() &&
itemTemplate
"
>
<ng-container
[ngTemplateOutlet]="itemTemplate"
[ngTemplateOutletContext]="{ context: returnSelectedItem() }"
>
</ng-container>
</div>
<div
*ngIf="
dropDown &&
isValidSelectedItem() &&
!isItemUIElement() &&
!itemTemplate
"
>
{{ returnSelectedItem() }}
</div>
<div *ngIf="isDynamicTemplate(dropDown)">
<ng-container
*ngComponentOutlet="
dropDown?.selectedItem?.value?.component;
injector: dropDown?.selectedItem?.value?.customInjector
"
>
</ng-container>
</div>
</span>
<span class="iconValueTemplate">
<igx-icon
>arrow_drop{{ dropDown.collapsed ? '_down' : '_up' }}</igx-icon
>
</span>
</span>
</div>
<igx-drop-down
class="drop-down"
#dropDown
(selectionChanging)="onSelection($event)"
(opening)="handleOpening($event)"
(closing)="handleClosing($event)"
>
<div class="drop-down__scroll-container">
<igx-drop-down-item
*ngFor="let item of itemsToRender; let i = index; trackBy: trackByFn"
[value]="item"
class="drop-down-item"
>
<div
*ngIf="
isInitialized &&
this.comboBoxItemArray.length === 0 &&
displayMemberPath
"
class="itemDisplayMemberPath"
>
{{ item[displayMemberPath] }}
</div>
<div *ngIf="isInitialized && itemTemplate">
<ng-container
[ngTemplateOutlet]="itemTemplate"
[ngTemplateOutletContext]="{ context: item }"
>
</ng-container>
</div>
<div *ngIf="item.customInjector && item.component">
<wm-container [controls]="getDynamicComponent(item)"></wm-container>
</div>
<div
*ngIf="
isInitialized &&
!itemTemplate &&
this.comboBoxItemArray.length === 0 &&
!displayMemberPath
"
>
{{ returnItemLiteral(item) }}
</div>
</igx-drop-down-item>
</div>
</igx-drop-down>
</div>
./combo-box.component.scss
@import '../../scss/bindingvalidation';
@import '../../scss/variables';
:host {
display: block;
}
.comboContainer {
position: relative;
border: inherit;
}
.iconValueTemplate {
border-radius: 0 2px 2px 0;
padding: 0px 1px;
width: calc(1.4285714286em + 8px);
border-width: 0;
box-sizing: border-box;
border-style: solid;
display: -ms-flexbox;
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
text-align: center;
}
.inputClass {
display: flex;
flex-flow: row nowrap;
outline: 0;
background: none;
box-sizing: border-box;
font-family: inherit;
line-height: 1.4285714286;
text-align: left;
white-space: nowrap;
vertical-align: middle;
position: relative;
width: 100%;
padding: 1px;
}
.valueTemplate {
margin: 0;
padding: 0px;
width: 100%;
min-width: 0;
border: 0;
outline: 0;
box-sizing: border-box;
box-shadow: none;
color: inherit;
background: none;
font: inherit;
display: flex;
flex-flow: row nowrap;
align-items: center;
flex: 0 1 auto;
overflow: hidden;
text-overflow: ellipsis;
-webkit-appearance: none;
color: black;
}
.inputGeneralContainer {
height: 100%;
border: $default-control-border;
color: #656565;
border-radius: 3px;
padding: 0;
width: 100%;
display: flex;
flex-flow: row nowrap;
box-sizing: border-box;
position: relative;
transition: all 0.1s ease;
outline: 0;
min-height: inherit;
&:focus {
border: $default-control-item-border-selected;
background: $default-control-background-hover;
}
}
.drop-down__scroll-container {
max-height: $combo-box-dropdown-max-height;
min-height: $combo-box-dropdown-min-height;
}
.drop-down {
width: 100%;
}
.drop-down-item {
color: black;
}
.igx-drop-down__item--selected {
background-color: $default-control-item-background-color-selected;
border: $default-control-item-border-selected;
border-radius: 2px;
}
.igx-drop-down__item--focused {
background-color: $default-control-item-background-color-focus;
}
igx-drop-down-item:hover {
background-color: $default-control-item-background-color-hover;
}
.control-normal {
background: $default-control-background;
}
.control-mouseover {
background: $default-control-background-hover;
}
.control-pressed {
background: $combo-box-background-pressed;
}