0.3.16 • Published 6 years ago
@react-ag-components/my-printer v0.3.16
my-printer
React my-printer component for external web apps
Usage
Install
npm i @react-ag-components/my-printer --save
Use in your project
import ContactPerson from '@react-ag-components/my-printer'
let commodities = [
{value: "D",label: "Dairy (Just For Testing)"},
{value: "F",label: "Fish (Just For Testing)"},
{value: "H",label: "Hort (For Testing Only)"},
{value: "X",label: "All Other Goods"}
]
let activeCommodities = ["X"]
<Commodities
ref="commodities"
commodities={this.state.commodities}
activeCommodities={this.state.activeCommodities}
onlyShowCommodities={true}
standAlonePage={false}
myPrinterMsg={this.updateMsg}
/>
updateMsg = status => {
this.setState((prevState, props) => ({
[status.type]: status.msg
}));
if (status.msg !== "") {
window.scroll(0, 0);
}
};
Properties
prop | Type | Note |
---|---|---|
commodities | object | data.commodities |
activeCommodities | object | data.activeCommodities |
onlyShowCommodities | state | so we can use it for Export Commodities |
standAlonePage | boolean | Has own Save button |
myPrinterMsg | object | update parent page state |
Contributing
Get the repository
git clone https://github.com/alphillips/my-printer-component.git
Update dependencies
npm install
Run the project
npm start
Deploy to npm
Build
npm run build -- --copy-files
Publish
npm publish --access public
0.3.16
6 years ago
0.3.15
6 years ago
0.3.14
6 years ago
0.3.13
6 years ago
0.3.12
6 years ago
0.3.11
6 years ago
0.3.10
6 years ago
0.3.9
6 years ago
0.3.8
6 years ago
0.3.7
6 years ago
0.3.6
6 years ago
0.3.5
6 years ago
0.3.4
6 years ago
0.3.3
6 years ago
0.3.2
6 years ago
0.3.0
6 years ago
0.2.9
6 years ago
0.2.8
6 years ago
0.2.7
6 years ago
0.2.6
6 years ago
0.2.5
6 years ago
0.2.4
6 years ago
0.2.3
6 years ago
0.2.2
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago