Skip to content

Commit

Permalink
Merge pull request #221 from nhnent/feat/apply-tuidoc/change-annotation
Browse files Browse the repository at this point in the history
feat: change annotations for typedef object description (close #220)
  • Loading branch information
유동식 committed Oct 11, 2018
2 parents db80c12 + 4fa8492 commit 415be44
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions src/js/factory/calendar.js
Expand Up @@ -108,9 +108,9 @@ var mmin = Math.min;

/**
* @typedef {object} CalendarColor
* @property {string} [CalendarColor.color] - calendar color
* @property {string} [CalendarColor.bgColor] - calendar background color
* @property {string} [CalendarColor.borderColor] - calendar left border color
* @property {string} [color] - calendar color
* @property {string} [bgColor] - calendar background color
* @property {string} [borderColor] - calendar left border color
*/

/**
Expand Down Expand Up @@ -145,16 +145,16 @@ var mmin = Math.min;
* @property {Array.<Calendar>} [calendars=[]] - list of Calendars that can be used to add new schedule
* @property {boolean} [useCreationPopup=false] - whether use default creation popup or not
* @property {boolean} [useDetailPopup=false] - whether use default detail popup or not
* @property {Array.<Timezone>} [timezones] - timezone array.
* @property {Array.<Timezone>} [timezones] - timezone array.
* The first Timezone element is primary and can override Calendar#setTimezoneOffset function.
* The rest timezone elements are shown in left timegrid of weekly/daily view.
* @property {boolean} [disableDblClick=false] - disable double click to create a schedule
* @property {boolean} [isReadOnly=false] - Calendar is read-only mode and a user can't create and modify any schedule.
*/

/**
* @typedef {class} CustomEvents
* {@link https://nhnent.github.io/tui.code-snippet/latest/tui.util.CustomEvents.html CustomEvents} document at {@link https://github.com/nhnent/tui.code-snippet tui-code-snippet}
* @typedef {class} CustomEvents
*/

/**
Expand Down Expand Up @@ -1113,7 +1113,7 @@ Calendar.prototype._onAfterRenderSchedule = function(scheduleData) {
* Fire this event by every single schedule after rendering whole calendar.
* @event Calendar#afterRenderSchedule
* @type {object}
* @property {Schedule} schedule - a rendered schedule instance
* @property {Schedule} schedule - a rendered schedule instance
* @example
* calendar.on('afterRenderSchedule', function(event) {
* var schedule = event.schedule;
Expand Down Expand Up @@ -1214,7 +1214,7 @@ Calendar.prototype._toggleViewSchedule = function(isAttach, view) {
* calendar.setOptions({week: {startDayOfWeek: 1}}, true);
* calendar.setOptions({month: {startDayOfWeek: 1}}, true);
* calendar.changeView(calendar.getViewName(), true);
*
*
* // work week
* calendar.setOptions({week: {workweek: true}}, true);
* calendar.setOptions({month: {workweek: true}}, true);
Expand Down
8 changes: 4 additions & 4 deletions src/js/theme/themeConfig.js
Expand Up @@ -5,11 +5,11 @@
'use strict';

/**
* @typedef {object} themeConfig
* Full configuration for theme.<br>
* "common" prefix is for entire calendar. "common" properties can be overriden by "week", "month".<br>
* "week" prefix is for weekly and daily view.<br>
* Full configuration for theme.
* "common" prefix is for entire calendar. "common" properties can be overriden by "week", "month".
* "week" prefix is for weekly and daily view.
* "month" prefix is for monthly view.
* @typedef {object} themeConfig
* @example
// default keys and styles
var themeConfig = {
Expand Down

0 comments on commit 415be44

Please sign in to comment.