Giter Site home page Giter Site logo

dan5000 / datepicker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fulup-bzh/datepicker

0.0 1.0 0.0 71 KB

Date Picker compatible with Zurb Foundation under Angular framework.

License: Other

CSS 8.91% JavaScript 80.12% HTML 10.67% Shell 0.30%

datepicker's Introduction

DatePicker for Angular & Foundation

Angular Picker Foundation5 friendly. The only real dependency outside of Angular is Font Awesome.

Project :

This DatePicker simplified version for Angular of: http://foundation-datepicker.peterbeno.com

Installation

  1. download & unzip source from GitHub repository:

  2. copy the files

    • dist/angular-foundation-datepicker-min.js
    • dist/angular-foundation-datepicker.css
  3. <link> and <script> them into your page

  4. to see the arrows and icons, include font-awesome:

    <link href="http://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css" rel="stylesheet">

Usage

   <date-picker
      id="my-picker-name"                     // only use as an argument to callback
      class="my-custom-class"                 // default class is bzm-date-picker
      placeholder="Track Date Selection"      // place holder for date readonly input zone

      <!-- Angular Scope Variables -->
      callback="myCallBack"                    // $scope.myCallBack(selectedDate) is called when ever a new date is selected
      ng-model="viewDate"                      // $scope.viewDate angular scope for selected date
      not-after="myEndDate"                    // $scope.myEndDate   => JS Date OBJECT
      not-before="myStartDate"                 // $scope.myStartDate => idem

      <!-- Angular Directive Attributes -->
      format="dd-MM-yy"                        // angular date filter https://docs.angularjs.org/api/ng/filter/date
      language="en"                            // English, French, German, ...
      weekstart="1"                            // Week start [1==Monday]
      today='true|text'                        // If true display 'today' in chosen language, if 'text' display text in todaybouton
      dayoff=[6,7]                             // Disable Saturday/Sunday for selection
      weeknum="true"                           // Display week number
      autohide="false"                         // Do not close picker after date selection
      month-only="true"                       // Restrict user from selecting dates (Allow selection of months and years)

   /></date-picker>

datepicker's People

Contributors

cwperry avatar dan5000 avatar fauzankhan avatar schmitzdenis avatar zxyang 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.