Deregister a provider.
import { Home , CLIProvider } from "@openfin/workspace";
import { fetchMySearchResults } from "./my-fetch-implementation";
const myCLIProvider: CLIProvider = {
id: "my-cli-provider",
title: "My CLI Provider",
icon: "https://google.com/favicon.ico",
onUserInput: (req) => fetchMySearchResults(req.query)
};
// Register and do some work with the provider
const deregister = async () => {
await Home.deregister("my-cli-provider");
}
the name of the provider.
Hide the Home UI.
import { Home } from './home'
const hide = async () => {
await Home.hide();
// Do thing after hide
}
Register a provider that can return search results to Home.
import { Home, CLIProvider } from "@openfin/workspace";
import { fetchMySearchResults } from "./my-fetch-implementation";
const myCLIProvider: CLIProvider = {
id: "my-cli-provider",
title: "My CLI Provider",
icon: "https://google.com/favicon.ico",
onUserInput: (req) => fetchMySearchResults(req.query)
};
const register = async () => {
await Home.register(myCLIProvider);
}
the provider implementation.
Show the Home UI.
import { Home } from './home'
const show = async () => {
await Home.show();
// Do thing after show
}
Generated using TypeDoc
Interface that contains functions for integrating with Home.