MCPcopy Create free account
hub / github.com/microsoft/SandDance / menu

Function menu

packages/sanddance-explorer/src/palettes/index.tsx:52–59  ·  view source on GitHub ↗
(name: string, opts: ISchemeOption[])

Source from the content-addressed store, hash-verified

50 const options: FluentUITypes.IDropdownOption[] = [];
51
52 function menu(name: string, opts: ISchemeOption[]) {
53 options.push({
54 key: name,
55 text: name,
56 itemType: base.fluentUI.DropdownMenuItemType.Header,
57 });
58 options.push.apply(options, opts);
59 }
60
61 isQualitative && menu(strings.schemeCategorical, categorical(selected));
62 isQuantitative && menu(strings.schemeSequentialSingleHue, sequentialSingleHue(selected));

Callers 1

PaletteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected