Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trakkasure/dom-if-else
Modification of dom-if to be if/else compliant.
https://github.com/trakkasure/dom-if-else
Last synced: 16 days ago
JSON representation
Modification of dom-if to be if/else compliant.
- Host: GitHub
- URL: https://github.com/trakkasure/dom-if-else
- Owner: Trakkasure
- License: mit
- Created: 2015-08-18T19:20:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-20T19:52:57.000Z (over 9 years ago)
- Last Synced: 2024-10-10T18:11:06.361Z (3 months ago)
- Language: HTML
- Homepage:
- Size: 195 KB
- Stars: 12
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dom-if-else
Modification of dom-if to be if/else compliant.This is a Polymer Element providing the missing ELSE portion for the "DOM-IF" template by way of an alterative to DOM-IF.
## Build Status [![Build Status](https://travis-ci.org/Trakkasure/dom-if-else.svg?branch=master)](https://travis-ci.org/Trakkasure/dom-if-else) [![Coverage Status](https://coveralls.io/repos/Trakkasure/dom-if-else/badge.svg?branch=master&service=github)](https://coveralls.io/github/Trakkasure/dom-if-else?branch=master)
[![Sauce Test Status](https://saucelabs.com/browser-matrix/dom-if-else.svg)](https://saucelabs.com/u/dom-if-else)## Install
```bash
bower install --save dom-if-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);
}
```