frint-component-handlers

5.7.2 • Public • Published

frint-component-handlers

npm

Component handlers package of Frint


Guide

This package is aimed at enabling other reactive rendering/templating libraries integrate with FrintJS, and not to be used directly by developers in their applications.

For example, take a look at frint-react for its implementation using this package internally.

Installation

With npm:

$ npm install --save frint-component-handlers

API

RegionHandler

RegionHandler

Handler for creating Region component.

ObserveHandler

ObserveHandler

Handler for creating observe higher-order component.

RegionService

RegionService

If your App wishes to receive data coming from the Region component it's rendered in, RegionService is your way to access it.

Methods exposed by the instance:

emit

emit(props)

The props that need to be emitted (Region component uses it internally).

Arguments

  1. props (Object)

Returns

void.

getProps$

getProps$()

Returns

Observable: of emitted props from the Region component.

getData$

getdata$()

Returns

Observable: of the data prop from the Region component.

/frint-component-handlers/

    Package Sidebar

    Install

    npm i frint-component-handlers

    Weekly Downloads

    86

    Version

    5.7.2

    License

    MIT

    Unpacked Size

    36.3 kB

    Total Files

    13

    Last publish

    Collaborators

    • jbaudin
    • rmachado-travix
    • mmirandaalex
    • fahad19
    • markvincze
    • viacheslaff