Interface IWidgetsFactory

interface IWidgetsFactory {
    create<T>(type: T, props?: WidgetProperties<T>): Widget<T>;
    updateProvider(provider: Web3Provider): void;
}

Methods

  • Create a new widget instance.

    Type Parameters

    Parameters

    • type: T

      widget type to instantiate.

    • Optionalprops: WidgetProperties<T>

      widget configurations and provider.

    Returns Widget<T>

  • Update the widgets provider instance.

    Parameters

    • provider: Web3Provider

      the provider instance to update all widgets.

    Returns void