BoldSign®Effortlessly integrate e-signatures into your app with the BoldSign® API. Create a sandbox account!
[sample.html]
<div align="center">
<div id="datepick" ej-datepicker [(displayInline)]="inline" #datepick [(ngModel)]="value"></div>
</div>
<div align="center">
<br><br>
<button id="btnOpen" type="button" ej-button (click)="onClick($event)" text="click to navigate the value" ></button>
</div>
[sample.ts]
value: object;
inline: boolean;
@ViewChild('datepick') datepick: any; // instance variable of the rendered datepicker control
constructor() {
this.value = new Date();
this.inline = true;
}
//Button click event handler to open the ejDialog
onClick(event: any) {
// setting the value through setmodel by using instance variable
this.datepick.widget.option('value',new Date("20 Jan 2019"));
} |