Giter Club home page Giter Club logo

calendar's Introduction

calendar

日程日历

演示地址

     var calendar=new Calendar({
         el:"#app",    //嵌入的父元素 
         onSelected:function(year,month,day){     //选择日期时响应
             console.log("selected:",year,month,day);
         },
         onChange:function(year,month){           //切换日期时触发
            console.log("change",year,month);
         },
         ,today:20190224     //可设定今天,支持整型及Date对象
         ,selected:20180906  //可设定选中日期,支持整型及Date对象
         ,limits:[20181010]  //有效日期范围,有效值[10000101,99990101],支持整型及Date对象
     });
     
     //方法:
     calendar.renderCells(function(cell,year,month,day){
          //渲染当前日期的单元格,cell为单元格dom对象
     });
     
     //设置禁用的开始时间,支持整型及Date对象
     calendar.setLimitStart(20181111); 
     //设置禁用的结束时间,支持整型及Date对象
     calendar.setLimitEnd(20190115);

如果不加载日程,可当普通日历选择控件来用

calendar's People

Contributors

anderpang avatar

Stargazers

liujin avatar

Watchers

James Cloos avatar  avatar

Forkers

unlili

calendar's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.