TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
albert albert
NA
524
0
Typescript , Textbox
Jul 16 2014 1:57 AM
Hi everybody,
I am using TypeScript:
View:
[code]
@* Plaats *@
<!-- ko foreach: woonplaats -->
<br />
<br />
<div class="form-group" data-bind="validationHighlight: woonplaats">
<label for="woonplaats" class="control-label col-sm-4 col-md-3 col-xl-2">
<!-- ko if: $index() === 0 -->
Woonplaats
</label>
<div class="col-sm-8 col-md-3 col-xl-4">
<input id="woonplaats" class="form-control" data-bind="value: woonplaats, disable:true" />
<!-- /ko -->
</div>
</div>
<!-- /ko -->
[/code]
and TypeScript:
[code]
private getPlaatsnaamPatient(plaatsnaam:string):string<PatiendDossierOverViewModel> {
return plaatsnaam.toString.(plaatsnaam => new PatiendDossierOverViewModel(plaatsnaam));
}
export class PatiendDossierOverViewModel {
constructor(patientData) {
this.plaatsnaam = ko.observable(patientData.Woonplaats)
}
public plaatsnaam: KnockoutObservable<string>;
}
[/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
Reply
Answers (
0
)
how to send data to server from client side
Checkbox