kibana/packages/kbn-cell-actions
Luke Elmers b6287708f6
Adds AGPL 3.0 license (#192025)
Updates files outside of x-pack to be triple-licensed under Elastic
License 2.0, AGPL 3.0, or SSPL 1.0.
2024-09-06 19:02:41 -06:00
..
.storybook Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
actions Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
src Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
constants.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
index.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
jest.config.js Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana.jsonc [Security Solution] [CellActions] Move to a package (#149057) 2023-01-19 11:52:10 +01:00
package.json Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
README.md [Security Solution] Add Timeline Hover Action to Security Dashboard Calculated Metrics (#154299) 2023-04-21 13:43:08 -06:00
tsconfig.json [SecuritySolutions] Update CellActions to support all types used by Discover (#160524) 2023-06-30 15:50:39 +02:00

This package provides a uniform interface for displaying UI actions for a cell. For the CellActions component to work, it must be wrapped by CellActionsProvider. Ideally, the wrapper should stay on the top of the rendering tree.

Example:

<CellActionsProvider getTriggerCompatibleActions={uiActions.getTriggerCompatibleActions}>
    [...]
    <CellActions mode={CellActionsMode.HOVER_DOWN} triggerId={MY_TRIGGER_ID} config={{ field: 'fieldName', value: 'fieldValue', fieldType: 'text' }}>
        Hover me
    </CellActions>
</CellActionsProvider>

CellActions component will display all compatible actions registered for the trigger id.