3.0.1 • Published 9 years ago
apeman-react-notice v3.0.1
apeman-react-notice
apeman react package for notice components
Installation
$ npm install apeman-react-notice --save
Demo
Live demo is hosted on GitHub Pages.
Usage
'use strict'
import React from 'react'
import {ApNotice, ApNoticeStyle} from 'apeman-react-notice'
const ExampleComponent = React.createClass({
render () {
const s = this
return (
<div>
<ApNoticeStyle />
<ApNotice>
<ApNoticeItem text="Are you sure to do that?"
actions={
{
'YES': s._handleYes ,
'NO':s._handleNo
}
}/>
</ApNotice>
</div>
)
},
_handleYes() {
/* ... */
},
_handleNo() {
/* ... */
}
})
Components
ApNoticeItem
Props
Name | Type | Default | Description | |
---|---|---|---|---|
text | string | null | Item text | |
actions | object | null | Action button text and handlers | |
hidden | bool | false | Hide component | |
level | enum | 'DEFAULT' | Information level |
ApNoticeStyle
Props
Name | Type | Default | Description | |
---|---|---|---|---|
style | object | {} | ||
highlightColor | string | ApStyle.DEFAULT_HIGHLIGHT_COLOR | ||
backgroundColor | ApStyle.DEFAULT_BACKGROUND_COLOR | |||
normalColor | ApStyle.NORMAL_COLOR | |||
infoColor | ApStyle.INFO_COLOR | |||
warnColor | ApStyle.WARN_COLOR | |||
errorColor | ApStyle.ERROR_COLOR |
ApNotice
Props
Name | Type | Default | Description | |
---|---|---|---|---|
spinning | bool | false | Show spinner | |
spinner | string | ApSpinner.DEFAULT_THEME | Spinner theme |
License
This software is released under the MIT License.
Links
3.0.1
9 years ago
3.0.0
9 years ago
2.0.6
9 years ago
2.0.5
9 years ago
2.0.4
9 years ago
2.0.3
9 years ago
2.0.2
9 years ago
2.0.1
9 years ago
2.0.0
9 years ago
1.1.4
9 years ago
1.1.3
9 years ago
1.1.2
9 years ago
1.1.1
9 years ago
1.1.0
9 years ago
1.0.8
9 years ago
1.0.7
9 years ago
1.0.6
9 years ago
1.0.5
9 years ago
1.0.4
9 years ago
1.0.3
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago