How to use the @nakedobjects/restful-objects.withUndefined function in @nakedobjects/restful-objects

To help you get started, we’ve selected a few @nakedobjects/restful-objects examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NakedObjectsGroup / NakedObjectsFramework / Spa2 / nakedobjectsspa / view-models / src / drag-and-drop.service.ts View on Github external
setCopyViewModel(dvm: IDraggableViewModel | null) {
        this.copiedViewModel = dvm;
        this.copiedViewModelSource.next(Ro.withUndefined(dvm));
    }
github NakedObjectsGroup / NakedObjectsFramework / Spa2 / nakedobjectsspa / gemini / src / date-picker / date-picker.component.ts View on Github external
setDateIfChanged(newDate: momentNs.Moment) {
        const currentDate = this.dateModel;
        if (!newDate.isSame(Ro.withUndefined(currentDate))) {
            this.setValue(newDate);
            setTimeout(() => this.model = this.formatDate(this.dateModel));
        }
    }
github NakedObjectsGroup / NakedObjectsFramework / Spa2 / nakedobjectsspa / gemini / src / time-picker / time-picker.component.ts View on Github external
setTimeIfChanged(newTime: momentNs.Moment) {
        if (!newTime.isSame(Ro.withUndefined(this.time))) {
            this.time = newTime;
            setTimeout(() => this.model = newTime.format('HH:mm'));
        }
    }