rmc-notification

WebJar for rmc-notification

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

rmc-notification
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

rmc-notification
WebJar for rmc-notification
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать rmc-notification

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
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)

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.0.0