All Projects → rajeshwarpatlolla → Ionic Timepicker

rajeshwarpatlolla / Ionic Timepicker

Licence: mit
'ionic-timepicker' bower component for ionic framework applications

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Ionic Timepicker

ionic-modal-custom-transitions
Add Custom Transitions to Ionic Modals.
Stars: ✭ 22 (-92.52%)
Mutual labels:  ionic
Vscode Cordova
A Visual Studio Code extension providing intellisense, debug, and build support for Cordova and Ionic projects.
Stars: ✭ 267 (-9.18%)
Mutual labels:  ionic
Angularx Qrcode
Angular4/5/6/7/8/9/10/11 QRCode generator component library for QR Codes (Quick Response) with AOT support based on node-qrcode
Stars: ✭ 281 (-4.42%)
Mutual labels:  ionic
ionic-multi-camera
Take multiple photos one after another
Stars: ✭ 12 (-95.92%)
Mutual labels:  ionic
1973
1973 - Progressive Web Apps
Stars: ✭ 14 (-95.24%)
Mutual labels:  ionic
Cupertino Pane
🎉📱Multi-functional panes and boards for next generation progressive applications
Stars: ✭ 267 (-9.18%)
Mutual labels:  ionic
ngrx-demo-apps
Demo to share module (ngrx state and reducers) between Ionic and Angular apps
Stars: ✭ 39 (-86.73%)
Mutual labels:  ionic
Iosproject
IOS综合项目,完善的框架,路由模块化设计,集成科大讯飞SDK方便iOS基本输入控件实现语音辅助输入,UI效果参照京东APP,JS与OC交互,ionic跨平台开发,MQTT 协议,即时通讯协议,视屏播放,跑马灯效果 仿美团地图定位,城市收索, 友盟分享,基础动画 增加FCUIID帮助类,引导页功能模块,照片上传 ,UIView自定义导航栏,文件下载,Masonry 案例,fmdb,数据库,sqlite,百度地图,二维码,照片上传,照片上传有进度,列表倒计时,H5和原生交互,自定义各种弹框,常见表单类型,人脸识别,列表加载图片,列表拖拽,日历操作,导航条渐变,核心动画,动画特效等等
Stars: ✭ 291 (-1.02%)
Mutual labels:  ionic
Ionic Ocr Example
📷 Simple Ionic app using ocrad.js
Stars: ✭ 263 (-10.54%)
Mutual labels:  ionic
Wilearning
Multiparty meeting&e-learning using mediasoup, webrtc ,angular and ionic with powerful whiteboard support
Stars: ✭ 280 (-4.76%)
Mutual labels:  ionic
ionic-angular-cart
📋 Ionic 5 app to collect items in a shopping basket, tutorial code from Simon Grimm at the Ionic Academy
Stars: ✭ 14 (-95.24%)
Mutual labels:  ionic
lowcode
React Lowcode - prototype, develop and maintain internal apps easier
Stars: ✭ 32 (-89.12%)
Mutual labels:  ionic
Ionic Vue
Vuejs integration for Ionic versions 4 and 5
Stars: ✭ 275 (-6.46%)
Mutual labels:  ionic
ionic-parallax
Parallax Module for Ionic Framework 2+
Stars: ✭ 10 (-96.6%)
Mutual labels:  ionic
Cordova Plugin Nativestorage
Cordova plugin: Native storage of variables in Android, iOS and Windows
Stars: ✭ 285 (-3.06%)
Mutual labels:  ionic
ng-ionic-connectedanim
Connected Animation (Shared Element Transition) for Ionic Framework.
Stars: ✭ 12 (-95.92%)
Mutual labels:  ionic
Awesome Cordova
📱 A curated list of amazingly awesome Cordova libraries, resources and shiny things.
Stars: ✭ 269 (-8.5%)
Mutual labels:  ionic
Alan Sdk Ionic
Alan AI Ionic SDK adds a voice assistant or chatbot to your app. Supports React, Angular.
Stars: ✭ 287 (-2.38%)
Mutual labels:  ionic
Cordova Plugin App Update
App updater for Cordova/PhoneGap
Stars: ✭ 290 (-1.36%)
Mutual labels:  ionic
Ionic Environment Variables
Easy to use environment variables for Ionic3!
Stars: ✭ 278 (-5.44%)
Mutual labels:  ionic

bitHound Score

##Introduction:

This is an ionic-timepicker bower component, which can be used in any Ionic framework's application. No additional plugins are required for this component. This plugin is completely open source. Please rate this plugin @ Ionic Market

From version 0.5.0, this component has got so many new features and the way you should use is different from the older versions of this component. If you wish to see the documentation for the previous versions of this component, please check the previous releases

