| Name | Type | Default |
|
disabled
# |
Boolean
|
false
|
Sets or gets the disabled property.
import { Component } from '@angular/core';
import { jqxMaskedInputModule } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: `
<jqxMaskedInput #myMaskedInput [width]="250" [height]="25" [disabled]="true">
</jqxMaskedInput>
`
})
export class App {}
|
|
height
# |
String | Number
|
null
|
Sets or gets the height property.
import { Component } from '@angular/core';
import { jqxMaskedInputModule } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: ` <jqxMaskedInput #myMaskedInput [width]="250" [height]="25"> </jqxMaskedInput> `
})
export class App {}
|
|
mask
# |
String
|
'#####'
|
Sets or gets the mask property.
import { Component } from '@angular/core';
import { jqxMaskedInputModule } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: `
<jqxMaskedInput #myMaskedInput [width]="250" [height]="25" [mask]="###-##-####">
</jqxMaskedInput>
`
})
export class App {}
|
|
promptChar
# |
String | Number
|
"_"
|
Sets or gets the promptChar property.
import { Component } from '@angular/core';
import { jqxMaskedInputModule } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: `
<jqxMaskedInput #myMaskedInput [width]="250" [height]="25" [promptChar]="#">
</jqxMaskedInput>
`
})
export class App {}
|
|
readOnly
# |
Boolean
|
false
|
Sets or gets the readOnly property.
import { Component } from '@angular/core';
import { jqxMaskedInputModule } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: `
<jqxMaskedInput #myMaskedInput [width]="250" [height]="25" [readOnly]="true">
</jqxMaskedInput>
`
})
export class App {}
|
|
rtl
# |
Boolean
|
false
|
Sets or gets the rtl property.
import { Component } from '@angular/core';
import { jqxMaskedInputModule } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: `
<jqxMaskedInput #myMaskedInput [width]="250" [height]="25" [rtl]="true"> </jqxMaskedInput>
`
})
export class App {}
|
|
theme
# |
String
|
''
|
Sets or gets the theme property.
import { Component } from '@angular/core';
import { jqxMaskedInputModule } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: `
<jqxMaskedInput #myMaskedInput [width]="250" [height]="25" [theme]="'energyblue'">
</jqxMaskedInput>
`
})
export class App {}
|
|
textAlign
# |
enum:MaskedInputTextAlign
|
left
|
enum MaskedInputTextAlign { left, right } Sets or gets the textAlign property.
import { Component } from '@angular/core';
import { jqxMaskedInputModule } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: `
<jqxMaskedInput #myMaskedInput [width]="250" [height]="25" [textAlign]="'right'">
</jqxMaskedInput>
`
})
export class App {}
|
|
value
# |
String | Number
|
null
|
Sets or gets the value property.
import { Component } from '@angular/core';
import { jqxMaskedInputModule } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: `
<jqxMaskedInput #myMaskedInput [width]="250" [height]="25" [value]="300"> </jqxMaskedInput>
`
})
export class App {}
|
|
width
# |
String | Number
|
null
|
Sets or gets the width property.
import { Component } from '@angular/core';
import { jqxMaskedInputModule } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: ` <jqxMaskedInput #myMaskedInput [width]="250" [height]="25"> </jqxMaskedInput> `
})
export class App {}
|
|
|
|
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';
import { jqxMaskedInputModule } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: `
<jqxMaskedInput #myMaskedInput (onChange)="Change($event)" [width]="250" [height]="25">
</jqxMaskedInput>
`
})
export class App {
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';
import { jqxMaskedInputModule } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: `
<jqxMaskedInput
#myMaskedInput
(onValueChanged)="ValueChanged($event)"
[width]="250"
[height]="25"
>
</jqxMaskedInput>
`
})
export class App {
ValueChanged(event: any): void {
// Do Something
}
}
|
|
|
| Name | Return Type | Arguments |
|
clear
# |
Void
|
None
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxMaskedInputModule, jqxMaskedInputComponent } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: ` <jqxMaskedInput #myMaskedInput [width]="250" [height]="25"> </jqxMaskedInput> `
})
export class App implements AfterViewInit {
readonly myMaskedInput = viewChild.required<jqxMaskedInputComponent>('myMaskedInput');
ngAfterViewInit(): void {
this.myMaskedInput().clear();
}
}
|
|
destroy
# |
Void
|
None
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxMaskedInputModule, jqxMaskedInputComponent } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: ` <jqxMaskedInput #myMaskedInput [width]="250" [height]="25"> </jqxMaskedInput> `
})
export class App implements AfterViewInit {
readonly myMaskedInput = viewChild.required<jqxMaskedInputComponent>('myMaskedInput');
ngAfterViewInit(): void {
this.myMaskedInput().destroy();
}
}
|
|
focus
# |
Void
|
None
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxMaskedInputModule, jqxMaskedInputComponent } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: ` <jqxMaskedInput #myMaskedInput [width]="250" [height]="25"> </jqxMaskedInput> `
})
export class App implements AfterViewInit {
readonly myMaskedInput = viewChild.required<jqxMaskedInputComponent>('myMaskedInput');
ngAfterViewInit(): void {
this.myMaskedInput().focus();
}
}
|
|
val
# |
String
|
value: String | Number
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxMaskedInputModule, jqxMaskedInputComponent } from 'jqwidgets-ng/jqxmaskedinput';
@Component({
selector: 'app-root',
imports: [jqxMaskedInputModule],
template: ` <jqxMaskedInput #myMaskedInput [width]="250" [height]="25"> </jqxMaskedInput> `
})
export class App implements AfterViewInit {
readonly myMaskedInput = viewChild.required<jqxMaskedInputComponent>('myMaskedInput');
ngAfterViewInit(): void {
let value = this.myMaskedInput().val();
}
}
|