@adactive/arc-keyboard 中文文档教程
Keyboard component
Getting started
npm i --save @adactive/arc-keyboard
或
yarn add @adactive/arc-keyboard
import AdsumKeyboard from "@adactive/arc-keyboard"
...
<AdsumKeyboard
isOpen=true
lang="en"
currentValue=""
onKeyClicked={this.onKeyClicked}
/>
Props
type PropsType = {|
+isOpen: boolean,
+lang: 'en' | 'fr',
+currentValue: string,
+onKeyClicked: (string) => void,
+keyboardCSS?: CSSStyleDeclaration,
+keyboardLineCSS?: CSSStyleDeclaration,
+buttonCSS?: CSSStyleDeclaration
|};
static defaultProps = {
isOpen: false,
lang: 'en',
currentValue: '',
onKeyClicked: null
}
isOpen -> 显示或隐藏键盘
lang -> 键盘语言
currentValue -> 将当前查询值从键盘应用程序传递到处理结果
onKeyClicked -> 返回到
keyboardCSS 的回调函数 -> 自定义整个组件的整体CSS
keyboardLineCSS -> 自定义键盘组件每一行的CSS
buttonCSS -> 自定义键盘上的每个按钮
Copy component inside your project src folder
Less only
`npx @adactive/arc-keyboard copy --less-only`
Full copy
`npx @adactive/arc-keyboard copy`
Keyboard component
Getting started
npm i --save @adactive/arc-keyboard
OR
yarn add @adactive/arc-keyboard
import AdsumKeyboard from "@adactive/arc-keyboard"
...
<AdsumKeyboard
isOpen=true
lang="en"
currentValue=""
onKeyClicked={this.onKeyClicked}
/>
Props
type PropsType = {|
+isOpen: boolean,
+lang: 'en' | 'fr',
+currentValue: string,
+onKeyClicked: (string) => void,
+keyboardCSS?: CSSStyleDeclaration,
+keyboardLineCSS?: CSSStyleDeclaration,
+buttonCSS?: CSSStyleDeclaration
|};
static defaultProps = {
isOpen: false,
lang: 'en',
currentValue: '',
onKeyClicked: null
}
isOpen -> To show or hide keyboard
lang -> Language of keyboard
currentValue -> To pass current query value from application for keyboard to process result
onKeyClicked -> A callback function to result back to the
keyboardCSS -> To customise the overall CSS for the entire component
keyboardLineCSS -> To customise the CSS for each line of the keyboard component
buttonCSS -> To customise each button on the keyboard
Copy component inside your project src folder
Less only
`npx @adactive/arc-keyboard copy --less-only`
Full copy
`npx @adactive/arc-keyboard copy`
更多
你可能也喜欢
- @0x/contracts-staking 中文文档教程
- @0x5e/react-native-alipay 中文文档教程
- @0xproject/deployer 中文文档教程
- @2toad/d20 中文文档教程
- @a11y-kit/utils 中文文档教程
- @aaaz/prettier-config 中文文档教程
- @aaronpowell/react-static-web-apps-auth 中文文档教程
- @aberba/hubtel 中文文档教程
- @abi-software/mapcore-osparc-remote-interface 中文文档教程
- @abridged/web-wallet-frame-sdk 中文文档教程