@mikezimm/fps-library-v2
Version:
Library of reusable typescript/javascript functions, interfaces and constants
32 lines (30 loc) • 1.61 kB
JavaScript
/**
* CodeAnalizerComment: Updated 3 imports on 2024-09-22 14:49:52
* Update:: import { IPropertyPaneDropdownProps } to '@mikezimm/fps-core-v7/lib/types/@msft/1.15.2/sp-property-pane;'
* Update:: import { IPropertyPaneField } to '@mikezimm/fps-core-v7/lib/types/@msft/1.15.2/sp-property-pane;'
* Update:: import { IPropertyPaneDropdownOptionFPS } to '@mikezimm/fps-core-v7/lib/types/fps-common/AudienceInterfaces;'
*/
/**
* CodeAnalizerComment: Updated 2 imports on 2024-09-21 23:07:24
* Update:: import { IPropertyPaneDropdownProps } to '@mikezimm/fps-core-v7/lib/types/@msft/1.15.2/sp-property-pane;'
* Update:: import { IPropertyPaneDropdownOptionFPS } to '@mikezimm/fps-core-v7/lib/types/fps-class/prop-pane/AudienceInterfaces;'
*/
import { PropertyPaneDropdown, } from '@microsoft/sp-property-pane';
export const JustifyContentChoices = [
{ index: 0, key: 'flex-start', text: "flex-start" },
{ index: 1, key: 'center', text: "center" },
{ index: 2, key: 'flex-end', text: "flex-end" },
{ index: 3, key: 'space-evenly', text: "space-evenly" },
{ index: 4, key: 'space-around', text: "space-around" },
{ index: 5, key: 'space-between', text: "space-between" },
];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function JustifyContentWPField(justifyContent) {
const field = PropertyPaneDropdown('justifyContent', {
label: 'Alignment - Justify Content',
options: JustifyContentChoices,
selectedKey: justifyContent,
});
return field;
}
//# sourceMappingURL=JustifyContentWPField.js.map