Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/trakkasure/dom-else
- Owner: Trakkasure
- Created: 2015-08-10T23:36:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-12T20:54:25.000Z (over 9 years ago)
- Last Synced: 2024-10-09T05:46:28.118Z (3 months ago)
- Language: HTML
- Size: 89.8 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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.