How to use the @nakedobjects/restful-objects.typePlusTitle 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 / cicero / src / cicero-commands / clipboard.ts View on Github external
return this.getObject().then(obj => {
            this.ciceroContext.ciceroClipboard = obj;
            const label = Models.typePlusTitle(obj);
            return this.returnResult('', Usermessages.clipboardContents(label));
        });
    }
github NakedObjectsGroup / NakedObjectsFramework / Spa2 / nakedobjectsspa / cicero / src / cicero-commands / clipboard.ts View on Github external
private show(): Promise {
        if (this.ciceroContext.ciceroClipboard) {
            const label = Models.typePlusTitle(this.ciceroContext.ciceroClipboard);
            return this.returnResult('', Usermessages.clipboardContents(label));
        } else {

            return this.returnResult('', Usermessages.clipboardEmpty);
        }
    }