UNPKG

@rws-framework/components

Version:
20 lines (15 loc) 569 B
import { RWSViewComponent, RWSView } from '@rws-framework/client'; import { attr, observable } from '@microsoft/fast-element'; @RWSView('reformer-date') class ReFormerDate extends RWSViewComponent { @attr name: string; @observable defaultValue: Date = null; @observable value: Date = null; @observable setForm: (field: string, value: any) => Promise<void>; connectedCallback(): void { super.connectedCallback(); this.value = this.defaultValue; } } ReFormerDate.defineComponent(); export { ReFormerDate };