Releases: cloudle/ruui
Releases · cloudle/ruui
Improvement for [Input] Component
Allow focus(), blur(), clear(), isFocused() function as Input's instance method.
import { Input } from 'react-universal-ui';
/*after get instance from "ref" (e.g. myInput)*/
<Input ref={(instance) => { this.myInput = instance; }} {...otherProps}/>
/*it's possible to call:
* - this.myInput.focus();
* - this.myInput.blur();
* - this.myInput.clear();
* - this.myInput.isFocused();
* like we could with ReactNative's [TextInput]
* */Beter support for non MacOs terminal.
- Improve terminal message (color) from
ruui-clifor non MacOs machine. - Fix bug that cause
ruui init <projectName>failed on Windows. - Cli's dev-server allow LAN access, and also allow override
hostby specify inruui.config.js.
module.exports = {
host: 'our-host-or-ip', // default is 0.0.0.0, which allow connection from local network
};