forked from 0x2620/oxjs
add documentation stubs
This commit is contained in:
parent
b3fce3a28a
commit
509745407b
102 changed files with 613 additions and 163 deletions
|
|
@ -1,5 +1,3 @@
|
|||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||
|
||||
'use strict';
|
||||
|
||||
/*@
|
||||
|
|
@ -1257,6 +1255,10 @@ Ox.Calendar = function(options, self) {
|
|||
}
|
||||
};
|
||||
|
||||
/*@
|
||||
that.addEvent <f> addEvent
|
||||
(event) -> <o> object
|
||||
@*/
|
||||
that.addEvent = function(event) {
|
||||
// Ox.Log('Calendar', 'CALENDAR ADD EVENT', event)
|
||||
event = getEventData(event);
|
||||
|
|
@ -1305,15 +1307,27 @@ Ox.Calendar = function(options, self) {
|
|||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
that.getBounds <f> get bounds
|
||||
() -> <o> object
|
||||
@*/
|
||||
that.getBounds = function() {
|
||||
return getCalendarEvent();
|
||||
};
|
||||
|
||||
/*@
|
||||
that.panToEvent <f> pan to event
|
||||
() -> <o> object
|
||||
@*/
|
||||
that.panToEvent = function() {
|
||||
panToSelected();
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
that.removeEvent <f> remvoe Event
|
||||
() -> <o> object
|
||||
@*/
|
||||
that.removeEvent = function() {
|
||||
Ox.Log('Calendar', 'REMOVE ... SELF.OPTIONS', self.options)
|
||||
var index = Ox.getIndexById(self.options.events, self.options.selected);
|
||||
|
|
@ -1325,6 +1339,10 @@ Ox.Calendar = function(options, self) {
|
|||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
that.resizeCalendar <f> resize
|
||||
() -> <o> object
|
||||
@*/
|
||||
that.resizeCalendar = function() {
|
||||
self.options.width = that.width();
|
||||
self.options.height = that.height();
|
||||
|
|
@ -1333,6 +1351,10 @@ Ox.Calendar = function(options, self) {
|
|||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
that.zoomToEvent <f> zoom to event
|
||||
() -> <o> object
|
||||
@*/
|
||||
that.zoomToEvent = function() {
|
||||
zoomToSelected();
|
||||
return that;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue