timepicker 订阅
timepicker 展开全文
timepicker
信息
操作系统
未知
开发语言
开源协议
未知
timepicker
This is a fairly simple jQuery plugin that replaces a single text input with a set of pulldown menus to select hour, minute, and am/pm. Minute selections are for quarter hours (:00, :15, :30, :45). If the original input contains a time value in the format "hh:mmpp" (i.e., "06:30pm"), it will set the pulldown menus to the correct corresponding values. Otherwise it will default to the current time. Minute values are always rounded up to the next quarter hour. The original input is updated whenever any of the pulldown menus change, so there is no need to change anything else in your HTML form. The plugin can be used safely to convert multiple inputs on the same page. Options could easily be added for additional time formats or to change the minute increments (say, to every 5 minutes, for instance). Usage is simple. Given a plain text form input like this: You would transform it into a timepicker like so: $('input.time').timepicker();
收起全文
精华内容
下载资源
问答
  • timepicker

    2021-01-03 07:57:58
    timepicker hour-step="1" minute-step="1" show-meridian="false">&lt/timepicker> </div> </code></pre> <p>In order to make it xeditable, I tried to ...
  • TimePicker

    2020-12-09 10:51:52
    <p>Added TimePicker control. Also added the TimePicker popup as part of the DateTimePicker control. <h3>API Changes <p>No one <h3>Affected Platforms <ul><li>WPF</li></ul> <h3>Behavioral changes <p>...
  • Timepicker

    2020-12-01 15:44:55
    <div><p>Adds timepicker addon if showTime: true in your opts.</p><p>该提问来源于开源项目:angular-ui/ui-date</p></div>
  • timePicker

    2014-11-05 21:05:14
    timePicker = (TimePicker) this.findViewById(R.id.timePicker); textView = (TextView) this.findViewById(R.id.textview); datePicker.init(2001, 1, 25, this);// 初始化日期 timePicker.setIs24...

    1.还是将一个控件放在一个类里面,然后在自己的监听函数里面去的其余控件,然后在里面将其余的控件的数值改变就好了。


    2.布局文件:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    	android:orientation="vertical" android:layout_width="fill_parent"
    	android:layout_height="fill_parent">
    
    	<DatePicker android:layout_width="fill_parent" android:id="@+id/datePicker"
    		android:layout_height="wrap_content"></DatePicker>
    	<TimePicker android:layout_width="fill_parent" android:id="@+id/timePicker"
    		android:layout_height="wrap_content"></TimePicker>
    	<TextView android:layout_width="fill_parent" android:id="@+id/textview"
    		android:layout_height="wrap_content" android:textSize="18dp" />
    </LinearLayout>
    


    3.代码:

    datapicker的初始化:

    package com.example.marvinedittext2;
    
    import java.text.SimpleDateFormat;
    import java.util.Calendar;
    
    import android.app.Activity;
    import android.os.Bundle;
    import android.widget.DatePicker;
    import android.widget.TextView;
    import android.widget.DatePicker.OnDateChangedListener;
    import android.widget.TimePicker;
    import android.widget.TimePicker.OnTimeChangedListener;
    import android.widget.Toast;
    
    public class Main extends Activity implements OnDateChangedListener,
    		OnTimeChangedListener {
    	/** Called when the activity is first created. */
    	private TextView textView;
    	private DatePicker datePicker;
    	private TimePicker timePicker;
    
    	@Override
    	public void onCreate(Bundle savedInstanceState) {
    		super.onCreate(savedInstanceState);
    		setContentView(R.layout.main);
    		datePicker = (DatePicker) this.findViewById(R.id.datePicker);
    		timePicker = (TimePicker) this.findViewById(R.id.timePicker);
    		textView = (TextView) this.findViewById(R.id.textview);
    		datePicker.init(2001, 1, 25, this);// 初始化日期
    		timePicker.setIs24HourView(true);// 显示时间是否是按照24小时制
    		timePicker.setOnTimeChangedListener(this);// 注册事件
    
    	}
    
    	// 时间控件的触发
    	public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {
    		// TODO Auto-generated method stub
    		Toast.makeText(Main.this,
    				"hourOfDay:" + hourOfDay + "minute:" + minute, 1).show();
    	}
    
    	// 日期控件的触发
    	public void onDateChanged(DatePicker view, int year, int monthOfYear,
    			int dayOfMonth) {
    		// TODO Auto-generated method stub
    		Calendar calendar = Calendar.getInstance();
    		calendar.set(datePicker.getYear(), datePicker.getMonth(),
    				datePicker.getDayOfMonth(), timePicker.getCurrentHour(),
    				timePicker.getCurrentMinute());
    		SimpleDateFormat format = new SimpleDateFormat("yyyy年MM月dd日    HH:mm");
    		textView.setText(format.format(calendar.getTime()));
    	}
    }


    展开全文
  • Timepicker bug

    2020-12-29 20:46:45
    <div><p>The live example of Timepicker is not working in the code tab. When clicking the text field, there is no drop-down shows. Please refer to :...
  • Add timepicker

    2020-12-29 20:52:14
    <div><p>Are you planning to add timepicker?</p><p>该提问来源于开源项目:chrisdavies/tiny-date-picker</p></div>
  • style but when I tab or click out of a timepicker field and onto ANOTHER timepicker control the original control is left visible on the screen. Here are the steps I've taken (just to ensure you ...
  • Timepicker?

    2021-01-12 06:07:25
    <div><p>Hey! <p>First of all, awesome library. I would like to know if a timepicker would be out of scope. Really need it. <p>Thanks!</p><p>该提问来源于开源项目:yuche/vue-strap</p></div>
  • 自定义TimePicker

    2013-08-26 17:36:09
    自定义时间控件timePicker的样式
  • Android TimePicker

    2020-07-21 15:29:17
    TimePicker android:id="@+id/timePicker" android:layout_width="match_parent" android:layout_height="wrap_content" /> TimePicker 本身自带两种风格,都可以在xml中设置,一种是 android:...
    <TimePicker
        android:id="@+id/timePicker"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />
    

     

    TimePicker 本身自带两种风格,都可以在xml中设置,一种是

    android:timePickerMode="clock"

    另一种是:

    android:timePickerMode="spinner"

    TimePicker的数据回调

    复制代码

    mTimepicker = (TimePicker) inflate.findViewById(R.id.timepicker);
    mTimepicker.setDescendantFocusability(TimePicker.FOCUS_BLOCK_DESCENDANTS);  //设置点击事件不弹键盘
    mTimepicker.setIs24HourView(true);   //设置时间显示为24小时
    mTimepicker.setHour(8);  //设置当前小时
    mTimepicker.setMinute(10); //设置当前分(0-59)
    mTimepicker.setOnTimeChangedListener(new TimePicker.OnTimeChangedListener() {  //获取当前选择的时间
        @Override
        public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {
        }
    });

    复制代码

    获取时间还可以用

    int hour = timePicker.getHour();
    int minute = timePicker.getMinute();

    但要注意,这种方法API最小版本必须是23,另外其他没有用到的功能就不写了。

    展开全文
  • Android代码-TimePicker

    2019-08-07 03:45:24
    (Deprecated) TimePicker Android Library for TimePicker View Images of Sample App Usage Gradle Import: jcenter ```groovy dependencies { compile 'com.github.erz05:TimePicker:0.1.5@aar' } ``` ...
  • TimePicker.rar

    2020-05-30 22:08:49
    TimePicker的应用,通过滚动设置时间并可以通过点击按钮显示在TextView中,采用的是12小时计时法,可以通过PM与AM的滚动来选择上午或下午,显示出来的时间是以24小时计时法显示的
  • Bootstrap Timepicker

    2019-09-30 04:51:03
    Bootstrap Timepicker:一个简单的时间选择插件 GitHub地址:https://github.com/jdewit/bootstrap-timepicker 配置参数 NameOptions / DefaultsDescription template 'dropdown' (default)'modal'...

    Bootstrap Timepicker:一个简单的时间选择插件

    GitHub地址:https://github.com/jdewit/bootstrap-timepicker

     

    配置参数

    NameOptions / DefaultsDescription
    template 'dropdown' (default)
    'modal'
    false
    Show picker in a dropdown
    Show picker in a modal
    Don't show a widget
    maxHours 24 Specify a maximum number of hours the TimePicker can handle. showMeridian must be set to false
    snapToStep false If true, setting the time will snap it to the closest "step", either minute or second, depending on which unit is currently highlighted. If the number would otherwise snap to 60 higher, the unit "overflows" to 0.
    minuteStep 15 Specify a step for the minute field.
    showSeconds false Show the seconds field.
    secondStep 15 Specify a step for the second field.
    defaultTime 'current' (default)
    '11:45 AM'
    false
    Set to the current time.
    Set to a specific time.
    Do not set a default time
    showMeridian true (default)
    false
    12hr mode
    24hr mode
    showInputs true (default)
    false
    Shows the text inputs in the widget.
    Hide the text inputs in the widget
    disableFocus false Disables the input from focusing. This is useful for touch screen devices that display a keyboard on input focus.
    disableMousewheel false Disables the input from changing on mousewheel events
    modalBackdrop false Show modal backdrop.
    appendWidgetTo body Allow for custom placing of the widget
    explicitMode false When true, user can type "123" to set time to "1:23" or "12345" to set time to "1:23:45".
    icons
    
    {
        up: 'glyphicon glyphicon-chevron-up',
        down: 'glyphicon glyphicon-chevron-down'
    }
    
    An object with keys 'up' and 'down' representing CSS class names to be used for the widget's icon classes.

    转载于:https://www.cnblogs.com/imguoc/p/5857589.html

    展开全文
  • <div><ul><li>Added corresponding test</li><li>Updated README.md and Example.md</li><li>Added TimePicker to demo</li></ul>该提问来源于开源项目:erikras/redux-form-material-ui</p></div>
  • AOT Timepicker error

    2021-01-12 16:43:10
    Error: Error at C:/Projects/NeilKellyClient4/aot/node_modules/ng2-bootstrap/timepicker/timepicker.component.ngfactory.ts:650:35: Supplied parameters do not match any signature of call target. ...
  • <div><p>fixes #2036 fixes #1981 ( + min max demo ) ...- #1814 Added minuteRoundBeforeStep option to timepicker</p><p>该提问来源于开源项目:valor-software/ngx-bootstrap</p></div>
  • 这是一个ionic-timepicker组件,可以在任何Ionic框架的应用程序中使用。 该组件不需要其他插件。 该插件是完全开源的。 请在将此插件评分 从0.5.0版开始,此组件具有许多新功能,并且您应使用的方式与该组件的旧...
  • - Select any time with timepicker field type (timepicker currently defaults to 30-minute increments) - Bundle UI for combined date/timepicker (instead of separate date/timepicker) <p>An additional &#...
  • jQuery Timepicker Addon About This project is no longer actively maintained. Unfortuantely, I no longer work with jQuery and jQueryUI on new projects. jQuery Timepicker Addon served as the timepicker...
  • 基于Vue实现timepicker

    2021-01-21 12:19:46
    先放原址:https://github.com/graysheeep/vue-material-timepicker。 自己做的在线demo:http://jsbin.com/dumace/2/edit?html,js,output 主要用到的还是Vue的基本知识而已,不过要想到的细节很多。 先放效果,...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 3,139
精华内容 1,255
关键字:

timepicker