Giter VIP home page Giter VIP logo

foundation-datepicker's Introduction

Foundation Datepicker

Feel free to contribute! Fork, modify, and send me a pull request, I'll try my best to merge it as soon, as possible.

Foundation datepicker jQuery plugin, based on bootstrap-datepicker project found at https://github.com/eternicode/bootstrap-datepicker.

For more information, please see included example, or visit http://foundation-datepicker.peterbeno.com

Foundation version support

Foundation 5 is fully supported. For Foundation 4 version, check out last compatible version: https://github.com/najlepsiwebdesigner/foundation-datepicker/releases/tag/1.2.0

How to include this in your project:

Install via Bower or NPM

bower install foundation-datepicker

npm install foundation-datepicker

after running continue with step 3 from manual instalation. Files you should use are mentioned in step 2.

Manual Installation and Setup

  1. download & unzip source from GitHub repository: http://foundation-datepicker.peterbeno.com/example.html

  2. copy the files /js/foundation-datepicker.js and /stylesheets/foundation-datepicker.css somewhere into your project. Minified versions are also available.

  3. <link> and <script> them into your page

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

http://zurb.com/playground/foundation-icons

<link href="//cdnjs.cloudflare.com/ajax/libs/foundicons/3.0.0/foundation-icons.css" rel="stylesheet">

http://fortawesome.github.io/Font-Awesome/

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

Language translations

You can pass argument to constructor to choose language used:

$('.fdatepicker').fdatepicker({
  language: 'de'
});

Available languages are:

  • Czech (cs)
  • Dutch (nl)
  • English (en) - default
  • French (fr)
  • German (de)
  • Greek (el)
  • Hungarian (hu)
  • Italian (it)
  • Norwegian (no)
  • Polish (pl)
  • Portugese (pt)
  • Portugese Brasil (pt_br)
  • Romanian (ro)
  • Russian (ru)
  • Slovak (sk)
  • Spanish (es)
  • Turkish (tr)
  • Ukrainian (uk)
  • Chinese Simplified (zh-CN)
  • Chinese Traditional (zh-TW)

Icons

Datepicker uses three icons. It works with foundation font and font awesome out-of-the box. If you dont want to use iconic font, you can customize buttons via classes:

  • fa-chevron-right fi-arrow-right - right arrow
  • fa-remove fa-times fi-x - close sign
  • fa fa-chevron-left fi-arrow-left - left arrow

Version without Font Awesome (behind master) can be found in separate branch: https://github.com/najlepsiwebdesigner/foundation-datepicker/tree/no-font-awesome

Build system

Grunt is used. grunt build compiles scss & minifies js and css. Before running, you must install local grunt and npm deps via: npm install

Angular

For integration with Angular, please see najlepsiwebdesigner#55 (comment)

Foundation datepicker is jQuery plugin, so you have to use also jQuery.

A note on forking:

By forking this project you hereby grant permission for any commits to your fork to be merged back into this repository and, with attribution, be released under the terms of the Apache License.

Issues

Before you submit a new issue, please check closed (maybe also open) issues here, maybe your problem was solved already. Thanks!

foundation-datepicker's People

Contributors

aceunreal avatar andreasahlund avatar arnkorty avatar bbosternak avatar build-failure avatar chuangbo avatar dagniele avatar dsandstrom avatar fleeting avatar harti avatar iamlucamilan avatar imartingraham avatar jeroenherczeg avatar jorpcolombia avatar joshkoberstein avatar lightxu avatar michelts avatar mpasternak avatar najlepsiwebdesigner avatar petecoop avatar rixaman avatar sopamo avatar tallnato avatar tkuipers avatar tstat avatar yanickouellet avatar yigitgenc avatar

Watchers

 avatar  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.