rmc-notification

WebJar for rmc-notification

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

rmc-notification
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

rmc-notification
WebJar for rmc-notification
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download rmc-notification

How to add to project

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

Dependencies

compile (5)

Group / Artifact Type Version
org.webjars.npm : rc-util jar [4.0.4,5)
org.webjars.npm : babel-runtime jar [6,7)
org.webjars.npm : prop-types jar [15.5.8,16)
org.webjars.npm : classnames jar [2,3)
org.webjars.npm : rc-animate jar [2,3)

Project Modules

There are no modules declared in this project.

rmc-notification


React Notification UI Component

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

Development

npm install
npm start

Example

http://localhost:8000/examples/

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

Feature

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

install

rmc-notification

Usage

var Notification = require('rmc-notification');
Notification.newInstance({}, notification => {
  notification.notice({
    content: 'content'
  });
});

API

Notification.newInstance(props, (notification) => void) => void

props details:

name type default description
prefixCls String prefix class name for notification container
style Object {'top': 65, left: '50%'} additional style for notification container.
getContainer getContainer(): HTMLElement function returning html node which will act as notification container

notification.notice(props)

props details:

name type default description
content React.Element content of notice
key String id of this notice
closable Boolean whether show close button
onClose Function called when notice close
duration number 1.5 after duration of time, this notice will disappear.(seconds)
style Object { right: '50%' } additional style for single notice node.

notification.removeNotice(key:string)

remove single notice with specified key

notification.destroy()

destroy current notification

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rmc-notification is released under the MIT license.

org.webjars.npm

react-component

React components foundation of http://ant.design

Versions

Version
1.0.0