Tutorial: frame.wrap

frame.wrap

Returns a frame object referencing the frame uuid and name passed in

Example


// You can wrap a frame that does not exist
const myFrame = fin.desktop.Frame.wrap('does-not-exist-uuid', 'fake-name');
myFrame.getInfo(info => {
    console.log(info) // see return value below
});

// example info shape
{
    "uuid": "does-not-exist-uuid",
    "name": "fake-name",
    "parent": {
        "uuid": null,
        "name": null
    },
    "entityType": "unknown"
}