Open niravjadatiya opened 7 years ago
Same issue please help us
I followed following steps to use AnyPicker in ionic3 project :
Created a project using ionic blank template
In assets folder, created "js" folder and added "jquery-1.11.0.min.js" and "anypicker.js" files.
In assets folder, created "css" folder and added "anypicker-all.css" file.
Added following code in "src/index.html" file ( Before main.js file ) -
<script type="text/javascript" src="assets/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="assets/js/anypicker.js"></script>
<link href="assets/css/anypicker-all.css" rel="stylesheet">
<p>Date : </p>
<input type="text" id="ip-de" readonly>
In "src/pages/home/home.ts" file -
Added following code after import statements
declare var $:any;
Added following code inside constructor function -
$(document).ready(function()
{
$("#ip-de").AnyPicker(
{
mode: "datetime",
dateTimeFormat: "MMMM d, yyyy"
});
});
Tried in ionic version : 3.3.0
hello, currently i am working on ionic 2 project and i want to use this lib please guide me proper way for installation