0.2.3 • Published 5 years ago

nextrap v0.2.3

Weekly downloads
116
License
Copyright 2015 NE...
Repository
-
Last release
5 years ago

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 2. 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();
}
0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.22

5 years ago

0.1.21

5 years ago

0.1.20

5 years ago

0.1.19

5 years ago

0.0.5

5 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

7 years ago

0.0.3

7 years ago