Giter VIP home page Giter VIP logo

calendar-gc's Introduction

GC-Calendar

Welcome to GEPCODE Calendar! This is calendar library for web.

Demo

Usage

For now, we provide for jquery library first. Example:

$("yourElement").calendarGC(options)

Options

Our options provided for you to customize the calendar esier. Example

const option = {
  dayNames: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
}

dayNames

You can use dayNames to replace your day name. We provide day name default like this.

['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']

if you want to write it as long name, you can replace that.

Remember You have to write the dayNames from Sunday until Saturday

monthNames

You can use monthNames to replace your month name. We provide month name default like this.

['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']

These will show when the month you picked is on that number of month, so you have to short carefully

nextIcon

Next icon is html that you can use for next button, the default is >

prevIcon

this is html that you can use for prev button, the difault is <

onPrevMonth

is the callback that will call when the prev button pressed.

Example

const option = {
  onPrevMonth: function(pickedDate){
    console.log(pickedDate)
  }
}

onNextMonth

is the callback that will cal when the next button pressed.

Example

const option = {
  onNextMonth: function(pickedDate){
    console.log(pickedDate)
  }
}

dateBegin

is the Integer that you can use for the beginning of date. 0 is Sunday ... 6 is Saturday

events

this option is an array that you can build any events in spesific date.

Example

const option = {
  events: [
    {
      date: new Date("2022-02-07"),
      eventName: "Holiday",
      className: "badge bg-danger",
      onclick(e, data) {
        console.log(data);
      },
      dateColor: "red"
    }
  ]
}

Styling

You can also customize the style with your own css. See the calendar-gc.css when you need your own styling

calendar-gc's People

Contributors

nggepe avatar

Watchers

 avatar

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.