@mikezimm/npmfunctions
Version:
Functions used in my SPFx webparts
35 lines • 1.13 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPivSize = exports.getPivFormat = exports.pivOptionsChoices = exports.pivSizeChoices = exports.pivFormatChoices = void 0;
var Pivot_1 = require("office-ui-fabric-react/lib/Pivot");
exports.pivFormatChoices = [
{ index: 0, key: 'links', text: 'Links' },
{ index: 1, key: 'tabs', text: 'Tabs' },
];
exports.pivSizeChoices = [
{ index: 0, key: 'normal', text: "Normal" },
{ index: 1, key: 'large', text: "Large" },
];
exports.pivOptionsChoices = [
{ index: 0, key: 'count', text: "Count" },
{ index: 1, key: 'icon', text: "icon" },
];
function getPivFormat(findMe) {
if (findMe === 'tabs') {
return Pivot_1.PivotLinkFormat.tabs;
}
else {
return Pivot_1.PivotLinkFormat.links;
}
}
exports.getPivFormat = getPivFormat;
function getPivSize(findMe) {
if (findMe === 'large') {
return Pivot_1.PivotLinkSize.large;
}
else {
return Pivot_1.PivotLinkSize.normal;
}
}
exports.getPivSize = getPivSize;
//# sourceMappingURL=Options.js.map
;