Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

react_date_picker

📅 React时间选择组件

  • 1.0.1
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc