Skip to content

rijs/features

Folders and files

NameName
Last commit message
Last commit date

Latest commit

987ca98 · Nov 3, 2017

History

20 Commits
Nov 3, 2017
Jan 4, 2016
Nov 3, 2017
Nov 3, 2017
May 2, 2016
Nov 3, 2017
Nov 3, 2017
Nov 3, 2017
Nov 3, 2017
Nov 3, 2017
Nov 3, 2017
Nov 3, 2017
Nov 3, 2017

Repository files navigation

Ripple | Features

Coverage Status Build Status

Extends the rendering pipeline to enhance a component with other features (mixins).

Extend components with features

<custom-form is="validatable">

Features are just components, and will be invoked on the element during a render in the same way as the base component. The base component will be invoked first and then any features specified (you can specify multiple features).

ripple('base-component', function(){ this.innerHTML = 'foo' } )
ripple('feature', function(){ this.innerHTML += 'bar' } )
<base-component is="feature">foobar<base-component>

This pattern is the same as:

d3.select(element)
  .call(component)
  .call(feature1)
  .call(feature2)
  .call(feature3)

Features may also contribute and mixin their own styles (just extend css attribute).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published