MCPcopy
hub / github.com/github/awesome-copilot / createChoices

Function createChoices

website/src/scripts/choices.ts:28–40  ·  view source on GitHub ↗
(selector: string | HTMLSelectElement, options: Partial<Choices['config']> = {})

Source from the content-addressed store, hash-verified

26 * Create a new Choices instance with sensible defaults
27 */
28export function createChoices(selector: string | HTMLSelectElement, options: Partial<Choices['config']> = {}): Choices {
29 return new Choices(selector, {
30 removeItemButton: true,
31 searchPlaceholderValue: 'Search...',
32 noResultsText: 'No results found',
33 noChoicesText: 'No options available',
34 itemSelectText: '',
35 shouldSort: false,
36 searchResultLimit: 100,
37 resetScrollPosition: false,
38 ...options,
39 });
40}
41
42export { Choices };

Callers 2

initExtensionsPageFunction · 0.90
setupFiltersFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected