SolvedGriddle Custom column width and Horizontal Scroll?

Does Griddle support custom column width? Would be really nice to be able to specify column width as absolute (px) or relative (%). I believe currently the columns are equally sized as per available width.

Also any chance of getting horizontal scroll for tables with a large no: of columns?

Btw, great work guys, otherwise Griddle is nice, light and quite functional!

18 Answers

✔️Accepted Answer

Look at cssClassName property under Column Metadata here:
http://griddlegriddle.github.io/Griddle/customization.html

eg:

<Griddle 
     columnMetadata = {[
                { columnName: "label",  displayName: "Name", cssClassName: "LabelColumn"},
                .
                .
               ]}
/>

and in your CSS

.LabelColumn{
    width: 150px;
}   

You can also experiment with max-width too.

Other Answers:

Any example for horizontal scroll ?

More Issues: