Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mrchief/jsonbootstrapmenu

Create Bootstrap (3) Menus with a simple JSON config file in ASP.NET
https://github.com/mrchief/jsonbootstrapmenu

Last synced: 10 days ago
JSON representation

Create Bootstrap (3) Menus with a simple JSON config file in ASP.NET

Awesome Lists containing this project

README

        

JsonBootstrapMenu
====================

Create Bootstrap (3) Menus with a simple JSON config file in ASP.NET

##Usage

Install via Nuget: [JsonBootstrapMenu](https://www.nuget.org/packages/JsonBootstrapMenu/)

##Sample

Given this config:

```js
[
{
"text": "Dashboard",
"url": "/dashboard"
},
{
"isDivider": true
},
{
"text": "Help",
"submenus": [
{
"url": "/documentation/GenHelp.pdf",
"text": "General",
"target": "new"
},
{
"isDivider": true
},
{
"url": "/documentation/DeployHelp.pdf",
"text": "Deploy Help",
"target": "new"
}
]
}
]
```

generates this menu structure:

```html


```

which looks like this when rendered*:

![screenshot](http://i.imgur.com/R2CdujD.png)

*(note that this screenshot was generated using a custom bootstrap theme, the helper doesn't include or affect any of the bootstrap styles)