Hi everybody,
I am using TypeScript:
View:
[code]
@* Plaats *@
Woonplaats
[/code]
and TypeScript:
[code]
private getPlaatsnaamPatient(plaatsnaam:string):string {
return plaatsnaam.toString.(plaatsnaam => new PatiendDossierOverViewModel(plaatsnaam));
}
export class PatiendDossierOverViewModel {
constructor(patientData) {
this.plaatsnaam = ko.observable(patientData.Woonplaats)
}
public plaatsnaam: KnockoutObservable;
}
[/code]
What I want to achieve :
If there is a value in the textbox then the textbox is showing. But if there is no value then the textbox has to be hidden.
Thank you
Replies
Know the answer? Post it — somebody with the same question will find it here.