You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @cakuki I am getting class not found error in ionic 3. I am testing on android device. This is my code -
HTML <div class="date-label" (click)="show()">No date selected</div> <div class="inline-datepicker" ></div>
.ts
`declare var cordova:any;
this.element = (document.querySelector('.inline-datepicker') as HTMLDivElement);
show(){
console.log("Element", this.element)
let options = {
'mode': cordova.plugins.DatePicker.Mode.DATE,
'date': new Date(),
};
let success = (data)=> {
alert('success');
}
let error = (data)=> {
console.log("err",data);
}
cordova.plugins.DatePicker.create(this.element, options,success, error);
cordova.plugins.DatePicker.show(this.element, options,success, error);}
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
Hi @cakuki I am getting class not found error in ionic 3. I am testing on android device. This is my code -
HTML
<div class="date-label" (click)="show()">No date selected</div> <div class="inline-datepicker" ></div>
.ts
`declare var cordova:any;
this.element = (document.querySelector('.inline-datepicker') as HTMLDivElement);
show(){
console.log("Element", this.element)
let options = {
'mode': cordova.plugins.DatePicker.Mode.DATE,
'date': new Date(),
};
let success = (data)=> {
alert('success');
}
let error = (data)=> {
console.log("err",data);
}
cordova.plugins.DatePicker.create(this.element, options,success, error);
cordova.plugins.DatePicker.show(this.element, options,success, error);
}
What am I doing wrong?
The text was updated successfully, but these errors were encountered: