Code Monkey home page Code Monkey logo

angular-simple-calendar's Introduction

angular-simple-calendar

A Simple Date-Range Calendar

After searching the web for a nice looking simple date range calendar and coming up empty I made my own.
This is meant to be easily modifiable and used as either a complete product or a boiler plate.

Small Simple Demp

A Small Demo

Dependencies

Simple Calendar requires Additional Code
Angular JS - download here
Font Awesome - download here
Bootstrap - download here (only needed for 2 classes, "form-group" and "form-control")

Included Parts

I've included the basics.

  • A Basic CSS File
  • A Template (can be modified)
  • The Angular JS Directive

Basic Usage

First, remember to add 'simpleCalendar' to your module's dependencies array.

  angular.module('MyModule',['simpleCalendar']);

You can initialize simple calendar in all 3 angular ways.

// you can initialize by creating a simple-calendar tag
<simple-calendar></simple-calendar>

// you can initialize by adding simple-calendar as an attribute to a div
<div simple-calendar></div>

// you can initialize by adding simple-calendar as a class to a div
<div class="simple-calendar"></div>

You can also pass in a few options

// you can specify a few options
<div simple-calendar number-of-weeks="6" start-date="startDate" end-date="endDate"></div>
Option Description
number-of-weeks any positive integer (defaults to 6)
start-date the $scope variable you want to write the selected start date to
end-date the $scope variable you want to write the selected end date to

angular-simple-calendar's People

Contributors

ivanbylinkin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

benmgilman

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.