GithubHelp home page GithubHelp logo

ibm-js / dcalendar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from damiengarbarino/dojo-calendar

0.0 0.0 0.0 2.83 MB

Calendar app for ibm-js, based on old dojo-calendar code

License: Other

JavaScript 70.34% HTML 23.85% CSS 3.56% Less 2.25%

dcalendar's People

Contributors

aaitken80 avatar cjolif avatar dominiquepicard avatar dylans avatar mariofalomir avatar pdardailler avatar ramunasd avatar wkeese avatar

Watchers

 avatar  avatar

dcalendar's Issues

update store code

Move the calendar code to run against SitePen/dstore rather than dojo/store, and also do the date-range filtering in the store, rather than querying all events and filtering in javascript.

CSS sizing

Try to do sizing completely in CSS, rather than in javascript.

Hopefully this can be done by:

  1. Using percentages rather than hardcoded pixel values. The exceptions would be

    a. vertical positioning in ColumnView (which is controlled by this.hourSize)
    b. vertical positioning within a row of overlapping events in GridView (which is controlled by font-size or the height a HorizontalRenderer)

  2. Using CSS flex-blox sizing instead of <table> elements. IIUC with flex-box you can set a fixed percentage height for each row/column, regardless of the amount of content in that row/column. And you can still do animation to for that feature of expanding a certain row of the GridView (http://stackoverflow.com/questions/11106876/is-it-possible-to-animate-flexbox-inserts-removes)

Note that widget height changes are handled differently for GridView and ColumnView. The ColumnView maintains the same scrollHeight regardless of the offsetHeight of the widget; there's just more scrolling. Whereas in GridView, each <table> cell and Renderer changes size and position as the widget itself changes size.

Changes in width affect the sizes and positions of elements in both GridView and ColumnView.

review / fix accessibility

The Keyboard.js code keeps focus on the ViewBase widget, and just moves virtual focus between the calendar tasks. This is generally not recommended, and also, if you do do it, then you need to use aria-activedescendant.

convert documentation

Create reference documentation based on original dojox/calendar doc.

It involves:

The rst doc is in https://github.com/dojo/docs/blob/master/dojox/calendar.rst, with images in https://github.com/dojo/docs/tree/master/dojox/calendar.

update css class names

The CSS class names shouldn't say "dojoXCalendar" ... but rather "d-calendar". I.E. rather than camel case they should have dashes.

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.