An open API service indexing awesome lists of open source software.

https://github.com/99x-incubator/json2bootgrid

Convert json to awesome bootstrap grid ✌️
https://github.com/99x-incubator/json2bootgrid

bootstrap json parser snippet

Last synced: 3 months ago
JSON representation

Convert json to awesome bootstrap grid ✌️

Awesome Lists containing this project

README

          

# json2bootgrid

Convert json to bootstrap grid with color, width and content

[Blog post](https://medium.com/@shalithasuranga/writing-a-json-to-bootstrap-grid-parser-using-recursion-dafea39ce6cf)

### Usage

#### Snippet

```javascript
window.onload = () => {
let a = {
rows: [
{
columns: [
{
text: 'col 1',
width: 6,
color: 'green'
},
{
text: 'col 2',
width: 6,
color: 'yellow'
}
]
}
]
}
document.getElementById('app').innerHTML = json2bootgrid(a);
}
```

#### Output

### License

Distributed under the MIT [License](https://github.com/99xt-incubator/json2bootgrid/blob/master/LICENSE).