fiftyone.plugins¶
Hooks¶
useActivePlugins¶
-
fiftyone.plugins.
useActivePlugins
(type, ctx)¶ - Arguments
type (PluginComponentType) –
ctx (any) –
- Return type
Array<
fiftyone.plugins.PluginComponentRegistration()
<
Any
>
>
A react hook that returns a list of active plugins.
Returns
A list of active plugins
Functions¶
getByType¶
-
fiftyone.plugins.
getByType
(type)¶ - Arguments
type (PluginComponentType) –
- Return type
Array<
any
>
Get a list of plugins match the given type.
Returns
A list of plugins
Types¶
PluginComponentRegistration¶
-
class
fiftyone.plugins.
PluginComponentRegistration
()¶
A plugin registration.
Properties¶
Name |
Type |
Description |
---|---|---|
Icon |
|
|
activator |
|
A function that returns true if the plugin should be active |
component |
|
The React component to render |
label |
|
The optional label of the plugin to display to the user |
name |
|
The name of the plugin |
panelOptions |
|
|
type |
|
The plugin type |