Improve location selection for weather

This commit is contained in:
Meier Lukas
2023-06-10 23:53:04 +02:00
parent a5f3d48a71
commit d00a317202
10 changed files with 363 additions and 112 deletions

View File

@@ -40,7 +40,8 @@ export type IWidgetOptionValue =
| INumberInputOptionValue
| IDraggableListInputValue
| IDraggableEditableListInputValue<any>
| IMultipleTextInputOptionValue;
| IMultipleTextInputOptionValue
| ILocationOptionValue;
// Interface for data type
interface DataType {
@@ -95,6 +96,11 @@ export type ISliderInputOptionValue = {
inputProps?: Partial<SliderProps>;
};
type ILocationOptionValue = {
type: 'location';
defaultValue: { latitude: number; longitude: number };
};
// will show a sortable list that can have sub settings
export type IDraggableListInputValue = {
type: 'draggable-list';