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

Create a generic Table Component #42

Open
irshadjsr21 opened this issue Oct 31, 2020 · 0 comments
Open

Create a generic Table Component #42

irshadjsr21 opened this issue Oct 31, 2020 · 0 comments
Labels
bulma Bulma CSS framework enhancement New feature or request

Comments

@irshadjsr21
Copy link
Collaborator

  • This component should use HTML table tags to create a generic table.
  • The component should be responsive so that it looks good in both desktop and mobile view.
  • This component should take the following props
    • tableHeader: an array of objects with the following fields name: string, key: string. For example:
    [
        {
            "name": "Name",
            "key": "name" 
        },
        {
            "name": "Age",
            "key": "age" 
        },
        {
            "name": "Gender",
            "key": "gender" 
        }
    ]
    • The name field should be displayed as the column header and the key is the key of the object which will contain the data for that column in the tableData object.
    • tableData: an array of objects which should contain all the key as in the tableHeader array. Each entry in the tableData array should be displayed as a row in the table.
    [
        {
            "name": "John",
            "age": "35",
            "gender": "male"
        },
        {
            "name": "Jane",
            "age": "31",
            "gender": "female"
        }
    ]
    • title: string
  • Create the component as shown in the design.
  • The title props value should be the title of the chart.
  • The tableHeader props values should be table header values.
  • The tableData props values should be table record values.

For Design Reference Click Here

Location to save the component src->components->common->table.jsx

@irshadjsr21 irshadjsr21 added enhancement New feature or request bulma Bulma CSS framework labels Oct 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bulma Bulma CSS framework enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant