Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/wawrow/bootstrap-button-designer

simple js button designer for bootstrap
https://github.com/wawrow/bootstrap-button-designer

Last synced: 3 months ago
JSON representation

simple js button designer for bootstrap

Awesome Lists containing this project

README

        

## Bootstrap Button Designer

A simple js Button Designer with class, icon and size picker.
![Sample Image](https://wawrow.github.io/bootstrap-button-designer/docs/sample.png)

## Installation

Required dependecies:

- `[email protected]`
- `[email protected]` *(optional, enabled by default)
- `[email protected]` *(optional, enabled by default)
- `[email protected]` *(will probably work with older)

Add to Head:

```

```

## Usage

Define button:
```
Some Text Button 1
```

Make it editable:
```
$('.button-designer').button_desinger()
```

Or With Options:
```
$('.button-designer').button_desinger({styles : {
"Default": 'btn-default',
"Primary": 'btn-primary',
"Success": 'btn-success',
"Info": 'btn-info',
"Warning": 'btn-warning',
"Danger": 'btn-danger'
},
sizes : {
"XSmall": 'btn-xs',
"Small" : "btn-sm",
"Default" : "",
"Large" : "btn-lg"
},
extra_classes : {
'Round' : 'btn-round',
'Shadow' : 'btn-shadow',
'Block' : 'btn-block',
},
icons : ['fa', 'ion', 'glyphicons']
})`
```

**See Demo Here: [Click](https://wawrow.github.io/bootstrap-button-designer/).**

## License

The plugin is under MIT License