[EuiInMemoryTable] Replaces search support with more generic toolbar support #452
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
leftTools
- tools/actions that will be placed to the left of the search bar (if one exists)rightTools
- tools/actions that will be placed ot the right of the search barThere's a default tool (right & left) that you can configure (either a normal button os an icon button). It provides ootb functionality to determine its availability and state (enabled/disabled) based on the current state of the table (for example, you can make the button available only when something is selected)
It is also possible to provide a custom tool.
Consolidated the notion of a
tool
between the those added to the toolbar and those added on each row (as part of the actions column). what used to be anitem_action
is nowcontextual_action
- it's an action that has a certain context - this context is passed to all the action callbacks to determine its availability and state. In the case of an item action, the context is the item, in the case of a toolbar action, the context is an object representing the table.Closes: #443