Docs (4.0.0)
class UIComponent method

applyViewPreset

Applies the provided preset properties to this object.

applyViewPreset(preset: {
    hidden?: BindingOrValue<boolean>;
    position?: BindingOrValue<UIComponent.Position>;
    accessibleRole?: BindingOrValue<StringConvertible>;
    accessibleLabel?: BindingOrValue<StringConvertible>;
    requestFocus?: boolean;
    onBeforeRender?: string;
    onRendered?: string;
    onFocusIn?: string;
    onFocusOut?: string;
    onClick?: string;
    onDoubleClick?: string;
    onContextMenu?: string;
    onMouseUp?: string;
    onMouseDown?: string;
    onKeyUp?: string;
    onKeyDown?: string;
    onKeyPress?: string;
    onEnterKeyPress?: string;
    onSpacebarPress?: string;
    onBackspaceKeyPress?: string;
    onDeleteKeyPress?: string;
    onEscapeKeyPress?: string;
    onArrowLeftKeyPress?: string;
    onArrowRightKeyPress?: string;
    onArrowUpKeyPress?: string;
    onArrowDownKeyPress?: string;
}): void

Notes

  • This method is called automatically. Don’t call this method after constructing a UI component.

Related