DevExtreme React - Task-Specific Modes
Depending on the value the TextBox should hold, specify the widget mode option. When set to "email", "tel" or "url", this option affects the set of keyboard buttons shown on a mobile device when the widget gets focused. When set to "search" or "password", the mode option impacts the visual representation of the widget. For example, the following code hides input characters behind asterisks.
jQuery
JavaScript
$(function() { $("#textBoxContainer").dxTextBox({ mode: "password" }); });
Angular
HTML
TypeScript
<dx-text-box mode="password"> </dx-text-box>
import { DxTextBoxModule } from "devextreme-angular"; // ... export class AppComponent { // ... } @NgModule({ imports: [ // ... DxTextBoxModule ], // ... })
React
import React from 'react'; import { TextBox } from 'devextreme-react/text-box'; class App extends React.Component { render() { return ( <TextBox mode="password" /> ); } } export default App;
See Also
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.