rmc-align

WebJar for rmc-align

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

rmc-align
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

rmc-align
WebJar for rmc-align
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download rmc-align

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : babel-runtime jar [6,7)
org.webjars.npm : dom-align jar [1,2)
org.webjars.npm : rc-util jar [4,5)

Project Modules

There are no modules declared in this project.

rmc-align


React Align Component. Wrapper around https://github.com/yiminghe/dom-align.

NPM version build status Test coverage gemnasium deps node version npm download

Development

npm install
npm start

Example

http://localhost:8100/examples/

online example: http://react-component.github.io/align/examples/

Feature

  • support ie8,ie8+,chrome,firefox,safari

Keyboard

install

rmc-align

Usage

var Align = require('rmc-align');
var ReactDOM = require('react-dom');
ReactDOM.render(<Align align={{}} target={function(){}}><div></div></Align>, container);

will align child with target when mounted or align is changed

API

props

name type default description
align Object same with alignConfig from https://github.com/yiminghe/dom-align
onAlign function(source:HTMLElement, align:Object) called when align
target function():HTMLElement function(){return window;} a function which returned value is used for target from https://github.com/yiminghe/dom-align
monitorWindowResize Boolean false whether realign when window is resized

License

rmc-align is released under the MIT license.

org.webjars.npm

react-component

React components foundation of http://ant.design

Versions

Version
1.0.0