Code Monkey home page Code Monkey logo

aurelia-resources's Introduction

aurelia-resources

Colection of aurelia resorces, using Aurelia CLI.

attributes

  • datepicker : jquery ui datepicker aurelia attribute

datepicker

  1. required modules:
  • jquery
  • jquery-ui use "npm install" command for each one.
  1. Aurelia configuration: (aurelia.jason) Add to aurelia.json, at "dependencies" section the following: "jquery", { "name": "jquery-datepicker", "path": "../node_modules/jquery-ui", "main": "ui/widgets/datepicker", "deps": ["jquery"], "exports": "$" },

  2. jQuery-UI CSS Add to header section of index.html file, located at root project, the following tag:

  1. Install custom attribute Copy datepicker.js to src/resources/attributes directory Edit index.js file, located at src/resources, and add a reference to datepicker.js: config.globalResources(['./attributes/datepicker']);

  2. Using attribute To use on your page, just add the "datepicker" attribute tou your input control:

  1. Seting options. You can use any of the options avaiable on jQuery-ui datepicker widget. Example for dateFormat:

aurelia-resources's People

Contributors

antoniomourao avatar

Watchers

James Cloos avatar  avatar

aurelia-resources's Issues

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.