mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
## Summary This PR handles: 1. #151992 [Security Solution] Alert Table raises error when switching to event rendered view. - Issue was related `cellActions` package where changes in columns was not leading to re-calculation of cell actions on those new columns. 3. Minor table width issue - Sometime table is not expanded to the 100% of the container width. ## Before https://user-images.githubusercontent.com/7485038/220914906-dcce7ba1-0318-44fd-a097-df86344f7727.mov ## After ( Resolved Issue 1 & 2) https://user-images.githubusercontent.com/7485038/220921916-fa4b36ad-b8e1-4a8d-ad0d-a778c911bb5b.mov |
||
---|---|---|
.. | ||
.storybook | ||
src | ||
index.ts | ||
jest.config.js | ||
kibana.jsonc | ||
package.json | ||
README.md | ||
tsconfig.json |
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} 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.