Skip to content

Not able to hide the Border between Row with type = TABLE #95

Description

@chintan-beecept

When print a Table even I set border to 0, it still prints the border.

const data_new = [
  {
    type: 'table',
    style: { 'border': '0'},             // style the table   //table box border
    // list of the columns to be rendered in the table header
    tableHeader: [{type: 'text', value: 'People'}, {type: 'text', value: 'People'}],
    // multi-dimensional array depicting the rows and columns of the table body
    tableBody: [
        [{type: 'text', value: 'Marcus', style: {'border': '0'}}, {type: 'text', value: 'Marcus', style: {'border': '0'}}],
        [{type: 'text', value: 'Boris', style: {'border': '0'}}, {type: 'text', value: 'Marcus', style: {'border': '0'}}],
        [{type: 'text', value: 'Andrew', style: {'border': '0'}}, {type: 'text', value: 'Marcus', style: {'border': '0'}}],
        [{type: 'text', value: 'Tyresse', style: {'border': '0'}}, {type: 'text', value: 'Marcus', style: {'border': '0'}}],
    ],
    // list of columns to be rendered in the table footer
    tableFooter: [{type: 'text', value: 'People'}, 'Image'],
    // custom style for the table header
    tableHeaderStyle: { backgroundColor: 'red', color: 'white'},
    // custom style for the table body
    tableBodyStyle: {'border': '0'}, ///// Header border
    // custom style for the table footer
    tableFooterStyle: {backgroundColor: '#000', color: 'white'},
  },
]

If above syntax is incorrect then can you please suggest correct one?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions