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

    Variable BufferedChangesTraitConst

    BufferedChangesTrait: RichTraitRef = ...

    Makes an element have the option for buffering changes locally.

    Elements with this trait will:

    • Automatically receive options for setting the write mode (direct or buffered),
    • apply all Data Variable changes locally and
    • allow them to be manually committed or discarded (via HELIO Core Actions).

    1.0.0

    Example Usage

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