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

https://github.com/supportclass/sc-data-binding-helpers

Polymer 2.x mixin that provides some useful methods for data bindings.
https://github.com/supportclass/sc-data-binding-helpers

Last synced: 3 months ago
JSON representation

Polymer 2.x mixin that provides some useful methods for data bindings.

Awesome Lists containing this project

README

          

# Polymer.SCDataBindingHelpers [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/SupportClass/sc-data-binding-helpers) [![Build Status](https://travis-ci.org/SupportClass/sc-data-binding-helpers.svg?branch=master)](https://travis-ci.org/SupportClass/sc-data-binding-helpers)

A Polymer 2.x mixin that provides some useful methods for data bindings. See the [listing on webcomponents.org](https://www.webcomponents.org/element/SupportClass/sc-data-binding-helpers/mixins/Polymer.SCDataBindingHelpers) for full documentation (You'll need to click on "Show N protected methods" to see them).

## Example

```html



:host {
display: block;
}



foo is: truthy



foo is: falsey




/**
* @customElement
* @polymer
* @appliesMixin Polymer.SCDataBindingHelpers
*/
class MyElement extends Polymer.SCDataBindingHelpers(Polymer.Element) {
static get is() {
return 'my-element';
}

static get properties() {
return {
foo: {
type: String,
value: 'foo'
}
};
}
}

customElements.define(MyElement.is, MyElement);

```