import {UIEventSource} from "./UIEventSource"; import {UIElement} from "./UIElement"; export class SaveButton extends UIElement { private _value: UIEventSource; constructor(value: UIEventSource) { super(value); if(value === undefined){ throw "No event source for savebutton, something is wrong" } this._value = value; } InnerRender(): string { if (this._value.data === undefined || this._value.data === null || this._value.data === "" ) { return "Opslaan" } return "Opslaan"; } }