0

Is there a way I can change the default static classname for List and/or Grid?

className="sample-classname" just appends to the current classsname :(

here is my sample code

<WindowScroller>
  {({ height, width, isScrolling, onChildScroll, scrollTop }) => (
    <List
      className="sample-classname"
      ref={setRef}
      autoHeight
      height={height}
      width={1140}
      isScrolling={isScrolling}
      onScroll={onChildScroll}
      rowCount={data.size}
      rowHeight={this.rowHeight}
      rowRenderer={this.rowRenderer}
      scrollTop={scrollTop}
      overscanRowCount={1}
    />
  )}
</WindowScroller>
Jhay
  • 77
  • 3
  • 14
  • It's hard-coded https://github.com/bvaughn/react-virtualized/blob/master/source/List/List.js#L192 . What's the problem with it? This may be XY problem. – Estus Flask Jul 17 '18 at 10:42
  • actually there are no problem with that, I just want to have it customized how it looks like in developer console :D – Jhay Jul 18 '18 at 07:43
  • You can apply any additional class or style to it that will override styles from default class, I guess. – Estus Flask Jul 18 '18 at 11:24

0 Answers0