镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

(Suggestion) Would consider add 'Overriding Default Elements' feature. #139

Closed

Description

@CrisLi

I am comparing rc-table and reactabular.

One of good feature of reactabular is that it can Overriding Default Elements.

Would we consider add a similar feature. Then our table can apply any css framework or existing react component, such as react.semantic-ui.com and react-bootstrap.github.io

Activity

  1. paranoidjk commented on May 12, 2017

    @paranoidjk
    Member

    I think props.render can be used to custom elemts, see https://github.com/react-component/table#column-props

  2. CrisLi commented on May 15, 2017

    @CrisLi
    Author

    @paranoidjk props.render only can custom the element inside the td (column).

    The reactabular has better custom options.

    {
      components: {
        table: 'table',
        header: {
          wrapper: 'thead',
          row: 'tr',
          cell: 'th'
        },
        body: {
          wrapper: 'tbody',
          row: 'tr',
          cell: 'td'
        }
      }
    };
  3. paranoidjk commented on May 15, 2017

    @paranoidjk
    Member
  4. self-assigned this
    on Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions