ActiveUI

ActiveUI

  • User Guide
  • Developer Documentation

Home > @activeviam/activeui-sdk > ContainerProps

ContainerProps interface

For more information about the controlled/uncontrolled distinction see https://reactjs.org/docs/uncontrolled-components.html.

Signature:

export interface ContainerProps 

Remarks

See also the "Container" page in the docs for the current limitations of the controlled mode.

Properties

PropertyTypeDescription
automaticRestoreAutomaticRestoreOptionsOnly available when the container is mounted as a root. Meaning that it cannot be used for a container rendered as a child of another container.
childKeyContainerChildKeyRequired when the container is rendered as a child of another container. That's the key under which the API of the child container will be in the map returned by ReactContainerApi.getChildrenMap.
defaultValueOmit<ContainerFullValue, 'type'> & {
type?: 'container';
}
Value in uncontrolled mode.
onApiChange(api: WidgetApi) => voidCalled everytime the API corresponding to the underlying container changes. It will be called after the container is done loading the first time and every time the underlying container is reloaded.
onChange(value: ContainerFullValue | null | undefined) => voidCalled when the value of the underlying container changes. Only called once per loop in the event-loop.
onLoadingError(e: Error) => voidCalled when a container fails to load/reload. One use case for it is to render something else than the default error screen.
valueContainerFullValueValue in controlled mode.
  • ContainerProps interface
  • Remarks
  • Properties
Copyright © 2023 ActiveViam