@mikezimm/fps-library-v2
Version:
Library of reusable typescript/javascript functions, interfaces and constants
48 lines (46 loc) • 2.32 kB
JavaScript
/**
* CodeAnalizerComment: Updated 5 imports on 2024-09-22 14:49:52
* Update:: import { IPropertyPaneGroup } to '@mikezimm/fps-core-v7/lib/types/@msft/1.15.2/sp-property-pane;'
* 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 { IFPSAgeSliderWPProps } to '@mikezimm/fps-core-v7/lib/components/atoms/FPSAgeSlider/FPSAgeTypes;'
* Update:: import { FPSAgeSliderOptions } to '@mikezimm/fps-core-v7/lib/components/atoms/FPSAgeSlider/FPSAgeTypes;'
*/
/**
* CodeAnalizerComment: Updated 1 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;'
*/
import { PropertyPaneTextField, PropertyPaneDropdown, PropertyPaneToggle, } from '@microsoft/sp-property-pane';
import { FPSAgeSliderOptions } from '@mikezimm/fps-core-v7/lib/components/atoms/FPSAgeSlider/FPSAgeTypes';
export function buildAgeSliderGroup(wpProps) {
var groupFields = [];
groupFields.push(PropertyPaneToggle('FPSAgeIsVisible', {
label: 'Enanble Age Slider filter',
offText: 'Off',
onText: 'On',
}));
groupFields.push(PropertyPaneDropdown('FPSAgeDefault', {
label: 'Default Age Filter',
options: FPSAgeSliderOptions,
selectedKey: wpProps.FPSAgeDefault,
}));
groupFields.push(PropertyPaneTextField('FPSAgeColumnName', {
label: 'Date Column Internal Name',
// description: 'Please click filters (above) to see items :)',
disabled: wpProps.FPSAgeIsVisible === false ? true : false,
// multiline: true,
}));
groupFields.push(PropertyPaneTextField('FPSAgeColumnTitle', {
label: 'Date Column Title - If different',
// description: 'Please click filters (above) to see items :)',
disabled: wpProps.FPSAgeIsVisible === false ? true : false,
// multiline: true,
}));
const ExportThisGroup = {
groupName: `Age Slider Filter`,
isCollapsed: true,
groupFields: groupFields
};
return ExportThisGroup;
}
//# sourceMappingURL=FPSAgePropPaneGroup.js.map