Skip to content

Missing docs for properties/methods #8832

Open

Description

@rafaelss95

Bug, feature request, or proposal:

Bug/Proposal.

What is the expected behavior?

The listed propeties/methods have no docs.

What is the current behavior?

Here's the list that I found of all missing docs.

Class Properties Methods
MatAutocompleteTrigger autocomplete, panelOpen
MatChip ariaSelected
MatChipInput focused focus
MatChipList controlType , ngControl, role onContainerClick, setDescribedByIds
MatDialogClose dialogRef
MatDialogRef id
MatDialogTitle id
MatDatepickerInput registerOnValidatorChange, validate
MatExpansionPanelHeader panel
MatError id
MatInput empty, ngControl, shouldLabelFloat focus, onContainerClick, setDescribedByIds
MatListOption selectionList
MatSelect ngControl, shouldLabelFloat
MatSlideToggleChange All MatSlideToggleChange properties
SimpleSnackBar snackBarRef

Is there anything else we should know?

Related to #8789.

Activity

  1. added
    docs
    help wanted
    P3
    on Dec 8, 2017
  2. rafaelss95 commented on Dec 12, 2017

    @rafaelss95
    ContributorAuthor

    I noticed that some properties/methods are inherited from a parent class. Is there a way to get the docs copied from there instead of maintain two EQUAL docs?

  3. removed their assignment
    on Dec 12, 2017
  4. CDDelta commented on Jan 10, 2018

    @CDDelta

    Good news PR #9299 is fixing this.

  5. rafaelss95 commented on Jan 11, 2018

    @rafaelss95
    ContributorAuthor

    AFAIK that PR is only related for some missing docs, not all.

  6. added
    needs: verification
    and removed on Jan 12, 2018
  7. devversion commented on Jan 14, 2018

    @devversion
    Member

    Every member that is inherited is now showing up in the docs. If you still see some members that are not showing up properly, please file a new issue/or respond here and cc. me. Thanks!

  8. rafaelss95 commented on Jan 14, 2018

    @rafaelss95
    ContributorAuthor

    @devversion I guess you solved part of the "problem". This issue doesn't consists only about inherited members. There are a few members (in table that I listed) that are still undocumented and aren't inherited from anywhere.

    It'd be great if you reopen this issue.


    By the way, do you mind if I send separate PRs to fix some of them?

  9. 3 remaining items

  10. devversion commented on Jan 14, 2018

    @devversion
    Member

    @rafaelss95 That might be true. I didn't specifically look at all members in the table you posted, because I thought it was also about the inherited members.

    And sure, please go ahead and submit a PR. For such small changes It would be better to just have one PR for all members.

  11. removed
    needs: verification
    on Jan 14, 2018
  12. rcanacci commented on Jan 15, 2018

    @rcanacci

    Does anyone here know how to use 'shouldLabelFloat' on a MatInput?

    Completely lost, docs are useless.

  13. rafaelss95 commented on Jan 23, 2018

    @rafaelss95
    ContributorAuthor

    @devversion:

    ExpansionPanel:

    expanded is declared like this:

    https://github.com/angular/material2/blob/7024dc49f8cc067da14be36a8172437e03074186/src/lib/expansion/expansion-panel.ts#L75

    Is there a specific reason to it be declared this way, instead of the usual @Input()? I'm asking because this way, AFAIK, it can't be documented.

    Sort:

    matSortDisabled is declared like this:

    https://github.com/angular/material2/blob/7024dc49f8cc067da14be36a8172437e03074186/src/lib/sort/sort.ts#L58

    ...however it appears as disabled in docs.


    Also, all the inputs declared in Component/Directive metadata appear without @Input() decorated. Is it the expected behavior?

  14. benedikt-roth commented on Oct 28, 2018

    @benedikt-roth
    Contributor

    How can one hide the updateErrorState from the docs? (For example in MatSelect.) From what I understand this should not be part of the public API.

  15. added
    area: many
    on Jun 11, 2020
  16. jelbourn commented on May 25, 2021

    @jelbourn
    Contributor

    Closing this since, as far as I can tell, all of these APIs are now correctly captured in the generated API docs.

  17. rafaelss95 commented on May 26, 2021

    @rafaelss95
    ContributorAuthor

    @jelbourn I still see some of them undocumented or wrongly documented (see MatDatepickerInput#registerOnValidatorChange - it appears in docs, while it shouldn't, as it's marked with @docs-private annotation. Also, I think @docs-private shouldn't even be necessary, if that method was listed here:

    const INTERNAL_METHODS = [
    // Lifecycle methods
    'ngOnInit',
    'ngOnChanges',
    'ngDoCheck',
    'ngAfterContentInit',
    'ngAfterContentChecked',
    'ngAfterViewInit',
    'ngAfterViewChecked',
    'ngOnDestroy',
    // ControlValueAccessor methods
    'writeValue',
    'registerOnChange',
    'registerOnTouched',
    'setDisabledState',
    ).

    Should I create a new issue or just update this issue with the still missing members (and it will be reopened)?

  18. rafaelss95 commented on May 26, 2021

    @rafaelss95
    ContributorAuthor

    Btw, here is the updated list:

    Class Properties Methods
    MatAutocompleteTrigger optionGroups, options
    MatButtonToggleDefaultOptions appearance
    MatCheckboxDefaultOptions clickAction, color
    MatChipList errorState , stateChanges updateErrorState
    MatDialogRef id
    MatDialogClose id
    MatDialogTitle id
    MatDialogRef id
    MatDatepickerInput registerOnValidatorChange, validate
    MatStartDate errorStateMatcher, errorState, stateChanges registerOnValidatorChange, validate
    MatEndDate errorStateMatcher, errorState, stateChanges registerOnValidatorChange, validate
    MatCalendarHeader calendar , periodButtonLabel
    MatCalendarUserEvent event, value
    MatExpansionPanelHeader panel
    MatError id
    MatFormFieldDefaultOptions appearance, hideRequiredMarker
    MatInput errorState updateErrorState
    MatTextareaAutosize matAutosize, matAutosizeMaxRows, matAutosizeMinRows, placeholder`
    MatListOption selectionList
    MatSelect customTrigger, errorState, ngControl, optionGroups, options, stateChanges open, updateErrorState
    MatSlideToggleChange defaults
    SimpleSnackBar snackBarRef
    TextOnlySnackBar action, data, hasActon, snackBarRef
    MatMenu panelId
    ProgressAnimationEnd value
    SafeResourceUrlWithIconOptions options, url
    MatRadioDefaultOptions color
    MatHorizontalStepper animationDone, color, disableRipple, labelPosition, steps
    MatVerticalStepper animationDone, color, disableRipple, labelPosition, steps
    MatStepperIcon templateRef
    MatTableDataSourcePageEvent length, pageIndex, pageSize
    MatTableDataSourcePaginator initialized, length, page, pageIndex, pageSize
    MatTabLabel origin
    MatTooltipDefaultOptions hideDelay, position, showDelay, touchGestures, touchendHideDelay
    MatTreeNode isExpanded, level
    MatTreeNodeDef data, template
    MatNestedTreeNode node, isExpanded, level
    MatTreeNodeToggle recursive
    MatTreeNodeOutlet viewContainer
    MatTreeFlattener getChildren, getLevel, isExpandable, transformFunction
    MatTreeFlatDataSource data connect, disconnect
    MatTreeNestedDataSource connect, disconnect
    CdkDragHandle element
    CdkDragPreview templateRef
    CdkDragPlaceholder templateRef
    DragDropConfig boundaryElement, constrainPosition, dragStartDelay, draggingDisabled, listAutoScrollDisabled, listOrientation, lockAxis, previewClass, previewContainer, rootElementSelector, sortingDisabled, zIndex
    OverlaySizeConfig height, maxHeight, maxWidth, minHeight, minWidth, width
    ConnectedPosition offsetX, offsetY, originX, originY, overlayX, overlayY, panelClass, weight
    OriginConnectionPosition originX, originY
    OverlayConnectionPosition overlayX, overlayY
    CdkPortal origin detach
    TemplatePortalDirective origin detach
    BasePortalOutlet attachDomPortal
    BasePortalHost attachDomPortal
    CdkScrollable dir, elementRef, ngZone, scrollDispatcher
    CdkVirtualScrollViewport elementRef
    ViewportScrollPosition left, top
    CdkVirtualScrollRepeater dataStream
    CdkNoDataRow templateRef
    RowOutlet viewContainer
    CellDef template
    StickyUpdate elements, offsets, sizes
    ComponentHarness locatorFactory
    CdkTextareaAutosize placeholder
    CdkNestedTreeNode isExpanded, level
    CdkTreeNodeDef template
    CdkTreeNodeOutlet viewContainer
    CdkTreeNode isExpanded, level
    FlatTreeControl getLevel, isExpandable, options
    NestedTreeControl getChildren, options
    FlatTreeControlOptions trackBy
    NestedTreeControlOptions trackBy
  19. self-assigned this
    on May 26, 2021
  20. added
    P3
    and removed
    P4
    on May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3area: manydocshelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions