Skip to content

setUserData

@wuespace/telestion / user-data / setUserData

setUserData(newUserData): void

Sets the user data in the local storage based on the given input.

Parameters

newUserData: Object

The new user data to be set.

newUserData.dashboards: Record<string, { title: string; layout: string[][]; }>= undefined

The user’s dashboards.

newUserData.version: string= undefined

The version of the client that created this user data.

newUserData.widgetInstances: Record<string, { type: string; configuration: Record<string, Json>; }>= undefined

The user’s widget instances.

Returns

void