timepicker

Multiple dynamic instances of bootstrap-timepicker

情到浓时终转凉″ 提交于 2020-01-16 19:01:06
问题 I am using the bootstrap-timepicker for rails and I am using it in a form helper. It works very well if there is only one instance of it. Here is a code fragment: <div class="bootstrap-timepicker input-append span2 offset0"> <%= f.label :to_hour %> <input id="timepicker1" type="text" class="input-small" value='12:15 PM'> <span class="add-on"><i class="icon-time"></i></span> </div> However it doesn't work when there are multiple instances of it in a single page. Essentially I have multiple

jSpinner time picker model editing

耗尽温柔 提交于 2020-01-13 03:45:12
问题 I have jSpinner using for time picking. Problem 1: User can edited hour minutes and second seperator ":" and can write extra digits like "123" Problem 2: model get always current time. I want "00:00:00" When i write this in code instead "hh:mm:ss" user can't edit the values. My Code is; spinner1 = new javax.swing.JSpinner(); SpinnerDateModel spinnermodel = new SpinnerDateModel(); spinnermodel.setCalendarField(Calendar.MINUTE); spinner1 .setModel(spinnermodel); spinner1 .setEditor(new JSpinner

Layout challenge when using native date/time picker on Android 5.1.x

为君一笑 提交于 2020-01-06 18:55:11
问题 I have a kind of "catch 22" situation here. I am using Appcelerator Titatium SDK 5.1.2. On Android 5.1.x with a very small screen size I cannot find a solution to correctly select date and time using the native pickers. I need to add a <ScrollView> to allow the user to move the contents to make the picker entirely visible. However, when doing this on Android 5.1.x the user cannot scroll back to previous months in the date picker.... Changing it to a <View> control makes the date picker behave

How to edit the the time picker of material-ui-time-picker?

蓝咒 提交于 2020-01-04 13:36:04
问题 I have a material-ui-time-picker and I want to control this input, it works well, but I want to edit the time input from the keyboard and not when I click the input on the clock. My code is : import React, { Component } from "react"; import { TimePicker } from "material-ui-time-picker"; import { Input as Time, Dialog as Clock } from "@material-ui/core"; openDialog = () => this.setState({ isOpen: true }); closeDialog = () => this.setState({ isOpen: false }); handleDialogTimeChange = newValue =

How to edit the the time picker of material-ui-time-picker?

拥有回忆 提交于 2020-01-04 13:35:56
问题 I have a material-ui-time-picker and I want to control this input, it works well, but I want to edit the time input from the keyboard and not when I click the input on the clock. My code is : import React, { Component } from "react"; import { TimePicker } from "material-ui-time-picker"; import { Input as Time, Dialog as Clock } from "@material-ui/core"; openDialog = () => this.setState({ isOpen: true }); closeDialog = () => this.setState({ isOpen: false }); handleDialogTimeChange = newValue =

customize the style of rc-time-picker

被刻印的时光 ゝ 提交于 2020-01-01 19:28:12
问题 I am using rc-time-picker package for my project, but I have problem with customizing the style of pop-up of my time picker component. Here is the screenshot of my component: Firstly, I need to change the background-color of time item in the time li from light grey (in the screenshot) to #edeffe when time is hovered and selected . The following is my code: import React from "react"; import TimePicker from "rc-time-picker"; import "rc-time-picker/assets/index.css"; import styled from 'styled

OnTimeSet called also when dismissing TimePickerDialog

北城余情 提交于 2019-12-29 05:41:06
问题 Today I was trying to use the TimePickerDialog but I noticed a couple of flaws. OnTimeSet is called also when the dialog is dismissed (by clicking outside, for example) OnTimeSet is called twice when the user taps the "Done" button The API I'm using is 18. Anyone else has experienced these problems? How did you solve them? 回答1: Faced the exact same issue today. Could not figure out why this was happening, but found a simple solution: Method onTimeSet() is called once when dialog is dismissed

how to set AM/PM in TimePickerDialog?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 18:04:16
问题 I have create simple TimePickerDialog they are perfectly work but if i have set current time in time picker then problem to set AM and PM. let see.... If Current time is : 5:39 PM this is my code.. Calendar cal = Calendar.getInstance(); int mHour = cal.get(Calendar.HOUR_OF_DAY); int mMinute = cal.get(Calendar.MINUTE); int mTimeSet=cal.get(Calendar.AM_PM); TimePickerDialog tpd = new TimePickerDialog(this,new TimePickerDialog.OnTimeSetListener() { @Override public void onTimeSet(TimePicker view

how to set AM/PM in TimePickerDialog?

怎甘沉沦 提交于 2019-12-25 18:03:00
问题 I have create simple TimePickerDialog they are perfectly work but if i have set current time in time picker then problem to set AM and PM. let see.... If Current time is : 5:39 PM this is my code.. Calendar cal = Calendar.getInstance(); int mHour = cal.get(Calendar.HOUR_OF_DAY); int mMinute = cal.get(Calendar.MINUTE); int mTimeSet=cal.get(Calendar.AM_PM); TimePickerDialog tpd = new TimePickerDialog(this,new TimePickerDialog.OnTimeSetListener() { @Override public void onTimeSet(TimePicker view

How do I store TimePicker Data in my simple record keeping app?

北战南征 提交于 2019-12-25 06:24:09
问题 I've created a simple record keeping application using various resources around the internet. I'm able to successfully store text data - however when I attempt to incorporate a TimePicker I end up crashing my entire app. Any input on how this can be implemented (as well as any code examples) are greatly appreciated! DATA INPUT XML: <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout