@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
37 lines (36 loc) • 1.28 kB
JavaScript
/**
* CodeAnalizerComment: Updated 3 imports on 2024-09-21 23:07:24
* Update:: import { IPropertyPaneDropdownOption } to '@mikezimm/fps-core-v7/lib/types/@msft/1.15.2/sp-property-pane;'
* Update:: import { PivotLinkSize } to '@mikezimm/fps-core-v7/lib/types/@fluentUI/@7.199.1/Pivot;'
* Update:: import { PivotLinkFormat } to '@mikezimm/fps-core-v7/lib/types/@fluentUI/@7.199.1/Pivot;'
*/
import { PivotLinkSize, PivotLinkFormat } from '../../types/@fluentUI/@7.199.1/Pivot';
export const pivFormatChoices = [
{ index: 0, key: 'links', text: 'Links' },
{ index: 1, key: 'tabs', text: 'Tabs' },
];
export const pivSizeChoices = [
{ index: 0, key: 'normal', text: "Normal" },
{ index: 1, key: 'large', text: "Large" },
];
export const pivOptionsChoices = [
{ index: 0, key: 'count', text: "Count" },
{ index: 1, key: 'icon', text: "icon" },
];
export function getPivFormat(findMe) {
if (findMe === 'tabs') {
return PivotLinkFormat.tabs;
}
else {
return PivotLinkFormat.links;
}
}
export function getPivSize(findMe) {
if (findMe === 'large') {
return PivotLinkSize.large;
}
else {
return PivotLinkSize.normal;
}
}
//# sourceMappingURL=PivotOptions.js.map