Our blazing fast Grid component built with pure JavaScript
Hi support,
How can I add bg-color to a toolbar in grid?
Thanks.
Hi,
You could use this CSS to achieve it
.b-toolbar {
background-color: #a6ffe5;
}
-
Attachments
-
- Screenshot 2024-03-19 151700.png (50.34 KiB) Viewed 433 times
I want to use it as a custom class.. toolbar have been used in various places and I don't want to disturb them
I'm unable to add the class as tbar in my thing is an array of items like below.
const gridconfig={
tbar:[]
}
return <BryntumGrid ref={grid} {...gridConfig} />
How should I add a class in this case?
You need to provide an object as Tasnim showed:
tbar : {
cls : 'customCls',
items : [...]
}