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
Copy file name to clipboardExpand all lines: ui/src/components/widgets/InfiniteScrollSelect.vue
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -39,11 +39,12 @@
39
39
- apiParams (Object, optional): Additional parameters passed to the API
40
40
- resourceType (String, required): The key in the API response containing the resource array (e.g., 'account')
41
41
- optionValueKey (String, optional): Property to use as the value for options (e.g., 'name'). Default is 'id'
42
+
- optionLabelFn (Function, optional): Function to generate the label for options. Receives the option object as argument. If provided, takes precedence over optionLabelKey. Preferred over optionLabelKey.
42
43
- optionLabelKey (String, optional): Property to use as the label for options (e.g., 'name'). Default is 'name'
43
44
- defaultOption (Object, optional): Preselected object to include initially
44
45
- showIcon (Boolean, optional): Whether to show icon for the options. Default is true
45
46
- defaultIcon (String, optional): Icon to be shown when there is no resource icon for the option. Default is 'cloud-outlined'
46
-
- autoSelectFirstOption (Boolean, optional): Whether to automatically select the first option when options are loaded. Default is false
47
+
- autoSelectFirstOption (Boolean, optional): Whether to automatically select the first option when options are loaded. Default is false. Works only when there is no preselected value or defaultOption
47
48
48
49
Events:
49
50
- @change-option-value (Function): Emits the selected option value(s) when value(s) changes. Do not use @change as it will give warnings and may not work
0 commit comments