26 lines
515 B
TypeScript
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;
|
|
}
|