@funidata/ngx-fudis
Version:
Funidata Design System.
18 lines (17 loc) • 585 B
TypeScript
import { FudisSelectOption } from '../../../../../types/forms';
/**
* Function to loop array of options and join their labels to a single string
*
* @param values Array of selected Options
* @returns
*/
export declare const joinInputValues: (values: FudisSelectOption<object>[]) => string;
/**
* Add or remove a value from current list and returned updated one
*
* @param currentList
* @param valueToUpdate
* @param visible
* @returns Updated List
*/
export declare const setVisibleOptionsList: (currentList: string[], valueToUpdate: string, visible: boolean) => string[];