Socket
Socket
Sign inDemoInstall

nextrap

Package Overview
Dependencies
49
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nextrap

Nextrap is the UI framework of Nexty


Version published
Weekly downloads
30
increased by900%
Maintainers
1
Install size
18.5 MB
Created
Weekly downloads
 

Readme

Source

Nextrap

The current version is an alpha/beta. Use it at your own risk.

Installation

First install the package with the follow command :

$ npm install nextrap --save

Getting started

For using Nextrap, you need to take a look to the examples available in the folder /path/to/nextrap/src/public/app/platform/views. For render these examples in your browser, run :

  1. cd /path/to/nextrap
  2. npm start
  3. Open your browser and go to http://localhost:3004

More information

For more information about the React Components, follow these steps :

  1. Look at available Components in /path/to/nextrap/lib/nextrap/jsx/index.js
  2. Look at available PropTypes at the beginning of each Component file in /path/to/nextrap/lib/nextrap/jsx/components/**.react.js
  3. Look at available public methods at the end of each Component file in /path/to/nextrap/lib/nextrap/jsx/components/**.react.js

Using public methods of a Component

Here, an example of the public method available for Dropdown Component :

// Render
render: function() {
    return (
        <Button onClick={this.focusDropdown}>Focus dropdown</Button>
        <Button onClick={this.blurDropdown}>Blur dropdown</Button>
        <Dropdown ref={function(c) { this._dropdownRef = c; }.bind(this)} />
    );
},

// Focus in dropdown
focusDropdown: function() {
    this._dropdownRef.focus();
},

// Blur from dropdown
blurDropdown: function() {
    this._dropdownRef.blur();
}

FAQs

Last updated on 17 Apr 2019

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