You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 8, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/app/base/components/dropdown-it/dropdown-it-helper.ts
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,24 +2,26 @@ import { FormArray } from "@angular/forms";
2
2
3
3
/**
4
4
* Optionset for kern dropdown
5
-
* @buttonCaption {string} - used as caption for the button
6
5
* @optionArray {string[] | FormArray[] | any[]} - Can be any array. string array is just used, FormArray or any object array tries to use "name" property then "text" last first string property
6
+
* @buttonCaption {string, optional} - used as caption for the button, if not given the first / current value is used
7
7
* @valuePropertyPath {string, optional} - if undefined option text is returned, else (e.g. name.tmp.xyz) the path is split and used to access the object property
8
8
* @stopClickPropagation {boolean, optional} - stops the event propagation of the click event
9
9
* @buttonTooltip {string, optional} - adds a tooltip if defined
10
10
* @isDisabled {boolean, optional} - disables the dropdown
11
11
* @isOptionDisabled {boolean[], optional} - disables the dropdown option (needs to be the exact same length as the optionArray)
12
-
* @hasCheckboxes {boolean, optional} - used for checkbox like dropdowns (e.g. data browser)
12
+
* @optionIcons {string[], optional} - displays a predfined icon if set for the index (needs to be the exact same length as the optionArray)
13
+
* @hasCheckboxes {boolean, optional} - helper for checkbox like dropdowns (e.g. data browser)
13
14
*/
14
15
exporttypeDropdownOptions={
15
-
buttonCaption: string;
16
16
optionArray: string[]|FormArray[]|any[];
17
+
buttonCaption?: string;
17
18
valuePropertyPath?: string;
18
19
stopClickPropagation?: boolean;
19
20
buttonTooltip?: string;
20
21
isDisabled?: boolean;
21
-
isOptionDisabled?: boolean[];//to be implmemented
22
+
isOptionDisabled?: boolean[];
23
+
optionIcons?: string[];
22
24
hasCheckboxes?: boolean;//to be implmemented
23
25
};
24
-
//TODO: add more optoins & ensure size of dropdown items is at least size of button
0 commit comments