@finsweet/ts-utils
Version:
Typescript utils for custom Webflow projects.
7 lines (6 loc) • 373 B
TypeScript
/**
* Populates the options for a select element.
* @param selectElement The select element to populate.
* @param options The options to populate. Accepts either a single Array of values, or an Array with [text, value] tuples.
*/
export declare const populateSelectOptions: (selectElement: HTMLSelectElement, options: string[] | (readonly [string, string])[]) => void;