Keyboard - NativeScript Docs

文章推薦指數: 80 %
投票人數:10人

All widgets that inherit from EditableTextBase , i.e., TextField and TextView , have a keyboardType property that gets or sets the soft keyboard type that ... NativeScriptCore USERINTERFACEKeyboard KeyboardType AllwidgetsthatinheritfromEditableTextBase,i.e.,TextFieldandTextView,haveakeyboardTypepropertythatgetsorsetsthesoftkeyboardtypethatwillbeshownwhileineditmode.PossiblevaluesarecontainedintheKeyboardTypeenumeration. datetime Android:TYPE_CLASS_DATETIME|TYPE_DATETIME_VARIATION_NORMAL iOS:UIKeyboardTypeNumbersAndPunctuation phone Android:TYPE_CLASS_PHONE iOS:UIKeyboardTypePhonePad number Android:TYPE_CLASS_NUMBER|TYPE_NUMBER_VARIATION_NORMAL|TYPE_NUMBER_FLAG_SIGNED|TYPE_NUMBER_FLAG_DECIMAL iOS:UIKeyboardTypeNumbersAndPunctuation url Android:TYPE_CLASS_TEXT|TYPE_TEXT_VARIATION_URI iOS:UIKeyboardTypeURL email Android:TYPE_CLASS_TEXT|TYPE_TEXT_VARIATION_EMAIL_ADDRESS iOS:UIKeyboardTypeEmailAddress ReturnKeyType AllwidgetsthatinheritfromEditableTextBase,i.e.,TextFieldandTextView,haveareturnKeyTypepropertythatgetsorsetsthesoftkeyboardreturnkeytype.PossiblevaluesarecontainedintheReturnKeyTypeenumeration. done Android:IME_ACTION_DONE iOS:UIReturnKeyDone next Android:IME_ACTION_NEXT iOS:UIReturnKeyNext go Android:IME_ACTION_GO iOS:UIReturnKeyGo search Android:IME_ACTION_SEARCH iOS:UIReturnKeySearch send Android:IME_ACTION_SEND iOS:UIReturnKeySend Askthecommunity Improvethisarticle



請為這篇文章評分?