Angular TextBox - Task-Specific Modes

Depending on the value the TextBox should hold, specify the UI component mode property. When set to "email", "tel" or "url", this property affects the set of keyboard buttons shown on a mobile device when the UI component gets focused. When set to "search" or "password", the mode property impacts the visual representation of the UI component. For example, the following code hides input characters behind asterisks.

HTML
TypeScript
  • <dx-text-box
  • mode="password">
  • </dx-text-box>
  • import { DxTextBoxModule } from "devextreme-angular";
  • // ...
  • export class AppComponent {
  • // ...
  • }
  • @NgModule({
  • imports: [
  • // ...
  • DxTextBoxModule
  • ],
  • // ...
  • })
See Also