@mikezimm/npmfunctions
Version:
Functions used in my SPFx webparts
35 lines (34 loc) • 1.87 kB
TypeScript
/***
* d888b d88888b d888888b .o88b. db db .d88b. d888888b .o88b. d88888b db dD d88888b db db
* 88' Y8b 88' `~~88~~' d8P Y8 88 88 .8P Y8. `88' d8P Y8 88' 88 ,8P' 88' `8b d8'
* 88 88ooooo 88 8P 88ooo88 88 88 88 8P 88ooooo 88,8P 88ooooo `8bd8'
* 88 ooo 88~~~~~ 88 8b 88~~~88 88 88 88 8b 88~~~~~ 88`8b 88~~~~~ 88
* 88. ~8~ 88. 88 Y8b d8 88 88 `8b d8' .88. Y8b d8 88. 88 `88. 88. 88
* Y888P Y88888P YP `Y88P' YP YP `Y88P' Y888888P `Y88P' Y88888P YP YD Y88888P YP
*
*
*/
/**
* This is used specifically for making a key value from text that can be in a css ID or classname.
* Used in Dropdown Fields
*
* @param val
*/
export declare function getChoiceKey(val: string): string;
/***
* d888b d88888b d888888b .o88b. db db .d88b. d888888b .o88b. d88888b d888888b d88888b db db d888888b
* 88' Y8b 88' `~~88~~' d8P Y8 88 88 .8P Y8. `88' d8P Y8 88' `~~88~~' 88' `8b d8' `~~88~~'
* 88 88ooooo 88 8P 88ooo88 88 88 88 8P 88ooooo 88 88ooooo `8bd8' 88
* 88 ooo 88~~~~~ 88 8b 88~~~88 88 88 88 8b 88~~~~~ 88 88~~~~~ .dPYb. 88
* 88. ~8~ 88. 88 Y8b d8 88 88 `8b d8' .88. Y8b d8 88. 88 88. .8P Y8. 88
* Y888P Y88888P YP `Y88P' YP YP `Y88P' Y888888P `Y88P' Y88888P YP Y88888P YP YP YP
*
*
*/
/**
* This is the opposite of getChoiceKey..
* Just converts the key back to the text
*
* @param val
*/
export declare function getChoiceText(val: string): string | null;