tils-first-weather-widget
Version:
An example development EXB widget (Grant Caroll, spatial-innovation.co.nz)
30 lines (21 loc) • 627 B
text/typescript
import Accessor from "@arcgis/core/core/Accessor.js";
import { property } from "@arcgis/core/core/accessorSupport/decorators.js";
export interface IWeatherCondition {
text: string;
icon: string;
code: number;
}
export default class WeatherCondition extends Accessor implements IWeatherCondition {
()
text: string;
()
icon: string;
()
code: number;
constructor(weatherCondition: IWeatherCondition) {
super();
this.text= weatherCondition.text;
this.icon = weatherCondition.icon;
this.code = weatherCondition.code;
}
}