0.2.3 • Published 6 years ago

nextrap v0.2.3

Weekly downloads
116
License
Copyright 2015 NE...
Repository
-
Last release
6 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

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.22

6 years ago

0.1.21

6 years ago

0.1.20

6 years ago

0.1.19

6 years ago

0.0.5

7 years ago

0.1.18

7 years ago

0.1.17

7 years ago

0.1.16

7 years ago

0.1.15

7 years ago

0.1.14

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago