Skip to content

Instantly share code, notes, and snippets.

@sjmiles
Last active August 29, 2015 14:23
Show Gist options
  • Save sjmiles/4b4632bee1b4268d8030 to your computer and use it in GitHub Desktop.
Save sjmiles/4b4632bee1b4268d8030 to your computer and use it in GitHub Desktop.
cookbook stuff

Using a polymorphic wrapper to forward bindings to an dynamic instance.

http://jsbin.com/noqiji/edit?html,output

Making paper-tab size fit it's content width

http://jsbin.com/bizoso/edit?html,output

Configuring themes in the main document, applying them inside the tree.

http://jsbin.com/xudodi/edit?html

Style rules that define custom property values must apply directly

http://jsbin.com/sanata/edit?html,output

Styling a paper-button using scoped classes

http://jsbin.com/sanata/edit?html,output

Using updateStyles to re-evaluate custom styles when binding to class$

http://jsbin.com/feyile/edit?html,output

but you really should do it like this:

http://jsbin.com/durapa/1/edit?html,output

or even better, like so:

http://jsbin.com/hoyaguy/1/edit?html,output

Dynamically filtering a repeat

http://jsbin.com/cehocu/edit?html,output

Decision making inside a repeat

http://jsbin.com/gibuju/edit?html,output

Using on-dom-change

http://jsbin.com/jiriyu/edit?html,output

Updating a google-map

http://jsbin.com/lohari/edit?html,output

Pub/Sub

http://jsbin.com/goheje/1/edit?html,output

Binding to data modulated by key (i.e. I want to do value="{{data[key]}}")

http://jsbin.com/duxabu/1/edit?html,output

Proposed layout.html Usage

http://jsbin.com/zofidu/2/edit?html,output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment