🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react_date_picker

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

react_date_picker

📅 React时间选择组件

1.0.1
unpublished
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ReactDatePicker

📅 React时间选择组件

Usage

npm install react_date_picker --save

//  ...

//  ES6

import React, { Component } from "react";
import ReactDOM from "react-dom";

import ReactDatePicker from "react_date_picker";

class App extends Component {

    constructor(props) {
        super(props);
    }
    
    handleDateChange(date) {
        //  ...
    }
    
    handleClose(date) {
        //  ...
    }
    
    render() {
    
        const config = {
            initDate: "2016-09-12",
            format: "YYYY-mm-dd",
            onClose: this.handleClose.bind(this),
            onChange: this.handleDateChange.bind(this)
        };
    
        return (<div class="app">
            <ReactDatePicker config={config} />
        </div>);
    }
    
}

API

属性名意义类型默认是否必须
el选择器(input框的class/id之类的)StringN/A
trigger在什么事件下显示选择器Array.<String>N/A
initDate默认时间Date/StringN/A
format输出时间的格式StringN/A
onOpen时间选择器刚显示的回调FnnctionN/A
onClose时间选择器关闭后的回调FnnctionN/A
onChange选择时间发生变化的回调FnnctionN/A

Keywords

react

FAQs

Package last updated on 13 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts