• download
  • documentation
  • forums
  • demo
  • contact
  • blog

meteora

javascript widgets

Documentation

  • Autocomplete
  • Bubble
  • Calendar
  • Carousel
  • Datagrid
  • Dialog
  • Editor
  • Effect
  • Filebrowser
  • Form
  • Jsonrpc
  • Menu
  • Notebook
  • Picbox
  • Popup
  • Searchlist
  • Selection
  • Spinbutton
  • Tablesort
  • Toolbox
  • Treeview
In order to post messages on this forum, you must be registered and logged in
80x80:1760834185_unknown.png
Forums » Suggestions » Wishlist

more option for calendar

Posted by torstenf

I use control.calendar heavily. But I like more options:

- dayStart (1 for europe)

  • hour (24 hours)

  • height and width

so I made some modifications:

[code]

33a34,38

'maxHour': 12,

'minHour': 1,

'dayStart': 0,

'height': 310,

'widht': 310,

70c78,79

< '__dayStart': 1,

---

// '__dayStart': 0, to this.options.dayStart

>

138a148,150

>

>

>

249c261

< 'width': 310,

---

'width': this.options.width,

253c265

< 'height': (window.gecko ? 290 : 310) }

---

'height': (window.gecko ? this.options.height-10 : this.options.height) }

559,560c571,572

< 'minValue': 1,

< 'maxValue': 12,

---

'minValue': this.options.minHour,

'maxValue': this.options.maxHour,

564c576

< for (var i = 1; i <= 12; i++)

---

for (var i = 0; i <= 24; i++)

768c780

< while (cursor.getDay() != this.__dayStart) {

---

while (cursor.getDay() != this.options.dayStart) {

777c789

< var dstart = this.__dayStart;

---

var dstart = this.options.dayStart;

[/code]

  • Friday December 26, 2008 @ 03:06 date
  • torstenf user
50x50:1760834185_unknown.png
link Tuesday January 6, 2009 @ 13:44

comment J. Carlos Nieto

I've just committed your changes to our experimental branch (for Mootols 1.2 and jQuery), thanks :).

Copyright © 2007-2009 Astrata Software.