Skip to main content

style

To add CSS styles to a Grid.js instance

style type has the following properties:

NameDescriptionType
container optionalCSS style of the main containerobject
table optionalCSS style of tableobject
td optionalCSS style of the TD elementsobject
th optionalCSS style of the TH elementsobject
header optionalCSS style of the header containerobject
footer optionalCSS style of the footer containerobject
new Grid({
data: [
['John', 'john@example.com', '(353) 01 222 3333'],
['Mark', 'mark@gmail.com', '(01) 22 888 4444']
],
style: {
td: {
border: '1px solid #ccc'
},
table: {
'font-size': '15px'
}
}
});