options
🤏 use-grid offers options to configure the grid.
Grid options#
| Option | Default Value |
|---|---|
| init | `` |
| none | `` |
| onView | `` |
| config | `` |
| viewConfig | .. |
| mediaConfig | .. |
| prefix | .. |
View options#
| Option | Default Value | Description |
|---|---|---|
| once | false | .. |
| onView | null | .. |
| timeout | 0 | .. |
| defaultView | true | .. |
Media options#
| Option | Default Value | Description |
|---|---|---|
| size | .. | .. |
| width | 0 | .. |
| widthRef | null | .. |
| mediaType | null | .. |
| media | '' | .. |
| mathes | false | .. |
| onchange | ()=>{} | .. |
| addListener | ()=>{} | .. |
| removeListener | ()=>{} | .. |
| addEventListener | ()=>{} | .. |
| removeEventListener | ()=>{} | .. |
| dispatchEvent | ()=>true | .. |