Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: calendar datepicker typedocs #867

Merged
merged 4 commits into from Jun 13, 2019

Conversation

mikerodonnell89
Copy link
Member

Fixes #687

@netlify
Copy link

netlify bot commented Jun 5, 2019

Deploy preview for fundamental-ngx ready!

Built with commit 32f6178

https://deploy-preview-867--fundamental-ngx.netlify.com

@@ -46,6 +46,9 @@ export interface EmittedDate {

let calendarUniqueId: number = 0;

/**
* Calendar component, typically used by the DatePicker and DateTimePicker components.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit more description, also mention that it supports Angular forms by itself

@Output()
isInvalidDateInput: EventEmitter<any> = new EventEmitter();

/** @hidden Used when this calendar is for a date time picker component. For internal use. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ugh all these hidden inputs really grinds my gears, but eh for now unavoidable

@Input()
isDateTimePicker: boolean = false;

/** @hidden Whether the date is invalid. Internal use */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing period at the end here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually missing period everywhere where there is 'Internal use'

selectCounter: number = 0;

/** The currently selected CalendarDay model */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing periods in this section too

@Input()
selectedDay: CalendarDay = {
date: null
};
/** Fired when the selectedDay model changes */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is very vague and could be applied to most events - the description should also involve the context in which this model changes, which in this case is when a new day is selected

@Input()
disableRangeStartFunction = function(d): boolean {
return false;
};
/** @param d Function used to disable certain dates in the calendar for the range end selection. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here too, you get the gist i guess

loadPrevYearsList() {
this.calendarYearsList = [];
this.firstYearCalendarList -= 12;
this.constructCalendarYearsList();
}

// Functions that handle selection (day, month, year)
/** @hidden */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be exposed, people could use it to programatically select a date, no?

@@ -658,6 +727,7 @@ export class CalendarComponent implements OnInit, OnDestroy, AfterViewChecked, C
}
}

/** @hidden */
openYearSelection() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe these could also be exposed, what do you think?

@Input()
selectedDay: CalendarDay = {
date: null
};

/** Fired when the selectedDay model changes */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more precise description, missing period (like in calendar, so i won't retag all these)

@@ -90,50 +105,62 @@ export class DatePickerComponent implements OnInit, OnDestroy, ControlValueAcces
@Input()
allowNull: boolean = true;

/** @param d Function used to disable certain dates in the calendar. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong function doc formatting as in calendar (won't retag all these)

@CLAassistant
Copy link

CLAassistant commented Jun 11, 2019

CLA assistant check
All committers have signed the CLA.

@MattL75
Copy link
Contributor

MattL75 commented Jun 12, 2019

@mikerodonnell89 you gotta sign CLA

@mikerodonnell89 mikerodonnell89 merged commit fe0bbc9 into master Jun 13, 2019
@droshev droshev added this to the sprint 13 - Hot Pie milestone Jun 14, 2019
@droshev droshev deleted the docs/#687-calendar-datepicker-typedocs branch June 14, 2019 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
board
  
Awaiting triage
Development

Successfully merging this pull request may close these issues.

Add documentation typedoc comments for all components
4 participants