PromucFlow_constructor/app/client/src/actions/controlActions.tsx
2019-11-06 06:35:15 +00:00

26 lines
515 B
TypeScript

import {
ReduxActionTypes,
ReduxAction,
} from "../constants/ReduxActionConstants";
export const updateWidgetProperty = (
widgetId: string,
propertyName: string,
propertyValue: any,
): ReduxAction<UpdateWidgetPropertyPayload> => {
return {
type: ReduxActionTypes.UPDATE_WIDGET_PROPERTY_REQUEST,
payload: {
widgetId,
propertyName,
propertyValue,
},
};
};
export interface UpdateWidgetPropertyPayload {
widgetId: string;
propertyName: string;
propertyValue: any;
}