Skip to content

Commit

Permalink
Update comment on getLabelFromValueOptions function
Browse files Browse the repository at this point in the history
  • Loading branch information
good-jinu committed Dec 19, 2024
1 parent 8a32e49 commit 43e5ac7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export function getValueFromValueOptions(
* Find the option matching the given value in valueOptions and get its label
* @param {string} value is used to extract label from valueOptions.
* @param {any[] | undeinfed} valueOptions is used to extract label.
* @param {NonNullable<GridSingleSelectColDef['getOptionLabel']>} getOptionLabel is used to get label from valueOption (default: (valueOption) => (typeof valueOption === 'object' ? valueOption.label : valueOption))
* @param {NonNullable<GridSingleSelectColDef['getOptionValue']>} getOptionValue is used to get value from valueOption (default: (valueOption) => (typeof valueOption === 'object' ? valueOption.value : valueOption))
* @param {NonNullable<GridSingleSelectColDef['getOptionLabel']>} getOptionLabel is used to get label from valueOption
* @param {NonNullable<GridSingleSelectColDef['getOptionValue']>} getOptionValue is used to get value from valueOption
* @returns {string | undefined} The label matching with the value.
*/
export function getLabelFromValueOptions(
Expand Down

0 comments on commit 43e5ac7

Please sign in to comment.