@scheels-softdev/kendoreact-generics 2.2.3 → 2.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,17 +2,17 @@ import { CSSProperties } from "react";
2
2
  /**
3
3
  * JSX Component for displaying selected images in a fullscreen Modal
4
4
  * @param {object} props
5
- @param {T[]} props.data array of data objects
6
- @param {number?} props.selectedId id of the selected data object
7
- @param {T?} props.selectedData if there is no identity key in the object and you need to compare the entire object, use this instead of selectedId
8
- @param {Function} props.onChange function to call when the selected value changes
9
- @param {(keyof T)[]?} props.textFields array of field names to use for text values
10
- @param {string?} props.separator optional separator to use for concatenating text values
11
- @param {object?} props.disabled boolean to disable the dropdown
12
- @param {keyof T?} props.idField if the id field to look at isn't 'id', what is it?
13
- @param {string?} props.title the label of the dropdown
14
- @param {boolean?} props.showClearButton set to false if you want to hide clear button
15
- @param {CSSProperties?} props.style the CSS Properties you want to use. It is generally recommended to do styling in your App.css file but if necessary this prop is available to you
5
+ @param {T[]} [props.data] array of data objects
6
+ @param {number | undefined} [props.selectedId] id of the selected data object
7
+ @param {T | undefined} [props.selectedData] if there is no identity key in the object and you need to compare the entire object, use this instead of selectedId
8
+ @param {Function} [props.onChange] function to call when the selected value changes
9
+ @param {(keyof T)[] } [props.textFields] array of field names to use for text values
10
+ @param {string | undefined} [props.separator] optional separator to use for concatenating text values
11
+ @param {object | undefined} [props.disabled] boolean to disable the dropdown
12
+ @param {keyof T | undefined} [props.idField] if the id field to look at isn't 'id', what is it?
13
+ @param {string | undefined} [props.title] the label of the dropdown
14
+ @param {boolean | undefined} [props.showClearButton] set to false if you want to hide clear button
15
+ @param {CSSProperties | undefined} [props.style] the CSS Properties you want to use. It is generally recommended to do styling in your App.css file but if necessary this prop is available to you
16
16
  * @returns
17
17
  */
18
18
  export declare function GenericDropdown<T>({ data, selectedId, selectedData, onChange, textFields, separator, disabled, idField, title, hideClearButton, style, }: {
@@ -9,17 +9,17 @@ import { getTextValue } from "./Utility";
9
9
  /**
10
10
  * JSX Component for displaying selected images in a fullscreen Modal
11
11
  * @param {object} props
12
- @param {T[]} props.data array of data objects
13
- @param {number?} props.selectedId id of the selected data object
14
- @param {T?} props.selectedData if there is no identity key in the object and you need to compare the entire object, use this instead of selectedId
15
- @param {Function} props.onChange function to call when the selected value changes
16
- @param {(keyof T)[]?} props.textFields array of field names to use for text values
17
- @param {string?} props.separator optional separator to use for concatenating text values
18
- @param {object?} props.disabled boolean to disable the dropdown
19
- @param {keyof T?} props.idField if the id field to look at isn't 'id', what is it?
20
- @param {string?} props.title the label of the dropdown
21
- @param {boolean?} props.showClearButton set to false if you want to hide clear button
22
- @param {CSSProperties?} props.style the CSS Properties you want to use. It is generally recommended to do styling in your App.css file but if necessary this prop is available to you
12
+ @param {T[]} [props.data] array of data objects
13
+ @param {number | undefined} [props.selectedId] id of the selected data object
14
+ @param {T | undefined} [props.selectedData] if there is no identity key in the object and you need to compare the entire object, use this instead of selectedId
15
+ @param {Function} [props.onChange] function to call when the selected value changes
16
+ @param {(keyof T)[] } [props.textFields] array of field names to use for text values
17
+ @param {string | undefined} [props.separator] optional separator to use for concatenating text values
18
+ @param {object | undefined} [props.disabled] boolean to disable the dropdown
19
+ @param {keyof T | undefined} [props.idField] if the id field to look at isn't 'id', what is it?
20
+ @param {string | undefined} [props.title] the label of the dropdown
21
+ @param {boolean | undefined} [props.showClearButton] set to false if you want to hide clear button
22
+ @param {CSSProperties | undefined} [props.style] the CSS Properties you want to use. It is generally recommended to do styling in your App.css file but if necessary this prop is available to you
23
23
  * @returns
24
24
  */
25
25
  export function GenericDropdown({ data, selectedId, selectedData, onChange, textFields, separator, disabled, idField, title, hideClearButton, style, }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scheels-softdev/kendoreact-generics",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",