Universal Robots TypeScript API - v10.12.0
    Preparing search index...

    Service for open a dialog

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    communicationChannel: CommunicationChannel

    Methods

    • Close a Custom Webcomponent Dialog

      Parameters

      • id: string

        The id of the dialog to close

      Returns Promise<void>

    • Open a Confirmation Dialog with a single dismiss button.

      Parameters

      • title: string

        Dialog title

      • text: string

        Dialog message

      • icon: string

        Dialog icon. It can be 'info', 'warning', 'error', or other icon strings.

      • OptionalconfirmText: string

        Optional. Text for confirm button. Default to 'Confirm'.

      • OptionalconfirmIcon: string

        Optional. Icon for confirm button. Default to no icon.

      • OptionalcancelText: string

        Optional. Text for cancel button. Default to 'Go Back'.

      Returns Promise<CloseDialog<never>>

    • Open a Confirmation Dialog with a single dismiss button.

      Parameters

      • title: string

        Dialog title

      • text: string

        Dialog message

      • icon: string

        Dialog icon. It can be 'info', 'warning', 'error', or other icon strings.

      • OptionalconfirmText: string

        Optional. Text for confirm button. Default to 'OK'.

      • OptionalconfirmIcon: string

        Optional. icon for confirm button. Default to no icon.

      Returns Promise<CloseDialog<never>>

    • Open a Custom Webcomponent Dialog without waiting for user to close

      Type Parameters

      • ParamType = any

      Parameters

      • componentTag: string

        The tagname of the webcomponent to render in the dialog

      • initialData: ParamType

        The initial data to be passed to the dialog component upon opening

      • Optionaloptions: GenericDialogOptions

      Returns Promise<string>

      The id of the dialog

    • returns a reply promise to the specified message

      Type Parameters

      • T

      Parameters

      • type: string

        The type of message being sent

      • Optionaldata: any

        The message data

      Returns Promise<T>

    • returns an observable that will emit any messages replied to the specified message

      Type Parameters

      • T

      Parameters

      • type: string

        The type of message being sent

      • Optionaldata: any

        The message data

      Returns Observable<T>

    • returns a reply promise for the requested message

      Type Parameters

      • T

      Parameters

      • type: string

        The type of message being sent

      • Optionaldata: any

        The message data

      Returns Promise<T>

    • returns an observable that will emit any messages replied to the requested message

      Type Parameters

      • T

      Parameters

      • type: string

        The type of message being sent

      • Optionaldata: any

        The message data

      Returns Observable<T>