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

https://github.com/dereke/sidler


https://github.com/dereke/sidler

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Sidler

## Goals

* Show dialogs at top/left/bottom/right of the screen
* Toggle dialog in situ resizing adjacent content
* Allow content of dialogs to be controlled using frameworks such as angular/react/ember etc.

## Usage

### Create a dialog that slides in from the right hand side using existing html

JavaScript
```javascript
var myDialog = sidler.init({selector: '#myDialog'}, position: 'right', modal: true)
```

HTML

```html
show


My Dialog



  • ...


hide

```

CSS
```css
.sidler-dialog.right {
top: 0px;
height: 100%;
```

### Inline Dialog

JavaScript
```javascript
var myDialog = sidler.init({selector: '#myDialog', position: 'right', modal: false, edge: false})
```

HTML
```html
show





My Dialog



  • ...


hide


```

CSS
```css
.container {
display: flex;
flex-direction: row;
}
.content {
flex: 1000%;
}

```