Strongest password policy
This commit is contained in:
committed by
Jose Alberto Hernandez
parent
9b17a6c4f8
commit
8fdf8fb10c
@@ -0,0 +1,37 @@
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'mifosx-long-text',
|
||||
templateUrl: './long-text.component.html',
|
||||
styleUrls: ['./long-text.component.scss']
|
||||
})
|
||||
export class LongTextComponent implements OnInit {
|
||||
@Input() textValue: string;
|
||||
@Input() chars = 30;
|
||||
|
||||
iconVisible = false;
|
||||
displayL = false;
|
||||
displayR = true;
|
||||
emptyValue = false;
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit(): void {
|
||||
this.emptyValue = (!this.textValue || this.textValue === '');
|
||||
}
|
||||
|
||||
isLongValue(): boolean {
|
||||
if (this.textValue == null) {
|
||||
return false;
|
||||
}
|
||||
return (this.textValue.length > 25);
|
||||
}
|
||||
|
||||
mouseEnter() {
|
||||
this.iconVisible = true;
|
||||
}
|
||||
|
||||
mouseLeave() {
|
||||
this.iconVisible = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user