Blueprint: HTML table throws error `blueprint-html-components`.

Created on 18 Jun 2019  路  3Comments  路  Source: palantir/blueprint

Steps to reproduce

  1. Use @blueprintjs/tslint-config in your tslint configuration
  2. Use html table tag like this `
  3. You get an error
  4. blueprint-html-components: use Blueprint <Table> component instead of JSX intrinsic element.
    

    But Table component is totally different then this html table - different functionality and look.

    Actual behavior

    You got unexpected error.

    Expected behavior

    No error.

    Possible solution

    Exclude table tag from this tslint rule.

    tooling P3 bug help wanted

    All 3 comments

    I think the error message is wrong. it should say <HTMLTable>

    use import { HTMLTable } from "@blueprintjs/core"

    @adidahiya 'blueprint' has two components for table <Table> and <HTMLTable>.
    I think the error should say
    use Blueprint <Table> or <HTMLTable> component instead of JSX intrinsic element.

    @tanmoyopenroot no, Table is very different and would be confusing to offer in replacement of the intrinsic element. If someone wanted a Blueprint data grid, it's better to go find it in the documentation first. Also <Table> requires installing another package. Open to PRs to change the error message as I suggested above.

    Was this page helpful?
    0 / 5 - 0 ratings

    Related issues

    havesomeleeway picture havesomeleeway  路  3Comments

    adidahiya picture adidahiya  路  3Comments

    adidahiya picture adidahiya  路  3Comments

    scottfr picture scottfr  路  3Comments

    brsanthu picture brsanthu  路  3Comments