Skip to content

Failed prop type: The prop defaultValue is marked as required in TextEditor, but its value is null. #221

@srikar237

Description

@srikar237

HI Team,

I came across with this library recently and it's very easy to integrate. Thanks.

Can you please help me with below issues/requirements, thanks.

  1. When i try to edit a row on an empty cell it gives below Warning. Can you please let me know how/where to pass defaultValue prop..?
    Failed prop type: The prop defaultValue is marked as required in TextEditor, but its value is null.

  2. I would like to have the width of the column based on the length of the data in the cell. tried to width in the column prop like below but its not taking it.
    { dataField: 'affiliateUrl', text: "affiliateUrl", style: {width: '100px' }, sort: true,
    filter: textFilter(), },

image

  1. i would like to have the grid within given width, right now my code is like below. but its not working with this code.
    <div style={{width:'600px', height: '600px'}}>
    <BootstrapTable
    keyField='id'
    data={ rows }
    columns={ columns }
    noDataIndication="Table is Empty"
    cellEdit={ cellEditFactory({
    mode: 'dbclick',
    blurToSave: true
    }) }
    filter={ filterFactory() }
    pagination={ paginationFactory() }
    // pagination={ paginationFactory(options) }
    hover
    />

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions