Git Product home page Git Product logo

fullcalendar's Introduction

Fullcalendar Ruby Gem

This gem just includes fullcalendar and scheduler as an asset in rails applications or other ruby frameworks Fullcaledar-scheduler is not free for commercial use, so make sure you have a valid license to use scheduler.

Installation

Fullcalendar JavaScript depends on jQuery and moment js. If you're using Rails 5.1+, add the jquery-rails gem to your Gemfile:

gem 'jquery-rails'
gem 'momentjs-rails'

Add this line to your application's Gemfile:

gem 'fullcalendar'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fullcalendar

Install generator

command

rails g fullcalendar:install 

this generator will:

    1. append //= require calendar add app/assets/javascripts/application.js
    1. append *= require calendar add app/assets/stylesheets/application.css
    1. create calendar.js in app/assets/javascripts/
    1. create calendar.scss in app/assets/stylesheets/

Manual install

JavaScripts

Include the JavaScript in your app/assets/javascripts/application.js:

//= require jquery
//= require calendar

create new file app/assets/javascripts/calendar.js

//Core component
//= require fullcalendar
// optional locale
//= require fullcalendar/locale/ms

//Optional addon scheduler
//= require fullcalendar/scheduler

Stylesheets

Include the stylesheet in your app/assets/stylesheets/application.css:

*= require calendar

or if you using scss

Include the stylesheet in your app/assets/stylesheets/application.scss:

@import 'calendar';

Create new file app/assets/stylesheets/calendar.scss

@import 'fullcalendar';
@import 'fullcalendar/scheduler';

Initialization

Where needed in your JavaScripts, initialize your fullcalendar:

$(document).ready(function() {
  $("#calendar").fullcalendar();
});

Usage

see fullcalendar documentations here

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/fullcalendar. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.
Fullcalendar and Scheduler, which makes up the majority of this gem, has its own, separate licensing agreement.

Code of Conduct

Everyone interacting in the Fullcalendar project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

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.