-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsmart.multicomboinput.d.ts
129 lines (129 loc) · 8.34 KB
/
smart.multicomboinput.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import { MultiComboInput } from './../index';
import { Animation, DropDownButtonPosition, MultiComboInputQueryMode, MultiComboInputInputTagsMode } from './../index';
import { AfterViewInit, ElementRef, OnInit, OnChanges, OnDestroy, SimpleChanges, EventEmitter } from '@angular/core';
import { BaseElement } from './smart.element';
export { Animation, DropDownButtonPosition, MultiComboInputQueryMode, MultiComboInputInputTagsMode, ElementRenderMode } from './../index';
export { Smart } from './smart.element';
export { MultiComboInput } from './../index';
import { ControlValueAccessor } from '@angular/forms';
export declare class MultiComboInputComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges, ControlValueAccessor {
constructor(ref: ElementRef<MultiComboInput>);
private eventHandlers;
nativeElement: MultiComboInput;
/** @description Creates the component on demand.
* @param properties An optional object of properties, which will be added to the template binded ones.
*/
createComponent(properties?: {}): any;
/**
* @description
* The registered callback function called when a change event occurs on the form elements.
*/
_onChange: (value: any) => void;
/**
* @description
* The registered callback function called when a blur event occurs on the form elements.
*/
_onTouched: () => any;
/** @description Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */
animation: Animation | string;
/** @description Determines the delay before the drop down opens to show the matches from the auto complete operation. The delay is measured in miliseconds. */
autoCompleteDelay: number;
/** @description Enables or disables the close buttons when multiple items are selected. */
hideInputTagsCloseButton: boolean;
/** @description Enables or disables whether when an item has a 'color' property set, the tag of that item will set automatically the background to that color. */
colorItems: boolean;
/** @description Determines the data source that will be loaded to the MutliInput. The dataSource can be an array of strings/numbers or objects where the attributes represent the properties of a List Item. For example label, value. It can also be a callback that returns an Array of items as previously described. */
dataSource: any;
/** @description Enables or disables the element. */
disabled: boolean;
/** @description Determines the position of the drop down button. */
dropDownButtonPosition: DropDownButtonPosition | string;
/** @description Sets the height of the drop down. By default it's set to an empty string. In this case the height of the drop down is controlled by a CSS variable. */
dropDownHeight: string | number;
/** @description Sets the width of the drop down. By default it's set to an empty string. In this case the width of the drop down is controlled by a CSS variable. */
dropDownWidth: string | number;
/** @description Sets the purpose of the input and what, if any, permission the user agent has to provide automated assistance in filling out the element's input when in a form, as well as guidance to the browser as to the type of information expected in the element. This value corresponds to the standard HTML autocomplete attribute and can be set to values such as 'on', 'name', 'organization', 'street-address', etc. */
inputPurpose: string;
/** @description Determines the maximum number of matched items that should be visible inside the drop down as a result of a new autoComplete query. By default the maximum number of 8 items can be displayed inside the drop down. */
items: number;
/** @description Sets or gets the language. Used in conjunction with the property messages. */
locale: string;
/** @description Callback used to customize the format of the messages that are returned from the Localization Module. */
localizeFormatFunction: any;
/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */
messages: any;
/** @description Determines the minimum number of characters inside the input in order to trigger the autocomplete functionality that will open the drop down and show the matched items. */
minLength: number;
/** @description Sets or gets the name attribute for the element. Name is used when submiting data inside an HTML form. */
name: string;
/** @description Determines whether the drop down is opened or not. */
opened: boolean;
/** @description Determines the placeholder of the input. */
placeholder: string;
/** @description Enables or disables whether drop-down items are rendered as pills. */
pills: boolean;
/** @description Sets or gets the query that is used to filter the items. Query is used by the autoComplete operation. Empty string means that all items from the data source will be displayed and no filter query is applied. */
query: string | number;
/** @description Determines the auto complete query mode. This property also determines the matching algorithm for the autocomplete operation. */
queryMode: MultiComboInputQueryMode | string;
/** @description Determines whether ot not the user can enter text inside the input. if dropDownButtonPosition is set to 'left' or 'right' then readonly determines whether the element acts as a ComboBox or a DropDownList if a dataSource is provided. */
readonly: boolean;
/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */
rightToLeft: boolean;
/** @description Determines the delimiter between the tags in the input field. */
separator: string;
/** @description Determines whether only a single item can be selected. */
singleSelect: boolean;
/** @description Determines whether an additional item is displayed as the first item in the options list, which allows to select/unselect all items. */
selectAll: boolean;
/** @description Gets or sets an array of selected values. */
selectedValues: any;
/** @description Determines whether the items are sorted alphabetically or not */
sorted: boolean;
/** @description Determines the sorting algorithm - ascending(asc) or descending(desc) if sort is enabled. */
sortDirection: string;
/** @description Determines whether the input field will contain tags for each selected item from the popup or just one that shows the number of selected items. */
inputTagsMode: MultiComboInputInputTagsMode | string;
/** @description Determines the theme for the element. Themes define the look of the elements. */
theme: string;
/** @description Determines the input type. Input type determines what input can be entered. */
type: string;
/** @description If is set to true, the element cannot be focused. */
unfocusable: boolean;
/** @description Sets or gets the value of the element. */
value: string;
/** @description This event is triggered when the selection is changed.
* @param event. The custom event. Custom event was created with: event.detail( label, oldLabel, oldValue, value)
* label - The label of the new selected item.
* oldLabel - The label of the item that was previously selected before the event was triggered.
* oldValue - The value of the item that was previously selected before the event was triggered.
* value - The value of the new selected item.
*/
onChange: EventEmitter<CustomEvent>;
/** @description Closes the drop down.
*/
close(): void;
/** @description Ensures that the active ( selected ) item is always visible.
*/
ensureVisible(): void;
/** @description Opens the drop down.
*/
open(): void;
/** @description Selects the text inside the input or if it is readonly then the element is focused.
*/
select(): void;
readonly isRendered: boolean;
ngOnInit(): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
_initialChange: boolean;
ngValue: any;
writeValue(value: any): void;
registerOnChange(fn: any): void;
registerOnTouched(fn: any): void;
ngOnChanges(changes: SimpleChanges): void;
/** @description Add event listeners. */
private listen;
/** @description Remove event listeners. */
private unlisten;
}