Name | Type | Default |
disabled
|
Boolean
|
false
|
Sets or gets the disabled property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput
[width]="250" [height]="25" [disabled]="true">
</jqxMaskedInput>
`
})
export class AppComponent {
}
|
height
|
String | Number
|
null
|
Sets or gets the height property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput
[width]="250" [height]="25">
</jqxMaskedInput>
`
})
export class AppComponent {
}
|
mask
|
String
|
'#####'
|
Sets or gets the mask property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput
[width]="250" [height]="25" [mask]="###-##-####">
</jqxMaskedInput>
`
})
export class AppComponent {
}
|
promptChar
|
String | Number
|
"_"
|
Sets or gets the promptChar property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput
[width]="250" [height]="25" [promptChar]="#">
</jqxMaskedInput>
`
})
export class AppComponent {
}
|
readOnly
|
Boolean
|
false
|
Sets or gets the readOnly property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput
[width]="250" [height]="25" [readOnly]="true">
</jqxMaskedInput>
`
})
export class AppComponent {
}
|
rtl
|
Boolean
|
false
|
Sets or gets the rtl property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput
[width]="250" [height]="25" [rtl]="true">
</jqxMaskedInput>
`
})
export class AppComponent {
}
|
theme
|
String
|
''
|
Sets or gets the theme property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput
[width]="250" [height]="25" [theme]="'energyblue'">
</jqxMaskedInput>
`
})
export class AppComponent {
}
|
textAlign
|
enum:MaskedInputTextAlign
|
left
|
enum MaskedInputTextAlign { left, right } Sets or gets the textAlign property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput
[width]="250" [height]="25" [textAlign]="'right'">
</jqxMaskedInput>
`
})
export class AppComponent {
}
|
value
|
String | Number
|
null
|
Sets or gets the value property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput
[width]="250" [height]="25" [value]="300">
</jqxMaskedInput>
`
})
export class AppComponent {
}
|
width
|
String | Number
|
null
|
Sets or gets the width property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput
[width]="250" [height]="25">
</jqxMaskedInput>
`
})
export class AppComponent {
}
|
|
change
|
Event
|
|
This event is triggered when the value is changed and the control's focus is lost.
Code examples
Bind to the change event of jqxMaskedInput.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput (onChange)="Change($event)"
[width]="250" [height]="25">
</jqxMaskedInput>
`
})
export class AppComponent {
Change(event: any): void
{
// Do Something
}
}
|
valueChanged
|
Event
|
|
This event is triggered when the value is changed.
Code examples
Bind to the valueChanged event of jqxMaskedInput.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput (onValueChanged)="ValueChanged($event)"
[width]="250" [height]="25">
</jqxMaskedInput>
`
})
export class AppComponent {
ValueChanged(event: any): void
{
// Do Something
}
}
|
|
Name | Return Type | Arguments |
clear
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput
[width]="250" [height]="25">
</jqxMaskedInput>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myMaskedInput') myMaskedInput: jqxMaskedInputComponent;
ngAfterViewInit(): void
{
this.myMaskedInput.clear();
}
}
|
destroy
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput
[width]="250" [height]="25">
</jqxMaskedInput>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myMaskedInput') myMaskedInput: jqxMaskedInputComponent;
ngAfterViewInit(): void
{
this.myMaskedInput.destroy();
}
}
|
focus
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput
[width]="250" [height]="25">
</jqxMaskedInput>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myMaskedInput') myMaskedInput: jqxMaskedInputComponent;
ngAfterViewInit(): void
{
this.myMaskedInput.focus();
}
}
|
val
|
String
|
value: String | Number
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxMaskedInput #myMaskedInput
[width]="250" [height]="25">
</jqxMaskedInput>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myMaskedInput') myMaskedInput: jqxMaskedInputComponent;
ngAfterViewInit(): void
{
let value = this.myMaskedInput.val();
}
}
|