Git Product home page Git Product logo

jquery-calendar's Introduction

jquery-calendar

一个基于jquery、bootstrap的可自定义样式的日历组件 image

支持日期选择

image

支持皮肤定制

image

支持可选日历属性

Usage

html:

在需要添加日历组件的父元素中添加“id=my-calendar”属性即可,在calendar构造器中传入自选参数:

<div class="col-md-6" id="my-calendar">
            <script>
                $(document).ready(function(){
                   $('#my-calendar').calendar({
                       cell_border:false,    //不显示单元格边框
                       styleClass:'zidingyi',      //定制皮肤类名
                       show_days:true,     //显示星期几这一栏
                       show_today:true,    //显示今天的日期这一栏
                       today:true,      //对今天的日期特别标注
                    });
                })
            </script>
 </div>

css:

可定制自定义皮肤,类名为styleClass+‘_日历部位’:

/**********定制自定义皮肤**********/
.zidingyi_today {
  background-color: #269abc;
  color: white;
}

.zidingyi_month{
  background-color: #afd9ee;
  color: #080808;
}

.zidingyi_week{
  background-color: #269abc;
  color: #080808;
}

.zidingyi_content{
  background-color: #afd9ee;
  color: #080808;
}

jquery-calendar's People

Contributors

tangzhirong avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

lycspider

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.