Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EuiInMemoryTable] Replaces search support with more generic toolbar support #452

Closed
wants to merge 1 commit into from
Closed

[EuiInMemoryTable] Replaces search support with more generic toolbar support #452

wants to merge 1 commit into from

Commits on Feb 26, 2018

  1. [EuiInMemoryTable] Replaces search support with more generic toolbar …

    …support
    
    - the toolbar still supports search (you can configure a search bar on it)
    - you can configure `leftTools` - tools/actions that will be placed to the left of the search bar (if one exists)
    - you can configure `rightTools` - tools/actions that will be placed ot the right of the search bar
    
    There'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 an `item_action` is now `contextual_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.
    uboness committed Feb 26, 2018
    Configuration menu
    Copy the full SHA
    bb28ef7 View commit details
    Browse the repository at this point in the history