@hmiproject/helio-sdk
    Preparing search index...

    Variable PageTraitConst

    PageTrait: RichTraitRef = ...

    Makes an element appear and behave as a HELIO Page.

    Elements with this trait will:

    • be made available as elements that can be added to an HMI, Page Groups and Tab Groups,
    • automatically receive editable props like Title and Icon,
    • render with the correct page wrapper,
    • be made available in menus and
    • be selectable in the HELIO IDE.

    1.0.0

    Example Usage

    const ns = createNamespace({ name: 'com.my-company' });
    const element = createElement(ns, {
    name: 'My Custom Page',
    description: 'Page that allows controlling Retro Encabulators',
    traits: [traits.Page],
    propsSchema: createPropsSchema().initial({}),
    Component() {
    return <div>My Page Content</div>;
    },
    });