Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/trakkasure/dom-else

Polymer Element providing the missing ELSE to the DOM-IF template.
https://github.com/trakkasure/dom-else

Last synced: 16 days ago
JSON representation

Polymer Element providing the missing ELSE to the DOM-IF template.

Awesome Lists containing this project

README

        

# What is this strange thing?
This is a Polymer Element providing the missing ELSE portion for the "DOM-IF" template.

## Install
```bash
bower install --save dom-else
```

## Example

```html
Toggle

1

2

3

Stuff
4


e1

e2

More stuff
e3



function clicked() {
var t=document.querySelector('#domIf');
t.set('if',!t.if);
}

```

## Basics
The dom-else element currently needs to be a direct child of the dom-if element.