Socket
Socket
Sign inDemoInstall

rijs.components

Package Overview
Dependencies
6
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rijs.components

[![Coverage Status](https://coveralls.io/repos/rijs/components/badge.svg?branch=master&service=github)](https://coveralls.io/github/rijs/components?branch=master) [![Build Status](https://travis-ci.org/rijs/components.svg)](https://travis-ci.org/rijs/com


Version published
Weekly downloads
8.6K
decreased by-17.52%
Maintainers
1
Install size
248 kB
Created
Weekly downloads
 

Readme

Source

Ripple | Components

Coverage Status Build Status
Browser Results

Redraws any custom elements on the page when any of it's dependencies change (either the component definition, data, or styles).

Given the following markup on your page:

<component-name data="something">

With a component-name (function) and something (data) registered in Ripple, it will invoke component-name.call(<el>, something) whenever a change is detected in either of those resources. Internally, this is basically implemented as follows but in a more generic form:

ripple('something').on('change', function(){

  all('[data=something]')
    .map(ripple.draw)
    
})

All instances of Custom Elements will be upgraded automatically. You can also manually invoke renders:

ripple.draw(<el> | resource object | resource name)

If the first parameter is a DOM element, it will rerender that. If it is a resource (name or object), it will rerender anything on your page that depends on that resource.

See the Primer#Components for more info

FAQs

Last updated on 22 Apr 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc