UNPKG

@mikezimm/fps-core-v7

Version:

Library of reusable core interfaces, types and constants migrated from fps-library-v2

17 lines (16 loc) 949 B
/** * CodeAnalizerComment: Updated 2 imports on 2024-09-21 23:07:24 * Update:: import { IFPSListItemPickerWPProps } to '@mikezimm/fps-core-v7/lib/banner/components/ItemPicker/interfaces/IFPSListItemPickerWPProps;' * Update:: import { IThisFPSWebPartClass } to '@mikezimm/fps-core-v7/lib/banner/FPSWebPartClass/IThisFPSWebPartClass1152;' */ // eslint-disable-next-line @typescript-eslint/no-explicit-any export async function onListItemPickerChanged(thisWPClass, propertyPath, oldValue, newValue, idx) { const wpProps = thisWPClass.properties; if ((propertyPath === `listItemPickerValue${idx}`) && (newValue)) { thisWPClass._fetchInstance = Math.floor(Math.random() * 79797979).toString(); console.log(`changed Library Item: ${idx}`, newValue); wpProps[`listItemPickerValue${idx}`] = newValue; thisWPClass.refreshPaneReRender(); } } //# sourceMappingURL=onListItemPickerChanged.js.map