-
Notifications
You must be signed in to change notification settings - Fork 0
/
urils.interface.ts
59 lines (57 loc) · 1.44 KB
/
urils.interface.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
import { IItems } from 'interfaces/items.interface';
/**
* @description Receive Item Settings.
*/
export interface IDataItem {
/**
* Optional parameter. Item group category.
* @type {string}
*/
category?: string;
/**
* Optional parameter. Array with elements.
* @type {IItems[] | string[] | any}
*/
categoryItems?: IItems[] | string[];
/**
* The value of the passed element.
* @type {string | IItems | number}
*/
ItemValue: string | IItems | number;
}
/**
* @description Settings for select text, etc.
*/
export interface ISelectedItems {
/**
* Placeholder optional parameter to which the text of the select placeholder is passed.
* @type {string}
*/
placeholder?: string;
/**
* An optional parameter, which is passed the element that will be selected initially in the select.
* @type {string}
*/
selected?: string;
/**
* Array of selected items from the list.
* @type {string[]}
*/
selectedItems?: string[];
/**
* Array of indexes of selected elements.
* @type {number[]}
*/
indexes?: number[];
/**
* An optional parameter that is responsible for the behavior of the select,
* for him, *** works only in a place with a multiselect connection.
* @type {boolean}
*/
multiselectTag?: boolean;
/**
* An optional parameter that is responsible for enabling a light/dark theme by default, the dark theme is set.
* @type {boolean}
*/
theme?: string;
}