| Name | Type | Default |
|
disabled
# |
Boolean
|
false
|
Sets or gets the disabled property.
import { Component } from '@angular/core';
import { jqxPasswordInputModule } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput #myPasswordInput [width]="300" [height]="21" [disabled]="true">
</jqxPasswordInput>
`
})
export class App {}
|
|
height
# |
String | Number
|
"auto"
|
Sets or gets the height property.
import { Component } from '@angular/core';
import { jqxPasswordInputModule } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput #myPasswordInput [width]="300" [height]="21"> </jqxPasswordInput>
`
})
export class App {}
|
|
localization
# |
PasswordInputLocalization
|
{ passwordStrengthString: 'Password strength', tooShort: 'Too short', weak: 'Weak', fair: 'Fair', good: 'Good', strong: 'Strong' }
|
interface PasswordInputLocalization { passwordStrengthString?: String; tooShort?: String; weak?: String; fair?: String; good?: String; strong?: String; } Sets or gets the localization property.
import { Component } from '@angular/core';
import { jqxPasswordInputModule } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput
#myPasswordInput
[width]="300"
[height]="21"
[localization]="localization"
>
</jqxPasswordInput>
`
})
export class App {}
|
|
maxLength
# |
String | Number
|
null
|
Sets or gets the maxLength property.
import { Component } from '@angular/core';
import { jqxPasswordInputModule } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput #myPasswordInput [width]="300" [height]="21" [maxLength]="7">
</jqxPasswordInput>
`
})
export class App {}
|
|
placeHolder
# |
String | Number
|
null
|
Sets or gets the placeHolder property.
import { Component } from '@angular/core';
import { jqxPasswordInputModule } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput
#myPasswordInput
[width]="300"
[height]="21"
[placeHolder]="'Enter a Password'"
>
</jqxPasswordInput>
`
})
export class App {}
|
|
passwordStrength
# |
(password:String | Number, characters:Any, defaultStrength:String) => String
|
null
|
Sets or gets the passwordStrength property.
import { Component } from '@angular/core';
import { jqxPasswordInputModule } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput
#myPasswordInput
[width]="300"
[height]="21"
[passwordStrength]="passwordStrength"
>
</jqxPasswordInput>
`
})
export class App {}
|
|
rtl
# |
Boolean
|
false
|
Sets or gets the rtl property.
import { Component } from '@angular/core';
import { jqxPasswordInputModule } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput #myPasswordInput [width]="300" [height]="21" [rtl]="true">
</jqxPasswordInput>
`
})
export class App {}
|
|
strengthColors
# |
PasswordInputStrengthColors
|
{ tooShort: 'rgb(170, 0, 51)', weak: 'rgb(170, 0, 51)', fair: 'rgb(255, 204, 51)', good: 'rgb(45, 152, 243)', strong: 'rgb(118, 194, 97)' }
|
interface PasswordInputStrengthColors { tooShort?: String; weak?: String; fair?: String; good?: String; strong?: String; } Sets or gets the strengthColors property.
import { Component } from '@angular/core';
import { jqxPasswordInputModule } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput #myPasswordInput
[width]="300" [height]="21" [showStrength]="true" [strengthColors]="{ tooShort: "Red", weak: "Red", fair: "Yellow", good: "Blue", strong: "Green" }"
>
</jqxPasswordInput>
`
})
export class App {}
|
|
showStrength
# |
Boolean
|
true
|
Sets or gets the showStrength property.
import { Component } from '@angular/core';
import { jqxPasswordInputModule } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput #myPasswordInput [width]="300" [height]="21" [showStrength]="true">
</jqxPasswordInput>
`
})
export class App {}
|
|
showStrengthPosition
# |
enum:PasswordInputShowStrengthPosition
|
"right"
|
enum PasswordInputShowStrengthPosition { left, right, top, bottom } Sets or gets the showStrengthPosition property.
import { Component } from '@angular/core';
import { jqxPasswordInputModule } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput
#myPasswordInput
[width]="300"
[height]="21"
[showStrength]="true"
[showStrengthPosition]="'left'"
>
</jqxPasswordInput>
`
})
export class App {}
|
|
strengthTypeRenderer
# |
(password:String | Number, characters:Any, defaultStrength:String) => String
|
null
|
Sets or gets the strengthTypeRenderer property.
import { Component } from '@angular/core';
import { jqxPasswordInputModule } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput
#myPasswordInput
[width]="300"
[height]="21"
[strengthTypeRenderer]="strengthTypeRenderer"
>
</jqxPasswordInput>
`
})
export class App {}
|
|
showPasswordIcon
# |
Boolean
|
true
|
Sets or gets the showPasswordIcon property.
import { Component } from '@angular/core';
import { jqxPasswordInputModule } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput #myPasswordInput [width]="300" [height]="21" [showPasswordIcon]="false">
</jqxPasswordInput>
`
})
export class App {}
|
|
theme
# |
String
|
''
|
Sets or gets the theme property.
import { Component } from '@angular/core';
import { jqxPasswordInputModule } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput #myPasswordInput [width]="300" [height]="21" [theme]="'energyblue'">
</jqxPasswordInput>
`
})
export class App {}
|
|
width
# |
String | Number
|
"auto"
|
Sets or gets the width property.
import { Component } from '@angular/core';
import { jqxPasswordInputModule } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput #myPasswordInput [width]="300" [height]="21"> </jqxPasswordInput>
`
})
export class App {}
|
|
|
|
change
# |
Event
|
|
This event is triggered when the value in the input is changed.
Code examples #
Bind to the change event of jqxPasswordInput.
import { Component } from '@angular/core';
import { jqxPasswordInputModule } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput #myPasswordInput (onChange)="Change($event)" [width]="300" [height]="21">
</jqxPasswordInput>
`
})
export class App {
Change(event: any): void {
// Do Something
}
}
|
|
|
| Name | Return Type | Arguments |
|
render
# |
Void
|
None
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxPasswordInputModule, jqxPasswordInputComponent } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput #myPasswordInput [width]="300" [height]="21"> </jqxPasswordInput>
`
})
export class App implements AfterViewInit {
readonly myPasswordInput = viewChild.required<jqxPasswordInputComponent>('myPasswordInput');
ngAfterViewInit(): void {
this.myPasswordInput().render();
}
}
|
|
refresh
# |
Void
|
None
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxPasswordInputModule, jqxPasswordInputComponent } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput #myPasswordInput [width]="300" [height]="21"> </jqxPasswordInput>
`
})
export class App implements AfterViewInit {
readonly myPasswordInput = viewChild.required<jqxPasswordInputComponent>('myPasswordInput');
ngAfterViewInit(): void {
this.myPasswordInput().refresh();
}
}
|
|
val
# |
String
|
value: String
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxPasswordInputModule, jqxPasswordInputComponent } from 'jqwidgets-ng/jqxpasswordinput';
@Component({
selector: 'app-root',
imports: [jqxPasswordInputModule],
template: `
<jqxPasswordInput #myPasswordInput [width]="300" [height]="21"> </jqxPasswordInput>
`
})
export class App implements AfterViewInit {
readonly myPasswordInput = viewChild.required<jqxPasswordInputComponent>('myPasswordInput');
ngAfterViewInit(): void {
let value = this.myPasswordInput().val();
}
}
|