ConstExample 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>;
},
});
Makes an element appear and behave as a HELIO Control.
Elements with this trait will:
Example Usage
const ns = createNamespace({ name: 'com.my-company' });
const element = createElement(ns, {
name: 'My Custom Control',
description: 'Control that allows controlling Retro Encabulators',
traits: [traits.Control],
propsSchema: createPropsSchema().initial({}),
Component() {
return <div>My Control Content</div>;
},
});
Makes an element appear and behave as a HELIO Page.
Elements with this trait will:
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>;
},
});
Makes an element appear and behave as a HELIO Widget.
Elements with this trait will:
Example Usage
const ns = createNamespace({ name: 'com.my-company' });
const element = createElement(ns, {
name: 'My Custom Widget',
description: 'Widget that allows controlling Retro Encabulators',
traits: [traits.Widget],
propsSchema: createPropsSchema().initial({}),
Component() {
return <div>My Widget Content</div>;
},
});
Makes an element have the option for buffering changes locally.
Elements with this trait will: