# input-form-dimension

> The dimension and dimension unit part of a simulation input form

Latest version **1.2.0** (published 2021-10-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install input-form-dimension
pnpm add input-form-dimension
yarn add input-form-dimension
bun add input-form-dimension
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2021-10-02 |
| First published | 2021-09-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 449.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Cheng, Xiaoxing |
| Maintainers | billcxx |

## Links

- npm: https://www.npmjs.com/package/input-form-dimension
- npm.io page: https://npm.io/package/input-form-dimension

## Dependencies (2)

- [dva](https://npm.io/package/dva.md) ^2.4.1
- [antd](https://npm.io/package/antd.md) ^4.6.4

## Recent versions

- 1.2.0 (latest) — 2021-10-02
- 1.1.0 — 2021-09-24
- 1.0.0 — 2021-09-18

## README

# Notice

Not sure why arrow function is not working, we just use a normal function

# Usage

1. Create a hook for to the component, use it outside of the form.
```
this.dimensionRef = React.createRef();
```
2. Then in the import file function
```
this.dimensionRef.current.getWrappedInstance().onImport(message.file.input.dimension[0]);
```
3. In the finish function
```
this.dimensionRef.current.getWrappedInstance().onFinish();
```

---
_Source: https://npm.io/package/input-form-dimension · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