View Demo

##Prerequisites.

  • node.js, npm
  • ionic
  • bower
  • gulp

##How to use:

  1. In your project folder, please install this plugin using bower

bower install ionic-timepicker --save

This will install the latest version of ionic-timepicker. If you wish to install any specific version(eg : 0.4.0) then

bower install ionic-timepicker#0.4.0 --save

  1. Specify the path of ionic-timepicker.bundle.min.js in your index.html file.
<!-- path to ionic -->
<script src="lib/ionic-timepicker/dist/ionic-timepicker.bundle.min.js"></script>
  1. In your application's main module, inject the dependency ionic-timepicker, in order to work with this plugin
angular.module('mainModuleName', ['ionic', 'ionic-timepicker']){
//
}
  1. You can configure this time picker at application level in the config method using the ionicTimePicker provider. Your config method may look like this if you wish to setup the configuration. But this is not mandatory step.
.config(function (ionicTimePickerProvider) {
    var timePickerObj = {
      inputTime: (((new Date()).getHours() * 60 * 60) + ((new Date()).getMinutes() * 60)),
      format: 12,
      step: 15,
      setLabel: 'Set',
      closeLabel: 'Close'
    };
    ionicTimePickerProvider.configTimePicker(timePickerObj);
  })

In the above code i am not configuring all the properties, but you can configure as many properties as you can.

The properties you can configure are as follows.

a) inputTime(Optional) : This is the input epoch time which we can pass to the component. You can give any valid epoch time. Default value is (((new Date()).getHours() * 60 * 60) + ((new Date()).getMinutes() * 60)).

b) format(Optional) : This takes two values 12 or 24. If we give 12 as the value, then it will be 12 format time picker or else if you give 24 as the value, then it will be 24 hour format time picker. Default value is 12.

c) step(Optional) : This is the value which will be used to increment/decrement the values of the minutes. You can give any value like 10/15/20/30. Default value is 15.

d) setLabel(Optional) : The label for Set button. Default value is Set

e) closeLabel(Optional) : The label for Close button. Default value is Close

  1. Inject ionicTimePicker in the controller, where you wish to use this component. Then using the below method you can call the timepicker.
.controller('HomeCtrl', function ($scope, ionicTimePicker) {

  var ipObj1 = {
    callback: function (val) {      //Mandatory
      if (typeof (val) === 'undefined') {
        console.log('Time not selected');
      } else {
        var selectedTime = new Date(val * 1000);
        console.log('Selected epoch is : ', val, 'and the time is ', selectedTime.getUTCHours(), 'H :', selectedTime.getUTCMinutes(), 'M');
      }
    },
    inputTime: 50400,   //Optional
    format: 12,         //Optional
    step: 15,           //Optional
    setLabel: 'Set2'    //Optional
  };
  
  ionicTimePicker.openTimePicker(ipObj1);
};

Apart from the config method, you can re configure all options in the controller also. If you again set any of the properties, they will be overridden by the values mentioned in the controller. This will be useful if there are multiple time pickers in the app, which has different properties.

In all the above steps, only mandatory property is the callback where you will get the selected time value.

##Screen Shots:

Once you are successfully done with the above steps, you should be able to use this plugin.

The first screen shot shows the popup and the second shows the modal of this plugin.

iOS :

Android :

##CSS Classes:

###popup

1) heading

2) time_picker_arrows

3) time_picker_box_text

4) time_picker_colon

5) button_set

6) button_close

You can use the below css class as the main class to customise popup.
####ionic_timepicker_popup

The css class names for the buttons are as follows

a) For Set button the class name is button_set

b) For Close button the class name is button_close

##Versions:

1) v0.1.0

The whole time picker functionality has been implemented, and can be installed with

bower install ionic-timepicker --save

2) v0.1.1

Directive name has been modified.

3) v0.1.2

If the minutes and hours are less than 10, then 0 will be prepended to the value of minutes/hours.

4) v0.2.0

Callback function added to get the selected time in to the controller.

5) v0.2.1

Class names modified as per this bug.

6) v0.3.0

Features added to customize this component.

7) v0.4.0

Bug fixes : #48, #53, #51

PR : #54,

Few additional enhancements added.

8) v0.5.0

Features

a) You can configure the ionic-timepicker from the config method.

9) v0.5.1

BugFix : #75

10) v0.6.0

BugFixes : #80, #86

##License: MIT

##Contact: Gmail : [email protected]

Github : https://github.com/rajeshwarpatlolla

Twitter : https://twitter.com/rajeshwar_9032

Facebook : https://www.facebook.com/rajeshwarpatlolla

Paypal : [email protected]

Comment or Rate it : http://market.ionic.io/plugins/ionictimepicker

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].