Skip to content

EuiBasicTable header names should be node propType #1002

Closed

Description

@sorenlouv

With KUI Tables it was possible to add tooltips to the header cells. This is useful since some columns need to be explained to the user. In APM we have a column called "Impact" with a tooltip saying: Impact shows the most used and slowest endpoints in your service.
screen shot 2018-06-29 at 17 09 11

Implementation

Edit: Option A was selected as the best solution of the two.

Option A) EuiBasicTable currently only support strings as name. By allowing custom elements, it would be possible to customize the header in a very flexible way:

{
  field: 'impact',
  name: (
    <div>Impact <EuiToolTip content="Help text"/></div>
  ),
  sortable: true,
  dataType: 'number'
}

Option B) Another option is to keep the name field limited to strings, but introduce a tooltip field:

{
  field: 'impact',
  name: 'Impact',
  tooltip: 'Impact shows the most used and slowest endpoints in your service.',
  sortable: true,
  dataType: 'number'
}

Activity

  1. cchaos commented on Jul 11, 2018

    @cchaos
    Contributor

    Allowing nodes is the most flexible, as you mentioned. I would vote for that solution.

  2. self-assigned this
    on Jul 12, 2018
  3. sorenlouv commented on Jul 12, 2018

    @sorenlouv
    ContributorAuthor

    Cool. I'll look into adding support for this sometime next week.

  4. cjcenizal commented on Sep 12, 2018

    @cjcenizal
    Contributor

    +1 to supporting nodes in headers. We will need this to support localization of table headers. I'm going to change the title to reflect this.

  5. changed the title [-]Tooltips in EuiBasicTable headers[/-] [+]EuiBasicTable header names should be node propType[/+] on Sep 12, 2018
  6. chrisronline commented on Sep 24, 2018

    @chrisronline
    Contributor

    +1

  7. sorenlouv commented on Sep 24, 2018

    @sorenlouv
    ContributorAuthor

    I got busy with APM stuff but this is still on my roadmap. I expect that I or someone from the APM team will look into this before 6.5 is released but can't guarantee it.

  8. chrisronline commented on Sep 24, 2018

    @chrisronline
    Contributor

    To be clear, we're all advocating for option A right?

  9. sorenlouv commented on Sep 24, 2018

    @sorenlouv
    ContributorAuthor

    yes. Updated the issue to reflect that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions