Revision 44826
Added by Argiro Kokogiannaki over 7 years ago
searchFilter.component.ts | ||
---|---|---|
63 | 63 |
|
64 | 64 |
@Input() filter:Filter; |
65 | 65 |
@Input() showResultCount:boolean = true; |
66 |
private showAll:boolean = false;
|
|
67 |
private _maxCharacters:number =30;
|
|
66 |
public showAll:boolean = false;
|
|
67 |
public _maxCharacters:number =30;
|
|
68 | 68 |
|
69 | 69 |
|
70 | 70 |
constructor () { |
... | ... | |
73 | 73 |
ngOnInit() { |
74 | 74 |
|
75 | 75 |
} |
76 |
private _formatTitle(title,length){
|
|
76 |
public _formatTitle(title,length){
|
|
77 | 77 |
return (((title+" ("+length+")").length >this._maxCharacters)?(title.substring(0,(this._maxCharacters - (" ("+length+")").length - ('...').length))+"..."):title+" ("+length+")") |
78 | 78 |
} |
79 | 79 |
private _formatName(value){ |
Also available in: Unified diff
Make class fields public for ngfactory | use new refine fields in order to display names - not