Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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);
}

```