Skip to content

Experience

title.set

Sets the title of the 1fe shell to the provided string.

Type

function set(title: string): void;

Example

import { platformProps } from "@1fe/shell";
function MySimpleComponent(props: WidgetProps) {
useEffect(() => {
platformProps.utils.experience.title.set("Hello!");
}, []);
// ...
}

title.get

Returns the title of the 1fe shell.

Type

function get(): string;

Example

import { platformProps } from "@1fe/shell";
function MySimpleComponent(props: WidgetProps) {
useEffect(() => {
platformProps.utils.experience.title.set("Hello!");
const title = platformProps.utils.experience.title.get();
console.log(title); // prints 'Hello!'
}, []);
// ...
}