Options
All
  • Public
  • Public/Protected
  • All
Menu

@openfin/workspace-4.0

Index

Type aliases

Action

Action : { hotkey ?: string ; name : string }

Each action is defined by its title and a hotkey

Type declaration

  • Optional hotkey ?: string
  • name : string

CLIDispatched Search Result

CLIDispatched Search Result : DispatchedSearchResult

A rendered search result that has been actioned by a user.

CLISearch Listener Request

CLISearch Listener Request : SearchListenerRequest

CLISearch Listener Response

CLISearch Listener Response : SearchListenerResponse

CLISearch Result

CLISearch Result<A> : SearchResult < A >

A search result that can be rendered by a Workspace component.

Type parameters

Home Action

Home Action : CLISuggestion | Action

Union type that includes Home's built in search result actions.

Home Search Listener Response

Home Search Listener Response : Omit < CLISearchListenerResponse , "respond" > & { respond : any }

Representation of a search response from a specific invocation of a HomeProvider's onUserInput listener function. Can optionally be used to push search results to the Home UI.

										
											function
											
											onUserInput
											(
											req
											: 
											HomeSearchListenerRequest
											, 
											res
											: 
											HomeSearchListenerResponse
											) {
											
searchListenerResponse . open ();

const myLongRunningQuery = makeMyLongRunningQuery ( searchListenerRequest . query );
myLongRunningQuery . onNewResults ( myNewResults => {
searchListenerResponse . respond ( myNewResults );
});

searchListenerRequest . onClose (() => {
myLongRunningQuery . close ();
});
}

Home Search Result

A search result that can be rendered by Home UI.

List Pairs

List Pairs : [ string , string ] []

Result Dispatch Listener

Result Dispatch Listener : (result : DispatchedSearchResult ) => void

Type declaration

    • A listener called when a search result generated by this provider is dispatched.

      															
      																searchTopic
      																.
      																dispatch
      																(
      																"My Provider Name"
      																, 
      																searchResult
      																, 
      																"My Action"
      																);
      															
      														

      Parameters

      Returns void

Score Order

Score Order : "ascending" | "descending"

The order to sort scored search results in.

Storefront Detailed Navigation Item

Storefront Detailed Navigation Item : StorefrontNavigationItem & StorefrontNavigationItemDetails

Render an item in the navigation bar of Storefront with a description and image.

Storefront Navigation Item

Render an item in the navigation bar of Storefront.

User Input Listener

User Input Listener : (request : SearchListenerRequest, response : SearchListenerResponse ) => Promise < SearchResponse >

Type declaration

Variables

Home

Home : HomeAPI = ...

Namespace for Home integrations.

Storefront

Storefront : StorefrontAPI = ...

Namespace for Storefront integrations.

Functions

Const launch App

  • launch App (app : App ) : Promise < void >
  • Default Workspace implementation for launching an application.

    Parameters

    • app: App

      the application to launch.

    Returns Promise < void >

Generated using TypeDoc