rmc-drawer

WebJar for rmc-drawer

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

rmc-drawer
Last Version

Last Version

0.4.11
Release Date

Release Date

Type

Type

jar
Description

Description

rmc-drawer
WebJar for rmc-drawer
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/react-component/m-drawer

Download rmc-drawer

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/rmc-drawer/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>rmc-drawer</artifactId>
    <version>0.4.11</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/rmc-drawer/
implementation 'org.webjars.npm:rmc-drawer:0.4.11'
// https://jarcasting.com/artifacts/org.webjars.npm/rmc-drawer/
implementation ("org.webjars.npm:rmc-drawer:0.4.11")
'org.webjars.npm:rmc-drawer:jar:0.4.11'
<dependency org="org.webjars.npm" name="rmc-drawer" rev="0.4.11">
  <artifact name="rmc-drawer" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='rmc-drawer', version='0.4.11')
)
libraryDependencies += "org.webjars.npm" % "rmc-drawer" % "0.4.11"
[org.webjars.npm/rmc-drawer "0.4.11"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : babel-runtime jar [6,7)
org.webjars.npm : classnames jar [2.2.4,3)
org.webjars.npm : prop-types jar [15.5.10,16)

Project Modules

There are no modules declared in this project.

rmc-drawer


React Drawer Component

NPM version build status Test coverage gemnasium deps npm download

Screenshots

Development

npm install
npm start

Example

http://localhost:8099/examples/

online example: http://react-component.github.io/m-drawer/

install

rmc-drawer

Usage

var Drawer = require('rmc-drawer');
var React = require('react');
React.render(<Drawer />, container);

API

props

Property name Description Type Default
className additional css class of root dom node String ''
prefixCls prefix class String 'rmc-drawer'
children The main content any n/a
style container styles. Object
sidebarStyle Inline styles. Object {}
contentStyle Inline styles. Object {}
overlayStyle Inline styles. Object {}
dragHandleStyle Inline styles. Object {}
sidebar The sidebar content any n/a
onOpenChange Callback called when the sidebar wants to change the open prop. Happens after sliding the sidebar and when the overlay is clicked when the sidebar is open. Function n/a
open If the sidebar should be open Boolean false
position where to place the sidebar String 'left', enum{'left', 'right', 'top', 'bottom'}
docked If the sidebar should be docked in document Boolean false
transitions If transitions should be enabled Boolean true
touch If touch gestures should be enabled Boolean true
enableDragHandle If dragHandle should be enabled Boolean true
dragToggleDistance Distance the sidebar has to be dragged before it will open/close after it is released. Number 30

change from https://github.com/balloob/react-sidebar

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rmc-drawer is released under the MIT license.

org.webjars.npm

react-component

React components foundation of http://ant.design

Versions

Version
0.4.11