From d6f61c786587a4921e2503368daa702b33f1acd8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Mar 2026 12:25:25 +0000 Subject: [PATCH 1/2] Initial plan From 35bf50ee7c31b6dcfb73779a607d30588d10bf78 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Mar 2026 12:46:37 +0000 Subject: [PATCH 2/2] feat(docs): remove Angular-specific items from public API docs - Remove @igxModule, @igxTheme, @igxKeywords, @igxGroup, @igxFriendlyName, @igxParent, @igxElementsAnchor tags from JSDoc comments across 171 files - Remove all @example code blocks (HTML templates and TypeScript snippets) - Remove standalone code blocks from descriptions and @remarks sections - Remove bare HTML elements (igx- tags) from JSDoc descriptions - Replace inline selector references with plain text names in component descriptions - Build and tests verified to pass Co-authored-by: dkamburov <1182001+dkamburov@users.noreply.github.com> --- package-lock.json | 64 -- .../src/accordion/accordion.component.ts | 92 -- .../action-strip/action-strip.component.ts | 35 - .../avatar/src/avatar/avatar.component.ts | 80 -- .../badge/src/badge/badge.component.ts | 58 -- .../banner/src/banner/banner.component.ts | 102 -- .../src/bottom-nav/bottom-nav.component.ts | 24 - .../button-group/button-group.component.ts | 128 --- .../calendar/src/calendar/calendar-base.ts | 49 - .../src/calendar/calendar.component.ts | 77 -- .../common/calendar-view.directive.ts | 6 - .../calendar/days-view/day-item.component.ts | 1 - .../calendar/days-view/days-view.component.ts | 11 - .../month-picker/month-picker.component.ts | 3 - .../months-view/months-view.component.ts | 12 - .../years-view/years-view.component.ts | 6 - .../card/src/card/card.component.ts | 73 -- .../src/carousel/carousel.component.ts | 171 ---- .../carousel/src/carousel/slide.component.ts | 35 - .../chat/src/chat.component.ts | 40 - .../src/checkbox/checkbox.component.ts | 96 -- .../chips/src/chips/chip.component.ts | 168 ---- .../chips/src/chips/chips-area.component.ts | 65 -- .../src/combo/combo-dropdown.component.ts | 4 - .../combo/src/combo/combo.common.ts | 382 -------- .../combo/src/combo/combo.component.ts | 52 - .../combo/src/combo/combo.directives.ts | 105 -- .../combo/src/combo/combo.pipes.ts | 5 - .../core/src/core/navigation/directives.ts | 6 - .../igniteui-angular/core/src/core/touch.ts | 4 - .../igniteui-angular/core/src/core/utils.ts | 27 - .../data-operations/expressions-tree-util.ts | 6 - .../filtering-expressions-tree.ts | 51 - .../core/src/data-operations/grid-types.ts | 7 - .../src/date-common/picker-icons.common.ts | 19 - .../core/src/services/overlay/overlay.ts | 53 - .../overlay/position/IPositionStrategy.ts | 6 - .../position/base-fit-position-strategy.ts | 3 - .../connected-positioning-strategy.ts | 3 - .../position/global-position-strategy.ts | 6 - .../overlay/scroll/IScrollStrategy.ts | 9 - .../overlay/scroll/NoOpScrollStrategy.ts | 6 - .../scroll/absolute-scroll-strategy.ts | 9 - .../overlay/scroll/block-scroll-strategy.ts | 7 - .../overlay/scroll/close-scroll-strategy.ts | 9 - .../overlay/scroll/scroll-strategy.ts | 9 - .../core/src/services/overlay/utilities.ts | 3 - .../src/date-picker/date-picker.component.ts | 159 --- .../src/date-picker/picker-base.directive.ts | 88 -- .../date-range-picker-inputs.common.ts | 60 -- .../date-range-picker.component.ts | 164 ---- .../dialog/src/dialog/dialog.component.ts | 152 --- .../src/directives/button/button-base.ts | 17 - .../src/directives/button/button.directive.ts | 28 - .../button/icon-button.directive.ts | 12 - .../checkbox/checkbox-base.directive.ts | 100 -- .../date-time-editor.directive.ts | 72 -- .../directives/divider/divider.directive.ts | 27 - .../drag-drop/drag-drop.directive.ts | 199 ---- .../focus-trap/focus-trap.directive.ts | 5 - .../src/directives/focus/focus.directive.ts | 20 - .../src/directives/for-of/for_of.directive.ts | 115 --- .../src/directives/layout/layout.directive.ts | 85 -- .../src/directives/mask/mask.directive.ts | 18 - .../src/directives/ripple/ripple.directive.ts | 40 - .../text-highlight.directive.ts | 61 -- .../text-selection.directive.ts | 52 - .../src/directives/toggle/toggle.directive.ts | 101 -- .../tooltip/tooltip-target.directive.ts | 152 --- .../directives/tooltip/tooltip.directive.ts | 26 - .../autocomplete/autocomplete.directive.ts | 52 - .../drop-down/drop-down-group.component.ts | 42 +- .../src/drop-down/drop-down-item.base.ts | 75 -- .../src/drop-down/drop-down-item.component.ts | 21 +- .../drop-down-navigation.directive.ts | 20 - .../drop-down/src/drop-down/drop-down.base.ts | 52 - .../src/drop-down/drop-down.component.ts | 63 -- .../expansion-panel-body.component.ts | 27 - .../expansion-panel-header.component.ts | 51 - .../expansion-panel/expansion-panel.common.ts | 11 - .../expansion-panel.component.ts | 99 +- .../grids/core/src/cell.component.ts | 124 --- .../column-actions.component.ts | 102 -- .../src/columns/column-group.component.ts | 54 -- .../src/columns/column-layout.component.ts | 11 - .../core/src/columns/column.component.ts | 494 ---------- .../grids/core/src/common/crud.service.ts | 4 - .../advanced-filtering-dialog.component.ts | 5 - .../excel-style-filtering.component.ts | 17 - .../excel-style-header.component.ts | 15 - .../grid-action-button.component.ts | 5 - .../grid-actions-base.directive.ts | 6 - .../grid-editing-actions.component.ts | 7 - .../grid-pinning-actions.component.ts | 12 - .../grids/core/src/grid-public-cell.ts | 39 - .../grids/core/src/grid-public-row.ts | 92 -- .../grids/core/src/pivot-grid-aggregate.ts | 39 - .../grids/core/src/pivot-grid-dimensions.ts | 5 - .../grids/core/src/row.directive.ts | 67 -- .../core/src/selection/selection.service.ts | 1 - .../src/services/csv/csv-exporter-options.ts | 12 - .../core/src/services/csv/csv-exporter.ts | 18 - .../services/excel/excel-exporter-options.ts | 26 - .../core/src/services/excel/excel-exporter.ts | 17 - .../exporter-common/base-export-service.ts | 21 - .../exporter-common/exporter-options-base.ts | 42 - .../src/services/pdf/pdf-exporter-options.ts | 83 -- .../core/src/services/pdf/pdf-exporter.ts | 17 - .../grids/core/src/state-base.directive.ts | 21 - .../grids/core/src/state.directive.ts | 24 - .../grids/core/src/summaries/grid-summary.ts | 104 -- .../grids/core/src/toolbar/common.ts | 18 - ...id-toolbar-advanced-filtering.component.ts | 10 - .../grid-toolbar-exporter.component.ts | 4 - .../toolbar/grid-toolbar-hiding.component.ts | 9 - .../toolbar/grid-toolbar-pinning.component.ts | 9 - .../src/toolbar/grid-toolbar.component.ts | 4 - .../grids/grid/src/grid-base.directive.ts | 916 ------------------ .../grids/grid/src/grid.component.ts | 197 ---- .../grids/grid/src/groupby-row.component.ts | 27 - .../src/hierarchical-grid-base.directive.ts | 17 - .../src/hierarchical-grid.component.ts | 85 -- .../src/hierarchical-row.component.ts | 6 - .../src/row-island.component.ts | 35 - .../lite/src/grid-lite-column.component.ts | 14 - .../src/pivot-data-selector.component.ts | 70 -- .../grids/pivot-grid/src/pivot-grid-row.ts | 7 - .../pivot-grid/src/pivot-grid.component.ts | 142 --- .../pivot-grid/src/pivot-row.component.ts | 5 - .../tree-grid/src/tree-cell.component.ts | 3 - .../tree-grid/src/tree-grid-row.component.ts | 26 - .../tree-grid/src/tree-grid.component.ts | 109 --- .../icon/src/icon/icon.component.ts | 43 - .../icon/src/icon/icon.service.ts | 46 - .../directives-hint/hint.directive.ts | 27 - .../directives-input/input.directive.ts | 110 --- .../src/input-group/input-group.component.ts | 99 -- .../list/src/list/list-item.component.ts | 82 -- .../list/src/list/list.component.ts | 174 ---- .../migrations/common/UpdateChanges.ts | 4 - .../migrations/common/util.ts | 1 - .../navbar/src/navbar/navbar.component.ts | 38 - .../navigation-drawer.component.ts | 132 --- .../navigation-drawer.directives.ts | 15 - .../src/paginator/paginator.component.ts | 59 -- .../src/progressbar/progressbar.component.ts | 122 --- .../query-builder-drag.service.ts | 2 - .../query-builder-header.component.ts | 10 - .../query-builder/query-builder.component.ts | 24 - .../query-builder/query-builder.directives.ts | 11 - .../radio-group/radio-group.directive.ts | 77 -- .../radio/src/radio/radio.component.ts | 41 - .../src/select/select-group.component.ts | 4 +- .../src/select/select-item.component.ts | 16 - .../src/select/select-positioning-strategy.ts | 3 - .../select/src/select/select.component.ts | 100 -- .../simple-combo/simple-combo.component.ts | 29 - .../slider/src/slider/slider.common.ts | 12 - .../slider/src/slider/slider.component.ts | 226 ----- .../src/slider/ticks/ticks.component.ts | 9 - .../src/snackbar/snackbar.component.ts | 55 -- .../splitter-pane/splitter-pane.component.ts | 51 - .../src/splitter/splitter.component.ts | 59 -- .../src/stepper/step/step.component.ts | 85 -- .../stepper/src/stepper/stepper.component.ts | 100 -- .../stepper/src/stepper/stepper.directive.ts | 84 -- .../switch/src/switch/switch.component.ts | 42 - .../tabs/src/tabs/tabs/tabs.component.ts | 24 - .../src/time-picker/time-picker.component.ts | 105 -- .../toast/src/toast/toast.component.ts | 50 - .../src/tree/tree-node/tree-node.component.ts | 156 --- .../tree/src/tree/tree.component.ts | 178 ---- 172 files changed, 8 insertions(+), 10147 deletions(-) diff --git a/package-lock.json b/package-lock.json index 651d87d2fa9..8d971d63204 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22355,31 +22355,6 @@ "sassdoc-extras": "^2.5.0" } }, - "node_modules/sassdoc-theme-default/node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "extraneous": true, - "license": "MIT", - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, "node_modules/sassdoc-theme-default/node_modules/commander": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", @@ -22408,19 +22383,6 @@ "jsonfile": "^2.1.0" } }, - "node_modules/sassdoc-theme-default/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "extraneous": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/sassdoc-theme-default/node_modules/jsonfile": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", @@ -22457,32 +22419,6 @@ } } }, - "node_modules/sassdoc-theme-default/node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "extraneous": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/sassdoc-theme-default/node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "extraneous": true, - "license": "MIT", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, "node_modules/sassdoc/node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", diff --git a/projects/igniteui-angular/accordion/src/accordion/accordion.component.ts b/projects/igniteui-angular/accordion/src/accordion/accordion.component.ts index a5516df2921..478a1714c76 100644 --- a/projects/igniteui-angular/accordion/src/accordion/accordion.component.ts +++ b/projects/igniteui-angular/accordion/src/accordion/accordion.component.ts @@ -30,25 +30,10 @@ let NEXT_ID = 0; /** * IgxAccordion is a container-based component that contains that can house multiple expansion panels. * - * @igxModule IgxAccordionModule - * - * @igxKeywords accordion - * - * @igxGroup Layouts - * * @remarks * The Ignite UI for Angular Accordion component enables the user to navigate among multiple collapsing panels * displayed in a single container. * The accordion offers keyboard navigation and API to control the underlying panels' expansion state. - * - * @example - * ```html - * - * - * ... - * - * - * ``` */ @Component({ selector: 'igx-accordion', @@ -61,12 +46,6 @@ export class IgxAccordionComponent implements AfterContentInit, AfterViewInit, O /** * Get/Set the `id` of the accordion component. * Default value is `"igx-accordion-0"`; - * ```html - * - * ``` - * ```typescript - * const accordionId = this.accordion.id; - * ``` */ @HostBinding('attr.id') @Input() @@ -82,19 +61,6 @@ export class IgxAccordionComponent implements AfterContentInit, AfterViewInit, O /** * Get/Set the animation settings that panels should use when expanding/collpasing. - * - * ```html - * - * ``` - * - * ```typescript - * const customAnimationSettings: ToggleAnimationSettings = { - * openAnimation: growVerIn, - * closeAnimation: growVerOut - * }; - * - * this.accordion.animationSettings = customAnimationSettings; - * ``` */ @Input() public get animationSettings(): ToggleAnimationSettings { @@ -109,16 +75,6 @@ export class IgxAccordionComponent implements AfterContentInit, AfterViewInit, O /** * Get/Set how the accordion handles the expansion of the projected expansion panels. * If set to `true`, only a single panel can be expanded at a time, collapsing all others - * - * ```html - * - * ... - * - * ``` - * - * ```typescript - * this.accordion.singleBranchExpand = false; - * ``` */ @Input({ transform: booleanAttribute }) public get singleBranchExpand(): boolean { @@ -137,38 +93,12 @@ export class IgxAccordionComponent implements AfterContentInit, AfterViewInit, O * * @remarks * This event is cancelable. - * - * ```html - * - * - * ``` - * - *```typescript - * public handlePanelExpanding(event: IExpansionPanelCancelableEventArgs){ - * const expandedPanel: IgxExpansionPanelComponent = event.panel; - * if (expandedPanel.disabled) { - * event.cancel = true; - * } - * } - *``` */ @Output() public panelExpanding = new EventEmitter(); /** * Emitted after a panel has been expanded. - * - * ```html - * - * - * ``` - * - *```typescript - * public handlePanelExpanded(event: IExpansionPanelCancelableEventArgs) { - * const expandedPanel: IgxExpansionPanelComponent = event.panel; - * console.log("Panel is expanded: ", expandedPanel.id); - * } - *``` */ @Output() public panelExpanded = new EventEmitter(); @@ -178,32 +108,18 @@ export class IgxAccordionComponent implements AfterContentInit, AfterViewInit, O * * @remarks * This event is cancelable. - * - * ```html - * - * - * ``` */ @Output() public panelCollapsing = new EventEmitter(); /** * Emitted after a panel has been collapsed. - * - * ```html - * - * - * ``` */ @Output() public panelCollapsed = new EventEmitter(); /** * Get all panels. - * - * ```typescript - * const panels: IgxExpansionPanelComponent[] = this.accordion.panels; - * ``` */ public get panels(): IgxExpansionPanelComponent[] { return this._panels?.toArray(); @@ -247,10 +163,6 @@ export class IgxAccordionComponent implements AfterContentInit, AfterViewInit, O /** * Expands all collapsed expansion panels. - * - * ```typescript - * accordion.expandAll(); - * ``` */ public expandAll(): void { if (this.singleBranchExpand) { @@ -266,10 +178,6 @@ export class IgxAccordionComponent implements AfterContentInit, AfterViewInit, O /** * Collapses all expanded expansion panels. - * - * ```typescript - * accordion.collapseAll(); - * ``` */ public collapseAll(): void { this.panels.forEach(panel => panel.collapse()); diff --git a/projects/igniteui-angular/action-strip/src/action-strip/action-strip.component.ts b/projects/igniteui-angular/action-strip/src/action-strip/action-strip.component.ts index d56215f99d8..583aa450a37 100644 --- a/projects/igniteui-angular/action-strip/src/action-strip/action-strip.component.ts +++ b/projects/igniteui-angular/action-strip/src/action-strip/action-strip.component.ts @@ -57,25 +57,9 @@ export class IgxActionStripMenuItemDirective { /** * Action Strip provides templatable area for one or more actions. * - * @igxModule IgxActionStripModule - * - * @igxTheme igx-action-strip-theme - * - * @igxKeywords action, strip, actionStrip, pinning, editing - * - * @igxGroup Data Entry & Display - * - * @igxParent IgxGridComponent, IgxTreeGridComponent, IgxHierarchicalGridComponent, IgxRowIslandComponent, * - * * @remarks * The Ignite UI Action Strip is a container, overlaying its parent container, * and displaying action buttons with action applicable to the parent component the strip is instantiated or shown for. - * - * @example - * ```html - * - * - * */ @Component({ selector: 'igx-action-strip', @@ -105,11 +89,6 @@ export class IgxActionStripComponent implements IgxActionStripToken, AfterViewIn * Sets the context of an action strip. * The context should be an instance of a @Component, that has element property. * This element will be the placeholder of the action strip. - * - * @example - * ```html - * - * ``` */ @Input() public context: any; @@ -140,11 +119,6 @@ export class IgxActionStripComponent implements IgxActionStripToken, AfterViewIn /** * Gets/Sets the visibility of the Action Strip. * Could be used to set if the Action Strip will be initially hidden. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public hidden = true; @@ -285,10 +259,6 @@ export class IgxActionStripComponent implements IgxActionStripToken, AfterViewIn * Showing the Action Strip and appending it the specified context element. * * @param context - * @example - * ```typescript - * this.actionStrip.show(row); - * ``` */ public show(context?: any): void { this.hidden = false; @@ -308,11 +278,6 @@ export class IgxActionStripComponent implements IgxActionStripToken, AfterViewIn /** * Hiding the Action Strip and removing it from its current context element. - * - * @example - * ```typescript - * this.actionStrip.hide(); - * ``` */ public hide(): void { this.hidden = true; diff --git a/projects/igniteui-angular/avatar/src/avatar/avatar.component.ts b/projects/igniteui-angular/avatar/src/avatar/avatar.component.ts index 91ead023fea..23724791a26 100644 --- a/projects/igniteui-angular/avatar/src/avatar/avatar.component.ts +++ b/projects/igniteui-angular/avatar/src/avatar/avatar.component.ts @@ -23,24 +23,10 @@ export type IgxAvatarType = (typeof IgxAvatarType)[keyof typeof IgxAvatarType]; /** * Avatar provides a way to display an image, icon or initials to the user. * - * @igxModule IgxAvatarModule - * - * @igxTheme igx-avatar-theme, igx-icon-theme - * - * @igxKeywords avatar, profile, picture, initials - * - * @igxGroup Layouts - * * @remarks * * The Ignite UI Avatar provides an easy way to add an avatar icon to your application. This icon can be an * image, someone's initials or a material icon from the Google Material icon set. - * - * @example - * ```html - * - * - * ``` */ @Component({ selector: 'igx-avatar', @@ -52,23 +38,12 @@ export class IgxAvatarComponent implements OnInit { /** * Returns the `aria-label` attribute of the avatar. - * - * @example - * ```typescript - * let ariaLabel = this.avatar.ariaLabel; - * ``` - * */ @HostBinding('attr.aria-label') public ariaLabel = 'avatar'; /** * Returns the `role` attribute of the avatar. - * - * @example - * ```typescript - * let avatarRole = this.avatar.role; - * ``` */ @HostBinding('attr.role') public role = 'img'; @@ -89,22 +64,12 @@ export class IgxAvatarComponent implements OnInit { * - `"icon type avatar"` * - `"image type avatar"`. * - `"custom type avatar"`. - * - * @example - * ```typescript - * let avatarDescription = this.avatar.roleDescription; - * ``` */ @HostBinding('attr.aria-roledescription') public roleDescription: string; /** * Sets the `id` of the avatar. If not set, the first avatar component will have `id` = `"igx-avatar-0"`. - * - * @example - * ```html - * - * ``` */ @HostBinding('attr.id') @Input() @@ -113,11 +78,6 @@ export class IgxAvatarComponent implements OnInit { /** * Sets square, rounded or circular shape to the avatar. * By default the shape of the avatar is square. - * - * @example - * ```html - * - * ``` */ @Input() public shape: 'square' | 'rounded' | 'circle' = 'square'; @@ -137,10 +97,6 @@ export class IgxAvatarComponent implements OnInit { /** * Sets the color of the avatar's initials or icon. * - * @example - * ```html - * - * ``` * @deprecated in version 17.2.0. */ @@ -151,11 +107,6 @@ export class IgxAvatarComponent implements OnInit { /** * Sets the background color of the avatar. * - * @example - * ```html - * - * ``` - * @igxFriendlyName Background color * @deprecated in version 17.2.0. */ @@ -165,34 +116,18 @@ export class IgxAvatarComponent implements OnInit { /** * Sets initials to the avatar. - * - * @example - * ```html - * - * ``` */ @Input() public initials: string; /** * Sets an icon to the avatar. All icons from the material icon set are supported. - * - * @example - * ```html - * - * ``` */ @Input() public icon: string; /** * Sets the image source of the avatar. - * - * @example - * ```html - * - * ``` - * @igxFriendlyName Image URL */ @Input() public set src(value: string) { @@ -228,11 +163,6 @@ export class IgxAvatarComponent implements OnInit { /** * Returns the size of the avatar. - * - * @example - * ```typescript - * let avatarSize = this.avatar.size; - * ``` */ @Input() public get size(): string | IgxAvatarSize { @@ -242,11 +172,6 @@ export class IgxAvatarComponent implements OnInit { /** * Sets the size of the avatar. * By default, the size is `"small"`. It can be set to `"medium"` or `"large"`. - * - * @example - * ```html - * - * ``` */ public set size(value: string | IgxAvatarSize) { switch (value) { @@ -262,11 +187,6 @@ export class IgxAvatarComponent implements OnInit { /** * Returns the type of the avatar. - * - * @example - * ```typescript - * let avatarType = this.avatar.type; - * ``` */ public get type(): IgxAvatarType { if (this.src) { diff --git a/projects/igniteui-angular/badge/src/badge/badge.component.ts b/projects/igniteui-angular/badge/src/badge/badge.component.ts index 99baa5ae77e..03e442eec8e 100644 --- a/projects/igniteui-angular/badge/src/badge/badge.component.ts +++ b/projects/igniteui-angular/badge/src/badge/badge.component.ts @@ -17,24 +17,10 @@ export type IgxBadgeType = (typeof IgxBadgeType)[keyof typeof IgxBadgeType]; /** * Badge provides visual notifications used to decorate avatars, menus, etc. * - * @igxModule IgxBadgeModule - * - * @igxTheme igx-badge-theme - * - * @igxKeywords badge, icon, notification - * - * @igxGroup Data Entry & Display - * * @remarks * The Ignite UI Badge is used to decorate avatars, navigation menus, or other components in the * application when visual notification is needed. They are usually designed as icons with a predefined * style to communicate information, success, warnings, or errors. - * - * @example - * ```html - * - * - * */ @Component({ selector: 'igx-badge', @@ -48,11 +34,6 @@ export class IgxBadgeComponent { * * @remarks * If not set, the `id` will have value `"igx-badge-0"`. - * - * @example - * ```html - * - * ``` */ @HostBinding('attr.id') @Input() @@ -64,11 +45,6 @@ export class IgxBadgeComponent { * @remarks * Allowed values are `primary`, `info`, `success`, `warning`, `error`. * Providing an invalid value won't display a badge. - * - * @example - * ```html - * - * ``` */ @Input() public type: string | IgxBadgeType = IgxBadgeType.PRIMARY; @@ -79,11 +55,6 @@ export class IgxBadgeComponent { * @remarks * If an `icon` property is already set the `icon` will be displayed. * If neither a `value` nor an `icon` is set the content of the badge will be empty. - * - * @example - * ```html - * - * ``` */ @Input() public value: string | number = ''; @@ -95,11 +66,6 @@ export class IgxBadgeComponent { * Has priority over the `value` property. * If neither a `value` nor an `icon` is set the content of the badge will be empty. * Providing an invalid value won't display anything. - * - * @example - * ```html - * - * ``` */ @Input() public icon: string; @@ -113,13 +79,10 @@ export class IgxBadgeComponent { /** * Sets/gets the role attribute value. * - * @example - * ```typescript * @ViewChild("MyBadge", { read: IgxBadgeComponent }) * public badge: IgxBadgeComponent; * * badge.role = 'status'; - * ``` */ @HostBinding('attr.role') public role = 'status'; @@ -127,13 +90,10 @@ export class IgxBadgeComponent { /** * Sets/gets the css class to use on the badge. * - * @example - * ```typescript * @ViewChild("MyBadge", { read: IgxBadgeComponent }) * public badge: IgxBadgeComponent; * * badge.cssClass = 'my-badge-class'; - * ``` */ @HostBinding('class.igx-badge') public cssClass = 'igx-badge'; @@ -141,11 +101,6 @@ export class IgxBadgeComponent { /** * Sets a square shape to the badge, if `shape` is set to `square`. * By default the shape of the badge is rounded. - * - * @example - * ```html - * - * ``` */ @Input() public shape: 'rounded' | 'square' = 'rounded'; @@ -161,13 +116,10 @@ export class IgxBadgeComponent { /** * Sets/gets the aria-label attribute value. * - * @example - * ```typescript * @ViewChild("MyBadge", { read: IgxBadgeComponent }) * public badge: IgxBadgeComponent; * * badge.label = 'badge'; - * ``` */ @HostBinding('attr.aria-label') public label = 'badge'; @@ -175,11 +127,6 @@ export class IgxBadgeComponent { /** * Sets/gets whether the badge is outlined. * Default value is `false`. - * - * @example - * ```html - * - * ``` */ @Input({transform: booleanAttribute}) @HostBinding('class.igx-badge--outlined') @@ -189,11 +136,6 @@ export class IgxBadgeComponent { * Sets/gets whether the badge is displayed as a dot. * When true, the badge will be rendered as a minimal 8px indicator without any content. * Default value is `false`. - * - * @example - * ```html - * - * ``` */ @Input({transform: booleanAttribute}) @HostBinding('class.igx-badge--dot') diff --git a/projects/igniteui-angular/banner/src/banner/banner.component.ts b/projects/igniteui-angular/banner/src/banner/banner.component.ts index 8de0f4b6ed6..855536da797 100644 --- a/projects/igniteui-angular/banner/src/banner/banner.component.ts +++ b/projects/igniteui-angular/banner/src/banner/banner.component.ts @@ -38,16 +38,6 @@ export interface BannerCancelEventArgs extends BannerEventArgs, CancelableEventA * The Ignite UI Banner provides a highly template-able and easy to use banner that can be shown in your application. * * Usage: - * - * ```html - * - * Our privacy settings have changed. - * - * - * - * - * - * ``` */ @Component({ selector: 'igx-banner', @@ -65,56 +55,24 @@ export class IgxBannerComponent implements IToggleView { /** * Fires after the banner shows up - * ```typescript - * public handleOpened(event) { - * ... - * } - * ``` - * ```html - * - * ``` */ @Output() public opened = new EventEmitter(); /** * Fires before the banner shows up - * ```typescript - * public handleOpening(event) { - * ... - * } - * ``` - * ```html - * - * ``` */ @Output() public opening = new EventEmitter(); /** * Fires after the banner hides - * ```typescript - * public handleClosed(event) { - * ... - * } - * ``` - * ```html - * - * ``` */ @Output() public closed = new EventEmitter(); /** * Fires before the banner hides - * ```typescript - * public handleClosing(event) { - * ... - * } - * ``` - * ```html - * - * ``` */ @Output() public closing = new EventEmitter(); @@ -126,11 +84,6 @@ export class IgxBannerComponent implements IToggleView { /** * Set the animation settings used by the banner open/close methods - * ```typescript - * import { slideInLeft, slideOutRight } from 'igniteui-angular'; - * ... - * banner.animationSettings: ToggleAnimationSettings = { openAnimation: slideInLeft, closeAnimation: slideOutRight }; - * ``` */ public set animationSettings(settings: ToggleAnimationSettings) { this._animationSettings = settings; @@ -138,9 +91,6 @@ export class IgxBannerComponent implements IToggleView { /** * Get the animation settings used by the banner open/close methods - * ```typescript - * let currentAnimations: ToggleAnimationSettings = banner.animationSettings - * ``` */ @Input() public get animationSettings(): ToggleAnimationSettings { @@ -166,18 +116,6 @@ export class IgxBannerComponent implements IToggleView { * Gets/Sets whether the banner is expanded (visible) or collapsed (hidden). * Defaults to `false`. * Setting to `true` opens the banner, while `false` closes it. - * - * @example - * // Expand the banner - * banner.expanded = true; - * - * @example - * // Collapse the banner - * banner.expanded = false; - * - * @example - * // Check if the banner is expanded - * const isExpanded = banner.expanded; */ @Input() public get expanded(): boolean { @@ -201,10 +139,6 @@ export class IgxBannerComponent implements IToggleView { /** * Gets whether the banner is collapsed. - * - * ```typescript - * const isCollapsed: boolean = banner.collapsed; - * ``` */ public get collapsed(): boolean { return this._expansionPanel.collapsed; @@ -212,9 +146,6 @@ export class IgxBannerComponent implements IToggleView { /** * Returns the native element of the banner component - * ```typescript - * const myBannerElement: HTMLElement = banner.element; - * ``` */ public get element() { return this.elementRef.nativeElement; @@ -253,17 +184,6 @@ export class IgxBannerComponent implements IToggleView { /** * Opens the banner - * - * ```typescript - * myBanner.open(); - * ``` - * - * ```html - * - * ... - * - * - * ``` */ public open(event?: Event) { this._bannerEvent = { owner: this, event }; @@ -283,17 +203,6 @@ export class IgxBannerComponent implements IToggleView { /** * Closes the banner - * - * ```typescript - * myBanner.close(); - * ``` - * - * ```html - * - * ... - * - * - * ``` */ public close(event?: Event) { this._bannerEvent = { owner: this, event}; @@ -313,17 +222,6 @@ export class IgxBannerComponent implements IToggleView { /** * Toggles the banner - * - * ```typescript - * myBanner.toggle(); - * ``` - * - * ```html - * - * ... - * - * - * ``` */ public toggle(event?: Event) { if (this.collapsed) { diff --git a/projects/igniteui-angular/bottom-nav/src/bottom-nav/bottom-nav.component.ts b/projects/igniteui-angular/bottom-nav/src/bottom-nav/bottom-nav.component.ts index 90de22cd5a7..34b943ec20a 100644 --- a/projects/igniteui-angular/bottom-nav/src/bottom-nav/bottom-nav.component.ts +++ b/projects/igniteui-angular/bottom-nav/src/bottom-nav/bottom-nav.component.ts @@ -9,33 +9,9 @@ let NEXT_BOTTOM_NAV_ITEM_ID = 0; /** * Bottom Navigation component enables the user to navigate among a number of contents displayed in a single view. * - * @igxModule IgxBottomNavModule - * - * @igxTheme igx-bottom-nav-theme - * - * @igxKeywords bottom navigation - * - * @igxGroup Layouts - * * @remarks * The Ignite UI for Angular Bottom Navigation component enables the user to navigate among a number of contents * displayed in a single view. The navigation through the contents is accomplished with the tab buttons located at bottom. - * - * @example - * ```html - * - * - * - * folder - * Tab 1 - * - * - * Content 1 - * - * - * ... - * - * ``` */ @Component({ selector: 'igx-bottom-nav', diff --git a/projects/igniteui-angular/button-group/src/button-group/button-group.component.ts b/projects/igniteui-angular/button-group/src/button-group/button-group.component.ts index f11590b12c7..02bb9a5de80 100644 --- a/projects/igniteui-angular/button-group/src/button-group/button-group.component.ts +++ b/projects/igniteui-angular/button-group/src/button-group/button-group.component.ts @@ -26,17 +26,7 @@ let NEXT_ID = 0; * single, multi and singleRequired selection. * * Example: - * ```html - * - * - * ``` * The `fontOptions` value shown above is defined as: - * ```typescript - * this.fontOptions = [ - * { icon: 'format_bold', selected: false }, - * { icon: 'format_italic', selected: false }, - * { icon: 'format_underlined', selected: false }]; - * ``` */ @Component({ selector: 'igx-buttongroup', @@ -57,9 +47,6 @@ export class IgxButtonGroupComponent implements AfterViewInit, OnDestroy { /** * Gets/Sets the value of the `id` attribute. If not set it will be automatically generated. - * ```html - * - * ``` */ @HostBinding('attr.id') @Input() @@ -74,13 +61,6 @@ export class IgxButtonGroupComponent implements AfterViewInit, OnDestroy { /** * Allows you to set a style using the `itemContentCssClass` input. * The value should be the CSS class name that will be applied to the button group. - * ```typescript - * public style1 = "styleClass"; - * //.. - * ``` - * ```html - * - * ``` */ @Input() public set itemContentCssClass(value: string) { @@ -89,13 +69,6 @@ export class IgxButtonGroupComponent implements AfterViewInit, OnDestroy { /** * Returns the CSS class of the item content of the `IgxButtonGroup`. - * ```typescript - * @ViewChild("MyChild") - * public buttonG: IgxButtonGroupComponent; - * ngAfterViewInit(){ - * let buttonSelect = this.buttonG.itemContentCssClass; - * } - * ``` */ public get itemContentCssClass(): string { return this._itemContentCssClass; @@ -124,9 +97,6 @@ export class IgxButtonGroupComponent implements AfterViewInit, OnDestroy { /** * Gets/Sets the selection mode to 'single', 'singleRequired' or 'multi' of the buttons. By default, the selection mode is 'single'. - * ```html - * - * ``` */ @Input() public get selectionMode() { @@ -145,37 +115,11 @@ export class IgxButtonGroupComponent implements AfterViewInit, OnDestroy { /** * Property that configures the buttons in the button group using a collection of `Button` objects. - * ```typescript - * public ngOnInit() { - * this.cities = [ - * new Button({ - * label: "Sofia" - * }), - * new Button({ - * label: "London" - * }), - * new Button({ - * label: "New York", - * selected: true - * }), - * new Button({ - * label: "Tokyo" - * }) - * ]; - * } - * //.. - * ``` - * ```html - * - * ``` */ @Input() public values: any; /** * Disables the `igx-buttongroup` component. By default it's false. - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public get disabled(): boolean { @@ -194,13 +138,6 @@ export class IgxButtonGroupComponent implements AfterViewInit, OnDestroy { /** * Allows you to set the button group alignment. * Available options are `ButtonGroupAlignment.horizontal` (default) and `ButtonGroupAlignment.vertical`. - * ```typescript - * public alignment = ButtonGroupAlignment.vertical; - * //.. - * ``` - * ```html - * - * ``` */ @Input() public set alignment(value: ButtonGroupAlignment) { @@ -208,13 +145,6 @@ export class IgxButtonGroupComponent implements AfterViewInit, OnDestroy { } /** * Returns the alignment of the `igx-buttongroup`. - * ```typescript - * @ViewChild("MyChild") - * public buttonG: IgxButtonGroupComponent; - * ngAfterViewInit(){ - * let buttonAlignment = this.buttonG.alignment; - * } - * ``` */ public get alignment(): ButtonGroupAlignment { return this._isVertical ? ButtonGroupAlignment.vertical : ButtonGroupAlignment.horizontal; @@ -222,36 +152,12 @@ export class IgxButtonGroupComponent implements AfterViewInit, OnDestroy { /** * An @Ouput property that emits an event when a button is selected. - * ```typescript - * @ViewChild("toast") - * private toast: IgxToastComponent; - * public selectedHandler(buttongroup) { - * this.toast.open() - * } - * //... - * ``` - * ```html - * - * You have made a selection! - * ``` */ @Output() public selected = new EventEmitter(); /** * An @Ouput property that emits an event when a button is deselected. - * ```typescript - * @ViewChild("toast") - * private toast: IgxToastComponent; - * public deselectedHandler(buttongroup){ - * this.toast.open() - * } - * //... - * ``` - * ```html - * #MyChild [selectionMode]="'multi'" (deselected)="deselectedHandler($event)"> - * You have deselected a button! - * ``` */ @Output() public deselected = new EventEmitter(); @@ -262,17 +168,6 @@ export class IgxButtonGroupComponent implements AfterViewInit, OnDestroy { /** * Returns true if the `igx-buttongroup` alignment is vertical. * Note that in order for the accessor to work correctly the property should be set explicitly. - * ```html - * - * ``` - * ```typescript - * //... - * @ViewChild("MyChild") - * private buttonG: IgxButtonGroupComponent; - * ngAfterViewInit(){ - * let orientation = this.buttonG.isVertical; - * } - * ``` */ public get isVertical(): boolean { return this._isVertical; @@ -300,13 +195,6 @@ export class IgxButtonGroupComponent implements AfterViewInit, OnDestroy { /** * Gets the selected button/buttons. - * ```typescript - * @ViewChild("MyChild") - * private buttonG: IgxButtonGroupComponent; - * ngAfterViewInit(){ - * let selectedButton = this.buttonG.selectedButtons; - * } - * ``` */ public get selectedButtons(): IgxButtonDirective[] { return this.buttons.filter((_, i) => this.selectedIndexes.indexOf(i) !== -1); @@ -314,14 +202,6 @@ export class IgxButtonGroupComponent implements AfterViewInit, OnDestroy { /** * Selects a button by its index. - * ```typescript - * @ViewChild("MyChild") - * private buttonG: IgxButtonGroupComponent; - * ngAfterViewInit(){ - * this.buttonG.selectButton(2); - * this.cdr.detectChanges(); - * } - * ``` * * @memberOf {@link IgxButtonGroupComponent} */ @@ -382,14 +262,6 @@ export class IgxButtonGroupComponent implements AfterViewInit, OnDestroy { /** * Deselects a button by its index. - * ```typescript - * @ViewChild("MyChild") - * private buttonG: IgxButtonGroupComponent; - * ngAfterViewInit(){ - * this.buttonG.deselectButton(2); - * this.cdr.detectChanges(); - * } - * ``` * * @memberOf {@link IgxButtonGroupComponent} */ diff --git a/projects/igniteui-angular/calendar/src/calendar/calendar-base.ts b/projects/igniteui-angular/calendar/src/calendar/calendar-base.ts index 98315a6fa0e..07b35247ea9 100644 --- a/projects/igniteui-angular/calendar/src/calendar/calendar-base.ts +++ b/projects/igniteui-angular/calendar/src/calendar/calendar-base.ts @@ -59,12 +59,6 @@ export class IgxCalendarBaseDirective implements ControlValueAccessor { /** * Sets/gets whether the outside dates (dates that are out of the current month) will be hidden. * Default value is `false`. - * ```html - * - * ``` - * ```typescript - * let hideOutsideDays = this.calendar.hideOutsideDays; - * ``` */ @Input({ transform: booleanAttribute }) @@ -79,28 +73,12 @@ export class IgxCalendarBaseDirective implements ControlValueAccessor { /** * Emits an event when the month in view is changed. - * ```html - * - * ``` - * ```typescript - * public viewDateChanged(event: IViewDateChangeEventArgs) { - * let viewDate = event.currentValue; - * } - * ``` */ @Output() public viewDateChanged = new EventEmitter(); /** * Emits an event when the active view is changed. - * ```html - * - * ``` - * ```typescript - * public activeViewChanged(event: CalendarView) { - * let activeView = event; - * } - * ``` */ @Output() public activeViewChanged = new EventEmitter(); @@ -366,9 +344,6 @@ export class IgxCalendarBaseDirective implements ControlValueAccessor { /** * Gets the current active view. - * ```typescript - * this.activeView = calendar.activeView; - * ``` */ @Input() public get activeView(): IgxCalendarView { @@ -377,12 +352,6 @@ export class IgxCalendarBaseDirective implements ControlValueAccessor { /** * Sets the current active view. - * ```html - * - * ``` - * ```typescript - * calendar.activeView = IgxCalendarView.YEAR; - * ``` */ public set activeView(val: IgxCalendarView) { this._activeView = val; @@ -570,15 +539,6 @@ export class IgxCalendarBaseDirective implements ControlValueAccessor { /** * Sets the disabled dates' descriptors. - * ```typescript - * @ViewChild("MyCalendar") - * public calendar: IgxCalendarComponent; - * ngOnInit(){ - * this.calendar.disabledDates = [ - * {type: DateRangeType.Between, dateRange: [new Date("2020-1-1"), new Date("2020-1-15")]}, - * {type: DateRangeType.Weekends}]; - * } - * ``` */ public set disabledDates(value: DateRangeDescriptor[]) { this._disabledDates = value; @@ -611,15 +571,6 @@ export class IgxCalendarBaseDirective implements ControlValueAccessor { /** * Sets the special dates' descriptors. - * ```typescript - * @ViewChild("MyCalendar") - * public calendar: IgxCalendarComponent; - * ngOnInit(){ - * this.calendar.specialDates = [ - * {type: DateRangeType.Between, dateRange: [new Date("2020-1-1"), new Date("2020-1-15")]}, - * {type: DateRangeType.Weekends}]; - * } - * ``` */ public set specialDates(value: DateRangeDescriptor[]) { this._specialDates = value; diff --git a/projects/igniteui-angular/calendar/src/calendar/calendar.component.ts b/projects/igniteui-angular/calendar/src/calendar/calendar.component.ts index c8c8de763ac..129ee91b22f 100644 --- a/projects/igniteui-angular/calendar/src/calendar/calendar.component.ts +++ b/projects/igniteui-angular/calendar/src/calendar/calendar.component.ts @@ -39,22 +39,9 @@ let NEXT_ID = 0; /** * Calendar provides a way to display date information. * - * @igxModule IgxCalendarModule - * - * @igxTheme igx-calendar-theme, igx-icon-theme - * - * @igxKeywords calendar, datepicker, schedule, date - * - * @igxGroup Scheduling - * * @remarks * The Ignite UI Calendar provides an easy way to display a calendar and allow users to select dates using single, multiple * or range selection. - * - * @example: - * ```html - * - * ``` */ @Component({ providers: [ @@ -92,10 +79,6 @@ export class IgxCalendarComponent extends IgxCalendarBaseDirective implements Af * @remarks * If not set, the `id` will have value `"igx-calendar-0"`. * - * @example - * ```html - * - * ``` * @memberof IgxCalendarComponent */ @HostBinding('attr.id') @@ -105,11 +88,6 @@ export class IgxCalendarComponent extends IgxCalendarBaseDirective implements Af /** * Sets/gets whether the calendar has header. * Default value is `true`. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public hasHeader = true; @@ -117,11 +95,6 @@ export class IgxCalendarComponent extends IgxCalendarBaseDirective implements Af /** * Sets/gets whether the calendar header will be in vertical position. * Default value is `false`. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public vertical = false; @@ -135,11 +108,6 @@ export class IgxCalendarComponent extends IgxCalendarBaseDirective implements Af /** * Sets/gets the number of month views displayed. * Default value is `1`. - * - * @example - * ```html - * - * ``` */ @Input() public get monthsViewNumber() { @@ -156,11 +124,6 @@ export class IgxCalendarComponent extends IgxCalendarBaseDirective implements Af /** * Show/hide week numbers - * - * @example - * ```html - * - * `` */ @Input({ transform: booleanAttribute }) public showWeekNumbers = false; @@ -261,10 +224,6 @@ export class IgxCalendarComponent extends IgxCalendarBaseDirective implements Af /** * Gets the header template. * - * @example - * ```typescript - * let headerTitleTemplate = this.calendar.headerTitleTeamplate; - * ``` * @memberof IgxCalendarComponent */ public get headerTitleTemplate(): any { @@ -277,10 +236,6 @@ export class IgxCalendarComponent extends IgxCalendarBaseDirective implements Af /** * Sets the header template. * - * @example - * ```html - * - * ``` * @memberof IgxCalendarComponent */ public set headerTitleTemplate(directive: any) { @@ -290,10 +245,6 @@ export class IgxCalendarComponent extends IgxCalendarBaseDirective implements Af /** * Gets the header template. * - * @example - * ```typescript - * let headerTemplate = this.calendar.headerTeamplate; - * ``` * @memberof IgxCalendarComponent */ public get headerTemplate(): any { @@ -306,10 +257,6 @@ export class IgxCalendarComponent extends IgxCalendarBaseDirective implements Af /** * Sets the header template. * - * @example - * ```html - * - * ``` * @memberof IgxCalendarComponent */ public set headerTemplate(directive: any) { @@ -318,11 +265,6 @@ export class IgxCalendarComponent extends IgxCalendarBaseDirective implements Af /** * Gets the subheader template. - * - * @example - * ```typescript - * let subheaderTemplate = this.calendar.subheaderTemplate; - * ``` */ public get subheaderTemplate(): any { if (this.subheaderTemplateDirective) { @@ -334,10 +276,6 @@ export class IgxCalendarComponent extends IgxCalendarBaseDirective implements Af /** * Sets the subheader template. * - * @example - * ```html - * - * ``` * @memberof IgxCalendarComponent */ public set subheaderTemplate(directive: any) { @@ -346,11 +284,6 @@ export class IgxCalendarComponent extends IgxCalendarBaseDirective implements Af /** * Gets the context for the template marked with the `igxCalendarHeader` directive. - * - * @example - * ```typescript - * let headerContext = this.calendar.headerContext; - * ``` */ public get headerContext() { return this.generateContext(this.headerDate); @@ -359,11 +292,6 @@ export class IgxCalendarComponent extends IgxCalendarBaseDirective implements Af /** * Gets the context for the template marked with either `igxCalendarSubHeaderMonth` * or `igxCalendarSubHeaderYear` directive. - * - * @example - * ```typescript - * let context = this.calendar.context; - * ``` */ public get context() { const date: Date = this.viewDate; @@ -1016,11 +944,6 @@ export class IgxCalendarComponent extends IgxCalendarBaseDirective implements Af /** * Deselects date(s) (based on the selection type). - * - * @example - * ```typescript - * this.calendar.deselectDate(new Date(`2018-06-12`)); - * ```` */ public override deselectDate(value?: Date | Date[] | string) { super.deselectDate(value); diff --git a/projects/igniteui-angular/calendar/src/calendar/common/calendar-view.directive.ts b/projects/igniteui-angular/calendar/src/calendar/common/calendar-view.directive.ts index ee239701fa3..4ea21dfd80c 100644 --- a/projects/igniteui-angular/calendar/src/calendar/common/calendar-view.directive.ts +++ b/projects/igniteui-angular/calendar/src/calendar/common/calendar-view.directive.ts @@ -148,9 +148,6 @@ export abstract class IgxCalendarViewDirective implements ControlValueAccessor { /** * Gets/sets the selected date of the view. * By default it's the current date. - * ```typescript - * let date = this.view.date; - * ``` * * @memberof IgxYearsViewComponent */ @@ -168,9 +165,6 @@ export abstract class IgxCalendarViewDirective implements ControlValueAccessor { /** * Gets the `locale` of the view. * Default value is `"en"`. - * ```typescript - * let locale = this.view.locale; - * ``` * * @memberof IgxCalendarViewDirective */ diff --git a/projects/igniteui-angular/calendar/src/calendar/days-view/day-item.component.ts b/projects/igniteui-angular/calendar/src/calendar/days-view/day-item.component.ts index 69c708164a9..5c539422368 100644 --- a/projects/igniteui-angular/calendar/src/calendar/days-view/day-item.component.ts +++ b/projects/igniteui-angular/calendar/src/calendar/days-view/day-item.component.ts @@ -25,7 +25,6 @@ export class IgxDayItemComponent { /** * Returns boolean indicating if the day is selected - * */ @Input() public get selected(): any { diff --git a/projects/igniteui-angular/calendar/src/calendar/days-view/days-view.component.ts b/projects/igniteui-angular/calendar/src/calendar/days-view/days-view.component.ts index b6ccda0b399..93b2b771a12 100644 --- a/projects/igniteui-angular/calendar/src/calendar/days-view/days-view.component.ts +++ b/projects/igniteui-angular/calendar/src/calendar/days-view/days-view.component.ts @@ -64,12 +64,6 @@ export class IgxDaysViewComponent extends IgxCalendarBaseDirective implements Af /** * Sets/gets the `id` of the days view. * If not set, the `id` will have value `"igx-days-view-0"`. - * ```html - * - * ``` - * ```typescript - * let daysViewId = this.daysView.id; - * ``` */ @HostBinding('attr.id') @Input() @@ -105,11 +99,6 @@ export class IgxDaysViewComponent extends IgxCalendarBaseDirective implements Af /** * Show/hide week numbers - * - * @example - * ```html - * - * `` */ @Input({ transform: booleanAttribute }) public showWeekNumbers: boolean; diff --git a/projects/igniteui-angular/calendar/src/calendar/month-picker/month-picker.component.ts b/projects/igniteui-angular/calendar/src/calendar/month-picker/month-picker.component.ts index d41f3b4721d..0ca64c68d68 100644 --- a/projects/igniteui-angular/calendar/src/calendar/month-picker/month-picker.component.ts +++ b/projects/igniteui-angular/calendar/src/calendar/month-picker/month-picker.component.ts @@ -240,9 +240,6 @@ export class IgxMonthPickerComponent extends IgxCalendarBaseDirective implements /** * Selects a date. - * ```typescript - * this.monthPicker.selectDate(new Date(`2018-06-12`)); - * ``` */ public override selectDate(value: Date) { if (!value) { diff --git a/projects/igniteui-angular/calendar/src/calendar/months-view/months-view.component.ts b/projects/igniteui-angular/calendar/src/calendar/months-view/months-view.component.ts index 41e34c6e3c8..1471111dadc 100644 --- a/projects/igniteui-angular/calendar/src/calendar/months-view/months-view.component.ts +++ b/projects/igniteui-angular/calendar/src/calendar/months-view/months-view.component.ts @@ -43,12 +43,6 @@ export class IgxMonthsViewComponent extends IgxCalendarViewDirective implements /** * Sets/gets the `id` of the months view. * If not set, the `id` will have value `"igx-months-view-0"`. - * ```html - * - * ``` - * ```typescript - * let monthsViewId = this.monthsView.id; - * ``` * * @memberof IgxMonthsViewComponent */ @@ -79,9 +73,6 @@ export class IgxMonthsViewComponent extends IgxCalendarViewDirective implements /** * Gets the month format option of the months view. - * ```typescript - * let monthFormat = this.monthsView.monthFormat. - * ``` */ @Input() public get monthFormat(): any { @@ -90,9 +81,6 @@ export class IgxMonthsViewComponent extends IgxCalendarViewDirective implements /** * Sets the month format option of the months view. - * ```html - * [monthFormat]="short'" - * ``` * * @memberof IgxMonthsViewComponent */ diff --git a/projects/igniteui-angular/calendar/src/calendar/years-view/years-view.component.ts b/projects/igniteui-angular/calendar/src/calendar/years-view/years-view.component.ts index adde79ae3d5..af1bb6cb03f 100644 --- a/projects/igniteui-angular/calendar/src/calendar/years-view/years-view.component.ts +++ b/projects/igniteui-angular/calendar/src/calendar/years-view/years-view.component.ts @@ -76,9 +76,6 @@ export class IgxYearsViewComponent extends IgxCalendarViewDirective implements C /** * Gets the year format option of the years view. - * ```typescript - * let yearFormat = this.yearsView.yearFormat. - * ``` */ @Input() public get yearFormat(): any { @@ -87,9 +84,6 @@ export class IgxYearsViewComponent extends IgxCalendarViewDirective implements C /** * Sets the year format option of the years view. - * ```html - * - * ``` * * @memberof IgxYearsViewComponent */ diff --git a/projects/igniteui-angular/card/src/card/card.component.ts b/projects/igniteui-angular/card/src/card/card.component.ts index 8e1dda11c68..dc4cde0a9f6 100644 --- a/projects/igniteui-angular/card/src/card/card.component.ts +++ b/projects/igniteui-angular/card/src/card/card.component.ts @@ -19,11 +19,6 @@ export class IgxCardMediaDirective { /** * Sets the `width` and `min-width` style property * of the media container. If not provided it will be set to `auto`. - * - * @example - * ```html - * - * ``` */ @HostBinding('style.width') @HostBinding('style.min-width') @@ -33,11 +28,6 @@ export class IgxCardMediaDirective { /** * Sets the `height` style property of the media container. * If not provided it will be set to `auto`. - * - * @example - * ```html - * - * ``` */ @HostBinding('style.height') @Input() @@ -67,11 +57,6 @@ export class IgxCardHeaderComponent { /** * Sets the layout style of the header. * By default the header elements(thumbnail and title/subtitle) are aligned horizontally. - * - * @example - * ```html - * - * ``` */ @HostBinding('class.igx-card-header--vertical') @Input({ transform: booleanAttribute }) @@ -141,11 +126,6 @@ export class IgxCardFooterDirective { /** * Sets the value of the `role` attribute of the card footer. * By default the value is set to `footer`. - * - * @example - * ```html - * - * ``` */ @HostBinding('attr.role') @Input() @@ -155,31 +135,9 @@ export class IgxCardFooterDirective { /** * Card provides a way to display organized content in appealing way. * - * @igxModule IgxCardModule - * - * @igxTheme igx-card-theme, igx-icon-theme, igx-button-theme - * - * @igxKeywords card, button, avatar, icon - * - * @igxGroup Layouts - * * @remarks * The Ignite UI Card serves as a container that allows custom content to be organized in an appealing way. There are * five sections in a card that you can use to organize your content. These are header, media, content, actions, and footer. - * - * @example - * ```html - * - * - *

{{title}}

- *
{{subtitle}}
- *
- * - * - * - * - *
- * ``` */ @Component({ @@ -191,14 +149,6 @@ export class IgxCardComponent { /** * Sets/gets the `id` of the card. * If not set, `id` will have value `"igx-card-0"`; - * - * @example - * ```html - * - * ``` - * ```typescript - * let cardId = this.card.id; - * ``` */ @HostBinding('attr.id') @Input() @@ -216,11 +166,6 @@ export class IgxCardComponent { /** * Sets the value of the `role` attribute of the card. * By default the value is set to `group`. - * - * @example - * ```html - * - * ``` */ @HostBinding('attr.role') @Input() @@ -229,14 +174,6 @@ export class IgxCardComponent { /** * Sets/gets whether the card is elevated. * Default value is `false`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let cardElevation = this.card.elevated; - * ``` */ @Input({transform: booleanAttribute}) @HostBinding('class.igx-card--elevated') @@ -246,11 +183,6 @@ export class IgxCardComponent { * Sets the value of the `horizontal` attribute of the card. * Setting this to `true` will make the different card sections align horizontally, * essentially flipping the card to the side. - * - * @example - * ```html - * - * ``` */ @HostBinding('class.igx-card--horizontal') @Input({ transform: booleanAttribute }) @@ -279,11 +211,6 @@ export class IgxCardActionsComponent implements OnInit, OnChanges { * You can justify the elements slotted in the igx-card-action container * so that they are positioned equally from one another taking up all the * space available along the card actions axis. - * - * @example - * ```html - * - * ``` */ @HostBinding('class.igx-card-actions') @Input() diff --git a/projects/igniteui-angular/carousel/src/carousel/carousel.component.ts b/projects/igniteui-angular/carousel/src/carousel/carousel.component.ts index c7c27892c08..fe15c8e7770 100644 --- a/projects/igniteui-angular/carousel/src/carousel/carousel.component.ts +++ b/projects/igniteui-angular/carousel/src/carousel/carousel.component.ts @@ -32,17 +32,6 @@ export class CarouselHammerConfig extends HammerGestureConfig { * It can be used as a separate fullscreen element or inside another component. * * Example: - * ```html - * - * - *

First Slide Header

- *

First slide Content

- * - * - *

Second Slide Header

- *

Second Slide Content

- *
- * ``` */ @Component({ providers: [ @@ -71,9 +60,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Sets the `id` of the carousel. * If not set, the `id` of the first carousel component will be `"igx-carousel-0"`. - * ```html - * - * ``` * * @memberof IgxCarouselComponent */ @@ -82,9 +68,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On public id = `igx-carousel-${NEXT_ID++}`; /** * Returns the `role` attribute of the carousel. - * ```typescript - * let carouselRole = this.carousel.role; - * ``` * * @memberof IgxCarouselComponent */ @@ -108,9 +91,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Returns the class of the carousel component. - * ```typescript - * let class = this.carousel.cssClass; - * ``` * * @memberof IgxCarouselComponent */ @@ -119,9 +99,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Gets the `touch-action` style of the `list item`. - * ```typescript - * let touchAction = this.listItem.touchAction; - * ``` */ @HostBinding('style.touch-action') public get touchAction() { @@ -131,9 +108,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Sets whether the carousel should `loop` back to the first slide after reaching the last slide. * Default value is `true`. - * ```html - * - * ``` * * @memberOf IgxCarouselComponent */ @@ -142,9 +116,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Sets whether the carousel will `pause` the slide transitions on user interactions. * Default value is `true`. - * ```html - * - * ``` * * @memberOf IgxCarouselComponent */ @@ -153,9 +124,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Controls whether the carousel should render the left/right `navigation` buttons. * Default value is `true`. - * ```html - * - * ``` * * @memberOf IgxCarouselComponent */ @@ -164,9 +132,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Controls whether the carousel should render the indicators. * Default value is `true`. - * ```html - * - * ``` * * @memberOf IgxCarouselComponent */ @@ -176,9 +141,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Controls whether the carousel has vertical alignment. * Default value is `false`. - * ```html - * - * ``` * * @memberOf IgxCarouselComponent */ @@ -187,9 +149,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Controls whether the carousel should support gestures. * Default value is `true`. - * ```html - * - * ``` * * @memberOf IgxCarouselComponent */ @@ -198,9 +157,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Controls the maximum indexes that can be shown. * Default value is `10`. - * ```html - * - * ``` * * @memberOf IgxCarouselComponent */ @@ -209,10 +165,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Gets/sets the display mode of carousel indicators. It can be `start` or `end`. * Default value is `end`. - * ```html - * - * - * ``` * * @memberOf IgxCarouselComponent */ @@ -221,10 +173,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Gets/sets the animation type of carousel. * Default value is `slide`. - * ```html - * - * - * ``` * * @memberOf IgxCarouselComponent */ @@ -232,77 +180,24 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * The custom template, if any, that should be used when rendering carousel indicators - * - * ```typescript - * // Set in typescript - * const myCustomTemplate: TemplateRef = myComponent.customTemplate; - * myComponent.carousel.indicatorTemplate = myCustomTemplate; - * ``` - * ```html - * - * - * ... - * - * brightness_7 - * brightness_5 - * - * - * ``` */ @ContentChild(IgxCarouselIndicatorDirective, { read: TemplateRef, static: false }) public indicatorTemplate: TemplateRef = null; /** * The custom template, if any, that should be used when rendering carousel next button - * - * ```typescript - * // Set in typescript - * const myCustomTemplate: TemplateRef = myComponent.customTemplate; - * myComponent.carousel.nextButtonTemplate = myCustomTemplate; - * ``` - * ```html - * - * - * ... - * - * - * - * - * ``` */ @ContentChild(IgxCarouselNextButtonDirective, { read: TemplateRef, static: false }) public nextButtonTemplate: TemplateRef = null; /** * The custom template, if any, that should be used when rendering carousel previous button - * - * ```typescript - * // Set in typescript - * const myCustomTemplate: TemplateRef = myComponent.customTemplate; - * myComponent.carousel.prevButtonTemplate = myCustomTemplate; - * ``` - * ```html - * - * - * ... - * - * - * - * - * ``` */ @ContentChild(IgxCarouselPrevButtonDirective, { read: TemplateRef, static: false }) public prevButtonTemplate: TemplateRef = null; /** * The collection of `slides` currently in the carousel. - * ```typescript - * let slides: QueryList = this.carousel.slides; - * ``` * * @memberOf IgxCarouselComponent */ @@ -312,9 +207,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * An event that is emitted after a slide transition has happened. * Provides references to the `IgxCarouselComponent` and `IgxSlideComponent` as event arguments. - * ```html - * - * ``` * * @memberOf IgxCarouselComponent */ @@ -323,9 +215,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * An event that is emitted after a slide has been added to the carousel. * Provides references to the `IgxCarouselComponent` and `IgxSlideComponent` as event arguments. - * ```html - * - * ``` * * @memberOf IgxCarouselComponent */ @@ -334,9 +223,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * An event that is emitted after a slide has been removed from the carousel. * Provides references to the `IgxCarouselComponent` and `IgxSlideComponent` as event arguments. - * ```html - * - * ``` * * @memberOf IgxCarouselComponent */ @@ -345,9 +231,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * An event that is emitted after the carousel has been paused. * Provides a reference to the `IgxCarouselComponent` as an event argument. - * ```html - * - * ``` * * @memberOf IgxCarouselComponent */ @@ -356,9 +239,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * An event that is emitted after the carousel has resumed transitioning between `slides`. * Provides a reference to the `IgxCarouselComponent` as an event argument. - * ```html - * - * ``` * * @memberOf IgxCarouselComponent */ @@ -461,9 +341,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Returns the total number of `slides` in the carousel. - * ```typescript - * let slideCount = this.carousel.total; - * ``` * * @memberOf IgxCarouselComponent */ @@ -473,9 +350,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * The index of the slide being currently shown. - * ```typescript - * let currentSlideNumber = this.carousel.current; - * ``` * * @memberOf IgxCarouselComponent */ @@ -485,9 +359,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Returns a boolean indicating if the carousel is playing. - * ```typescript - * let isPlaying = this.carousel.isPlaying; - * ``` * * @memberOf IgxCarouselComponent */ @@ -497,9 +368,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Returns а boolean indicating if the carousel is destroyed. - * ```typescript - * let isDestroyed = this.carousel.isDestroyed; - * ``` * * @memberOf IgxCarouselComponent */ @@ -508,9 +376,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On } /** * Returns a reference to the carousel element in the DOM. - * ```typescript - * let nativeElement = this.carousel.nativeElement; - * ``` * * @memberof IgxCarouselComponent */ @@ -520,9 +385,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Returns the time `interval` in milliseconds before the slide changes. - * ```typescript - * let timeInterval = this.carousel.interval; - * ``` * * @memberof IgxCarouselComponent */ @@ -534,9 +396,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Sets the time `interval` in milliseconds before the slide changes. * If not set, the carousel will not change `slides` automatically. - * ```html - * - * ``` * * @memberof IgxCarouselComponent */ @@ -748,9 +607,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Returns the slide corresponding to the provided `index` or null. - * ```typescript - * let slide1 = this.carousel.get(1); - * ``` * * @memberOf IgxCarouselComponent */ @@ -760,9 +616,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Adds a new slide to the carousel. - * ```typescript - * this.carousel.add(newSlide); - * ``` * * @memberOf IgxCarouselComponent */ @@ -775,9 +628,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Removes a slide from the carousel. - * ```typescript - * this.carousel.remove(slide); - * ``` * * @memberOf IgxCarouselComponent */ @@ -792,19 +642,12 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Switches to the passed-in slide with a given `direction`. - * ```typescript - * const slide = this.carousel.get(2); - * this.carousel.select(slide, CarouselAnimationDirection.NEXT); - * ``` * * @memberOf IgxCarouselComponent */ public select(slide: IgxSlideComponent, direction?: CarouselAnimationDirection): void; /** * Switches to slide by index with a given `direction`. - * ```typescript - * this.carousel.select(2, CarouselAnimationDirection.NEXT); - * ``` * * @memberOf IgxCarouselComponent */ @@ -822,9 +665,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Transitions to the next slide in the carousel. - * ```typescript - * this.carousel.next(); - * ``` * * @memberOf IgxCarouselComponent */ @@ -840,9 +680,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Transitions to the previous slide in the carousel. - * ```typescript - * this.carousel.prev(); - * ``` * * @memberOf IgxCarouselComponent */ @@ -859,10 +696,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Resumes playing of the carousel if in paused state. * No operation otherwise. - * ```typescript - * this.carousel.play(); - * } - * ``` * * @memberOf IgxCarouselComponent */ @@ -878,10 +711,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On /** * Stops slide transitions if the `pause` option is set to `true`. * No operation otherwise. - * ```typescript - * this.carousel.stop(); - * } - * ``` * * @memberOf IgxCarouselComponent */ diff --git a/projects/igniteui-angular/carousel/src/carousel/slide.component.ts b/projects/igniteui-angular/carousel/src/carousel/slide.component.ts index 308f5d52d16..2c9dcc76925 100644 --- a/projects/igniteui-angular/carousel/src/carousel/slide.component.ts +++ b/projects/igniteui-angular/carousel/src/carousel/slide.component.ts @@ -6,12 +6,6 @@ import { CarouselAnimationDirection, IgxSlideComponentBase } from './carousel-ba * A slide component that usually holds an image and/or a caption text. * IgxSlideComponent is usually a child component of an IgxCarouselComponent. * - * ``` - * - * - * - * ``` - * * @export */ @Component({ @@ -24,11 +18,6 @@ export class IgxSlideComponent implements AfterContentChecked, OnDestroy, IgxSli /** * Gets/sets the `index` of the slide inside the carousel. - * ```html - * - * - * - * ``` * * @memberOf IgxSlideComponent */ @@ -36,11 +25,6 @@ export class IgxSlideComponent implements AfterContentChecked, OnDestroy, IgxSli /** * Gets/sets the target `direction` for the slide. - * ```html - * - * - * - * ``` * * @memberOf IgxSlideComponent */ @@ -51,9 +35,6 @@ export class IgxSlideComponent implements AfterContentChecked, OnDestroy, IgxSli /** * Returns the `tabIndex` of the slide component. - * ```typescript - * let tabIndex = this.carousel.tabIndex; - * ``` * * @memberof IgxSlideComponent * @deprecated in version 19.2.0. @@ -84,9 +65,6 @@ export class IgxSlideComponent implements AfterContentChecked, OnDestroy, IgxSli /** * Returns the class of the slide component. - * ```typescript - * let class = this.slide.cssClass; - * ``` * * @memberof IgxSlideComponent */ @@ -95,18 +73,8 @@ export class IgxSlideComponent implements AfterContentChecked, OnDestroy, IgxSli /** * Gets/sets the `active` state of the slide. - * ```html - * - * - * - * ``` * * Two-way data binding. - * ```html - * - * - * - * ``` * * @memberof IgxSlideComponent */ @@ -134,9 +102,6 @@ export class IgxSlideComponent implements AfterContentChecked, OnDestroy, IgxSli /** * Returns a reference to the carousel element in the DOM. - * ```typescript - * let nativeElement = this.slide.nativeElement; - * ``` * * @memberof IgxSlideComponent */ diff --git a/projects/igniteui-angular/chat/src/chat.component.ts b/projects/igniteui-angular/chat/src/chat.component.ts index 97aa851aeff..c7729d62c50 100644 --- a/projects/igniteui-angular/chat/src/chat.component.ts +++ b/projects/igniteui-angular/chat/src/chat.component.ts @@ -58,14 +58,6 @@ type ChatTemplatesContextMap = { /** * Template references for customizing chat component rendering. * Each property corresponds to a specific part of the chat UI that can be customized. - * - * @example - * ```typescript - * templates = { - * messageContent: this.customMessageTemplate, - * attachment: this.customAttachmentTemplate - * } - * ``` */ export type IgxChatTemplates = { [K in keyof Omit]?: TemplateRef; @@ -85,17 +77,6 @@ export type IgxChatOptions = Omit; * * Uses OnPush change detection strategy for optimal performance. All inputs are signals, * so changes are automatically tracked and propagated to the underlying web component. - * - * @example - * ```typescript - * - * ``` */ @Component({ selector: 'igx-chat', @@ -274,13 +255,6 @@ export interface ChatInputContext { /** * Directive providing type information for chat message template contexts. * Use this directive on ng-template elements that render chat messages. - * - * @example - * ```html - * - *
{{ message.text }}
- *
- * ``` */ @Directive({ selector: '[igxChatMessageContext]', standalone: true }) export class IgxChatMessageContextDirective { @@ -293,13 +267,6 @@ export class IgxChatMessageContextDirective { /** * Directive providing type information for chat attachment template contexts. * Use this directive on ng-template elements that render message attachments. - * - * @example - * ```html - * - * - * - * ``` */ @Directive({ selector: '[igxChatAttachmentContext]', standalone: true }) export class IgxChatAttachmentContextDirective { @@ -312,13 +279,6 @@ export class IgxChatAttachmentContextDirective { /** * Directive providing type information for chat input template contexts. * Use this directive on ng-template elements that render the chat input. - * - * @example - * ```html - * - * - * - * ``` */ @Directive({ selector: '[igxChatInputContext]', standalone: true }) export class IgxChatInputContextDirective { diff --git a/projects/igniteui-angular/checkbox/src/checkbox/checkbox.component.ts b/projects/igniteui-angular/checkbox/src/checkbox/checkbox.component.ts index f79b9362451..828b99c9fb4 100644 --- a/projects/igniteui-angular/checkbox/src/checkbox/checkbox.component.ts +++ b/projects/igniteui-angular/checkbox/src/checkbox/checkbox.component.ts @@ -12,24 +12,9 @@ import { EditorProvider, EDITOR_PROVIDER } from 'igniteui-angular/core'; /** * Allows users to make a binary choice for a certain condition. * - * @igxModule IgxCheckboxModule - * - * @igxTheme igx-checkbox-theme - * - * @igxKeywords checkbox, label - * - * @igxGroup Data entry and display - * * @remarks * The Ignite UI Checkbox is a selection control that allows users to make a binary choice for a certain condition.It behaves similarly * to the native browser checkbox. - * - * @example - * ```html - * - * simple checkbox - * - * ``` */ @Component({ selector: 'igx-checkbox', @@ -49,22 +34,12 @@ export class IgxCheckboxComponent implements AfterViewInit, ControlValueAccessor, EditorProvider { /** * Returns the class of the checkbox component. - * - * @example - * ```typescript - * let class = this.checkbox.cssClass; - * ``` */ @HostBinding('class.igx-checkbox') public override cssClass = 'igx-checkbox'; /** * Returns if the component is of type `material`. - * - * @example - * ```typescript - * let checkbox = this.checkbox.material; - * ``` */ @HostBinding('class.igx-checkbox--material') protected get material() { @@ -73,11 +48,6 @@ export class IgxCheckboxComponent /** * Returns if the component is of type `indigo`. - * - * @example - * ```typescript - * let checkbox = this.checkbox.indigo; - * ``` */ @HostBinding('class.igx-checkbox--indigo') protected get indigo() { @@ -86,11 +56,6 @@ export class IgxCheckboxComponent /** * Returns if the component is of type `bootstrap`. - * - * @example - * ```typescript - * let checkbox = this.checkbox.bootstrap; - * ``` */ @HostBinding('class.igx-checkbox--bootstrap') protected get bootstrap() { @@ -99,11 +64,6 @@ export class IgxCheckboxComponent /** * Returns if the component is of type `fluent`. - * - * @example - * ```typescript - * let checkbox = this.checkbox.fluent; - * ``` */ @HostBinding('class.igx-checkbox--fluent') protected get fluent() { @@ -113,14 +73,6 @@ export class IgxCheckboxComponent /** * Sets/gets whether the checkbox component is on focus. * Default value is `false`. - * - * @example - * ```typescript - * this.checkbox.focused = true; - * ``` - * ```typescript - * let isFocused = this.checkbox.focused; - * ``` */ @HostBinding('class.igx-checkbox--focused') public override focused = false; @@ -128,14 +80,6 @@ export class IgxCheckboxComponent /** * Sets/gets the checkbox indeterminate visual state. * Default value is `false`; - * - * @example - * ```html - * - * ``` - * ```typescript - * let isIndeterminate = this.checkbox.indeterminate; - * ``` */ @HostBinding('class.igx-checkbox--indeterminate') @Input({ transform: booleanAttribute }) @@ -144,14 +88,6 @@ export class IgxCheckboxComponent /** * Sets/gets whether the checkbox is checked. * Default value is `false`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let isChecked = this.checkbox.checked; - * ``` */ @HostBinding('class.igx-checkbox--checked') @Input({ transform: booleanAttribute }) @@ -165,14 +101,6 @@ export class IgxCheckboxComponent /** * Sets/gets whether the checkbox is disabled. * Default value is `false`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let isDisabled = this.checkbox.disabled; - * ``` */ @HostBinding('class.igx-checkbox--disabled') @Input({ transform: booleanAttribute }) @@ -181,14 +109,6 @@ export class IgxCheckboxComponent /** * Sets/gets whether the checkbox is invalid. * Default value is `false`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let isInvalid = this.checkbox.invalid; - * ``` */ @HostBinding('class.igx-checkbox--invalid') @Input({ transform: booleanAttribute }) @@ -197,14 +117,6 @@ export class IgxCheckboxComponent /** * Sets/gets whether the checkbox is readonly. * Default value is `false`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let readonly = this.checkbox.readonly; - * ``` */ @Input({ transform: booleanAttribute }) public override readonly = false; @@ -212,14 +124,6 @@ export class IgxCheckboxComponent /** * Sets/gets whether the checkbox should disable all css transitions. * Default value is `false`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let disableTransitions = this.checkbox.disableTransitions; - * ``` */ @HostBinding('class.igx-checkbox--plain') @Input({ transform: booleanAttribute }) diff --git a/projects/igniteui-angular/chips/src/chips/chip.component.ts b/projects/igniteui-angular/chips/src/chips/chip.component.ts index 237decb0311..15d3e1b9179 100644 --- a/projects/igniteui-angular/chips/src/chips/chip.component.ts +++ b/projects/igniteui-angular/chips/src/chips/chip.component.ts @@ -61,25 +61,10 @@ let CHIP_ID = 0; /** * Chip is compact visual component that displays information in an obround. * - * @igxModule IgxChipsModule - * - * @igxTheme igx-chip-theme - * - * @igxKeywords chip - * - * @igxGroup display - * * @remarks * The Ignite UI Chip can be templated, deleted, and selected. * Multiple chips can be reordered and visually connected to each other. * Chips reside in a container called chips area which is responsible for managing the interactions between the chips. - * - * @example - * ```html - * - * - * - * ``` */ @Component({ selector: 'igx-chip', @@ -99,21 +84,11 @@ export class IgxChipComponent implements OnInit, OnDestroy { * @remarks * Allowed values are `primary`, `info`, `success`, `warning`, `danger`. * Providing no/nullish value leaves the chip in its default state. - * - * @example - * ```html - * - * ``` */ @Input() public variant?: IgxChipTypeVariant | null; /** * Sets the value of `id` attribute. If not provided it will be automatically generated. - * - * @example - * ```html - * - * ``` */ @HostBinding('attr.id') @Input() @@ -121,22 +96,12 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Returns the `role` attribute of the chip. - * - * @example - * ```typescript - * let chipRole = this.chip.role; - * ``` */ @HostBinding('attr.role') public role = 'option'; /** * Sets the value of `tabindex` attribute. If not provided it will use the element's tabindex if set. - * - * @example - * ```html - * - * ``` */ @HostBinding('attr.tabIndex') @Input() @@ -153,11 +118,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Stores data related to the chip. - * - * @example - * ```html - * - * ``` */ @Input() public data: any; @@ -165,11 +125,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Defines if the `IgxChipComponent` can be dragged in order to change it's position. * By default it is set to false. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public draggable = false; @@ -177,11 +132,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Enables/disables the draggable element animation when the element is released. * By default it's set to true. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public animateOnRelease = true; @@ -189,11 +139,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Enables/disables the hiding of the base element that has been dragged. * By default it's set to true. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public hideBaseOnDrag = true; @@ -201,23 +146,12 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Defines if the `IgxChipComponent` should render remove button and throw remove events. * By default it is set to false. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public removable = false; /** * Overrides the default icon that the chip applies to the remove button. - * - * @example - * ```html - * - * delete - * ``` */ @Input() public removeIcon: TemplateRef; @@ -225,23 +159,12 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Defines if the `IgxChipComponent` can be selected on click or through navigation, * By default it is set to false. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public selectable = false; /** * Overrides the default icon that the chip applies when it is selected. - * - * @example - * ```html - * - * done_outline - * ``` */ @Input() public selectIcon: TemplateRef; @@ -257,11 +180,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { * Disables the `IgxChipComponent`. When disabled it restricts user interactions * like focusing on click or tab, selection on click or Space, dragging. * By default it is set to false. - * - * @example - * ```html - * - * ``` */ @HostBinding('class.igx-chip--disabled') @Input({ transform: booleanAttribute }) @@ -269,16 +187,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Sets the `IgxChipComponent` selected state. - * - * @example - * ```html - * - * ``` - * - * Two-way data binding: - * ```html - * - * ``` */ @HostBinding('attr.aria-selected') @Input({ transform: booleanAttribute }) @@ -289,14 +197,11 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Returns if the `IgxChipComponent` is selected. * - * @example - * ```typescript * @ViewChild('myChip') * public chip: IgxChipComponent; * selectedChip(){ * let selectedChip = this.chip.selected; * } - * ``` */ public get selected() { return this._selected; @@ -312,11 +217,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Sets the `IgxChipComponent` background color. * The `color` property supports string, rgb, hex. - * - * @example - * ```html - * - * ``` */ @Input() public set color(newColor) { @@ -326,14 +226,11 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Returns the background color of the `IgxChipComponent`. * - * @example - * ```typescript * @ViewChild('myChip') * public chip: IgxChipComponent; * ngAfterViewInit(){ * let chipColor = this.chip.color; * } - * ``` */ public get color() { return this.chipArea.nativeElement.style.backgroundColor; @@ -358,11 +255,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Emits an event when the `IgxChipComponent` moving starts. * Returns the moving `IgxChipComponent`. - * - * @example - * ```html - * - * ``` */ @Output() public moveStart = new EventEmitter(); @@ -370,11 +262,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Emits an event when the `IgxChipComponent` moving ends. * Returns the moved `IgxChipComponent`. - * - * @example - * ```html - * - * ``` */ @Output() public moveEnd = new EventEmitter(); @@ -382,11 +269,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Emits an event when the `IgxChipComponent` is removed. * Returns the removed `IgxChipComponent`. - * - * @example - * ```html - * - * ``` */ @Output() public remove = new EventEmitter(); @@ -394,11 +276,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Emits an event when the `IgxChipComponent` is clicked. * Returns the clicked `IgxChipComponent`, whether the event should be canceled. - * - * @example - * ```html - * - * ``` */ @Output() public chipClick = new EventEmitter(); @@ -407,22 +284,12 @@ export class IgxChipComponent implements OnInit, OnDestroy { * Emits event when the `IgxChipComponent` is selected/deselected. * Returns the selected chip reference, whether the event should be canceled, what is the next selection state and * when the event is triggered by interaction `originalEvent` is provided, otherwise `originalEvent` is `null`. - * - * @example - * ```html - * - * ``` */ @Output() public selectedChanging = new EventEmitter(); /** * Emits event when the `IgxChipComponent` is selected/deselected and any related animations and transitions also end. - * - * @example - * ```html - * - * ``` */ @Output() public selectedChanged = new EventEmitter(); @@ -431,11 +298,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { * Emits an event when the `IgxChipComponent` keyboard navigation is being used. * Returns the focused/selected `IgxChipComponent`, whether the event should be canceled, * if the `alt`, `shift` or `control` key is pressed and the pressed key name. - * - * @example - * ```html - * - * ``` */ @Output() public keyDown = new EventEmitter(); @@ -444,11 +306,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { * Emits an event when the `IgxChipComponent` has entered the `IgxChipsAreaComponent`. * Returns the target `IgxChipComponent`, the drag `IgxChipComponent`, as well as * the original drop event arguments. - * - * @example - * ```html - * - * ``` */ @Output() public dragEnter = new EventEmitter(); @@ -457,11 +314,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { * Emits an event when the `IgxChipComponent` has left the `IgxChipsAreaComponent`. * Returns the target `IgxChipComponent`, the drag `IgxChipComponent`, as well as * the original drop event arguments. - * - * @example - * ```html - * - * ``` */ @Output() public dragLeave = new EventEmitter(); @@ -470,11 +322,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { * Emits an event when the `IgxChipComponent` is over the `IgxChipsAreaComponent`. * Returns the target `IgxChipComponent`, the drag `IgxChipComponent`, as well as * the original drop event arguments. - * - * @example - * ```html - * - * ``` */ @Output() public dragOver = new EventEmitter(); @@ -483,11 +330,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { * Emits an event when the `IgxChipComponent` has been dropped in the `IgxChipsAreaComponent`. * Returns the target `IgxChipComponent`, the drag `IgxChipComponent`, as well as * the original drop event arguments. - * - * @example - * ```html - * - * ``` */ @Output() public dragDrop = new EventEmitter(); @@ -522,16 +364,6 @@ export class IgxChipComponent implements OnInit, OnDestroy { /** * Property that contains a reference to the `IgxDragDirective` the `IgxChipComponent` uses for dragging behavior. - * - * @example - * ```html - * - * ``` - * ```typescript - * onMoveStart(event: IBaseChipEventArgs){ - * let dragDirective = event.owner.dragDirective; - * } - * ``` */ @ViewChild('chipArea', { read: IgxDragDirective, static: true }) public dragDirective: IgxDragDirective; diff --git a/projects/igniteui-angular/chips/src/chips/chips-area.component.ts b/projects/igniteui-angular/chips/src/chips/chips-area.component.ts index 1146c073d6c..c5430b1fcdc 100644 --- a/projects/igniteui-angular/chips/src/chips/chips-area.component.ts +++ b/projects/igniteui-angular/chips/src/chips/chips-area.component.ts @@ -27,23 +27,6 @@ export interface IChipsAreaSelectEventArgs extends IBaseChipsAreaEventArgs { /** * The chip area allows you to perform more complex scenarios with chips that require interaction, * like dragging, selection, navigation, etc. - * - * @igxModule IgxChipsModule - * - * @igxTheme igx-chip-theme - * - * @igxKeywords chip area, chip - * - * @igxGroup display - * - * @example - * ```html - * - * - * {{chip.text}} - * - * - * ``` */ @Component({ selector: 'igx-chips-area', @@ -58,34 +41,18 @@ export class IgxChipsAreaComponent implements DoCheck, AfterViewInit, OnDestroy /** * Returns the `role` attribute of the chips area. - * - * @example - * ```typescript - * let chipsAreaRole = this.chipsArea.role; - * ``` */ @HostBinding('attr.role') public role = 'listbox'; /** * Returns the `aria-label` attribute of the chips area. - * - * @example - * ```typescript - * let ariaLabel = this.chipsArea.ariaLabel; - * ``` - * */ @HostBinding('attr.aria-label') public ariaLabel = 'chip area'; /** * Sets the width of the `IgxChipsAreaComponent`. - * - * @example - * ```html - * - * ``` */ @Input() public width: number; @@ -98,11 +65,6 @@ export class IgxChipsAreaComponent implements DoCheck, AfterViewInit, OnDestroy /** * Sets the height of the `IgxChipsAreaComponent`. - * - * @example - * ```html - * - * ``` */ @Input() public height: number; @@ -116,11 +78,6 @@ export class IgxChipsAreaComponent implements DoCheck, AfterViewInit, OnDestroy /** * Emits an event when `IgxChipComponent`s in the `IgxChipsAreaComponent` should be reordered. * Returns an array of `IgxChipComponent`s. - * - * @example - * ```html - * - * ``` */ @Output() public reorder = new EventEmitter(); @@ -129,46 +86,24 @@ export class IgxChipsAreaComponent implements DoCheck, AfterViewInit, OnDestroy * Emits an event when an `IgxChipComponent` in the `IgxChipsAreaComponent` is selected/deselected. * Fired after the chips area is initialized if there are initially selected chips as well. * Returns an array of selected `IgxChipComponent`s and the `IgxChipAreaComponent`. - * - * @example - * ```html - * - * ``` */ @Output() public selectionChange = new EventEmitter(); /** * Emits an event when an `IgxChipComponent` in the `IgxChipsAreaComponent` is moved. - * - * @example - * ```html - * - * ``` */ @Output() public moveStart = new EventEmitter(); /** * Emits an event after an `IgxChipComponent` in the `IgxChipsAreaComponent` is moved. - * - * @example - * ```html - * - * ``` */ @Output() public moveEnd = new EventEmitter(); /** * Holds the `IgxChipComponent` in the `IgxChipsAreaComponent`. - * - * @example - * ```typescript - * ngAfterViewInit(){ - * let chips = this.chipsArea.chipsList; - * } - * ``` */ @ContentChildren(IgxChipComponent, { descendants: true }) public chipsList: QueryList; diff --git a/projects/igniteui-angular/combo/src/combo/combo-dropdown.component.ts b/projects/igniteui-angular/combo/src/combo/combo-dropdown.component.ts index 403090f2438..4e6fcee5fc3 100644 --- a/projects/igniteui-angular/combo/src/combo/combo-dropdown.component.ts +++ b/projects/igniteui-angular/combo/src/combo/combo-dropdown.component.ts @@ -56,10 +56,6 @@ export class IgxComboDropDownComponent extends IgxDropDownComponent implements I /** * Get all non-header items - * - * ```typescript - * let myDropDownItems = this.dropdown.items; - * ``` */ public override get items(): IgxComboItemComponent[] { const items: IgxComboItemComponent[] = []; diff --git a/projects/igniteui-angular/combo/src/combo/combo.common.ts b/projects/igniteui-angular/combo/src/combo/combo.common.ts index a9a6bade24a..81618c0d1b7 100644 --- a/projects/igniteui-angular/combo/src/combo/combo.common.ts +++ b/projects/igniteui-angular/combo/src/combo/combo.common.ts @@ -121,16 +121,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Defines whether the caseSensitive icon should be shown in the search input - * - * ```typescript - * // get - * let myComboShowSearchCaseIcon = this.combo.showSearchCaseIcon; - * ``` - * - * ```html - * - * - * ``` */ @Input({ transform: booleanAttribute }) public showSearchCaseIcon = false; @@ -149,34 +139,14 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Set custom overlay settings that control how the combo's list of items is displayed. * Set: - * ```html - * - * ``` * - * ```typescript - * const customSettings = { positionStrategy: { settings: { target: myTarget } } }; - * combo.overlaySettings = customSettings; - * ``` * Get any custom overlay settings used by the combo: - * ```typescript - * const comboOverlaySettings: OverlaySettings = myCombo.overlaySettings; - * ``` */ @Input() public overlaySettings: OverlaySettings = null; /** * Gets/gets combo id. - * - * ```typescript - * // get - * let id = this.combo.id; - * ``` - * - * ```html - * - * - * ``` */ @HostBinding('attr.id') @Input() @@ -198,16 +168,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Sets the style width of the element - * - * ```typescript - * // get - * let myComboWidth = this.combo.width; - * ``` - * - * ```html - * - * - * ``` */ @HostBinding('style.width') @Input() @@ -215,32 +175,12 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Controls whether custom values can be added to the collection - * - * ```typescript - * // get - * let comboAllowsCustomValues = this.combo.allowCustomValues; - * ``` - * - * ```html - * - * - * ``` */ @Input({ transform: booleanAttribute }) public allowCustomValues = false; /** * Configures the drop down list height - * - * ```typescript - * // get - * let myComboItemsMaxHeight = this.combo.itemsMaxHeight; - * ``` - * - * ```html - * - * - * ``` */ @Input() public get itemsMaxHeight(): number { @@ -263,16 +203,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Configures the drop down list item height - * - * ```typescript - * // get - * let myComboItemHeight = this.combo.itemHeight; - * ``` - * - * ```html - * - * - * ``` */ @Input() public get itemHeight(): number { @@ -285,43 +215,18 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Configures the drop down list width - * - * ```typescript - * // get - * let myComboItemsWidth = this.combo.itemsWidth; - * ``` - * - * ```html - * - * - * ``` */ @Input() public itemsWidth: string; /** * Defines the placeholder value for the combo value field - * - * ```typescript - * // get - * let myComboPlaceholder = this.combo.placeholder; - * ``` - * - * ```html - * - * - * ``` */ @Input() public placeholder: string; /** * Combo data source. - * - * ```html - * - * - * ``` */ @Input() public get data(): any[] | null { @@ -339,16 +244,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Determines which column in the data source is used to determine the value. - * - * ```typescript - * // get - * let myComboValueKey = this.combo.valueKey; - * ``` - * - * ```html - * - * - * ``` */ @Input() public valueKey: string = null; @@ -360,20 +255,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Determines which column in the data source is used to determine the display value. - * - * ```typescript - * // get - * let myComboDisplayKey = this.combo.displayKey; - * - * // set - * this.combo.displayKey = 'val'; - * - * ``` - * - * ```html - * - * - * ``` */ public get displayKey() { return this._displayKey ? this._displayKey : this.valueKey; @@ -381,11 +262,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * The item property by which items should be grouped inside the items list. Not usable if data is not of type Object[]. - * - * ```html - * - * - * ``` */ @Input() public set groupKey(val: string) { @@ -394,11 +270,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * The item property by which items should be grouped inside the items list. Not usable if data is not of type Object[]. - * - * ```typescript - * // get - * let currentGroupKey = this.combo.groupKey; - * ``` */ public get groupKey(): string { return this._groupKey; @@ -406,14 +277,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Sets groups sorting order. - * - * @example - * ```html - * - * ``` - * ```typescript - * public groupSortingDirection = SortingDirection.Asc; - * ``` */ @Input() public get groupSortingDirection(): SortingDirection { @@ -425,20 +288,12 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Gets/Sets the custom filtering function of the combo. - * - * @example - * ```html - * - * ``` */ @Input() public filterFunction: (collection: any[], searchValue: any, filteringOptions: IComboFilteringOptions) => any[]; /** * Sets aria-labelledby attribute value. - * ```html - * - * ``` */ @Input() public ariaLabelledBy: string; @@ -449,9 +304,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Disables the combo. The default is `false`. - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public disabled = false; @@ -459,9 +311,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Sets the visual combo type. * The allowed values are `line`, `box`, `border` and `search`. The default is `box`. - * ```html - * - * ``` */ @Input() public get type(): IgxInputGroupType { @@ -488,249 +337,90 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Emitted before the dropdown is opened - * - * ```html - * - * ``` */ @Output() public opening = new EventEmitter(); /** * Emitted after the dropdown is opened - * - * ```html - * - * ``` */ @Output() public opened = new EventEmitter(); /** * Emitted before the dropdown is closed - * - * ```html - * - * ``` */ @Output() public closing = new EventEmitter(); /** * Emitted after the dropdown is closed - * - * ```html - * - * ``` */ @Output() public closed = new EventEmitter(); /** * Emitted when an item is being added to the data collection - * - * ```html - * - * ``` */ @Output() public addition = new EventEmitter(); /** * Emitted when the value of the search input changes (e.g. typing, pasting, clear, etc.) - * - * ```html - * - * ``` */ @Output() public searchInputUpdate = new EventEmitter(); /** * Emitted when new chunk of data is loaded from the virtualization - * - * ```html - * - * ``` */ @Output() public dataPreLoad = new EventEmitter(); /** * The custom template, if any, that should be used when rendering ITEMS in the combo list - * - * ```typescript - * // Set in typescript - * const myCustomTemplate: TemplateRef = myComponent.customTemplate; - * myComponent.combo.itemTemplate = myCustomTemplate; - * ``` - * ```html - * - * - * ... - * - *
- *
{{ item[key] }}
- *
{{ item.cost }}
- *
- *
- *
- * ``` */ @ContentChild(IgxComboItemDirective, { read: TemplateRef }) public itemTemplate: TemplateRef = null; /** * The custom template, if any, that should be used when rendering the HEADER for the combo items list - * - * ```typescript - * // Set in typescript - * const myCustomTemplate: TemplateRef = myComponent.customTemplate; - * myComponent.combo.headerTemplate = myCustomTemplate; - * ``` - * ```html - * - * - * ... - * - *
- * This is a custom header - *
- *
- *
- * ``` */ @ContentChild(IgxComboHeaderDirective, { read: TemplateRef }) public headerTemplate: TemplateRef = null; /** * The custom template, if any, that should be used when rendering the FOOTER for the combo items list - * - * ```typescript - * // Set in typescript - * const myCustomTemplate: TemplateRef = myComponent.customTemplate; - * myComponent.combo.footerTemplate = myCustomTemplate; - * ``` - * ```html - * - * - * ... - * - * - * - * - * ``` */ @ContentChild(IgxComboFooterDirective, { read: TemplateRef }) public footerTemplate: TemplateRef = null; /** * The custom template, if any, that should be used when rendering HEADER ITEMS for groups in the combo list - * - * ```typescript - * // Set in typescript - * const myCustomTemplate: TemplateRef = myComponent.customTemplate; - * myComponent.combo.headerItemTemplate = myCustomTemplate; - * ``` - * ```html - * - * - * ... - * - *
Group header for {{ item[key] }}
- *
- *
- * ``` */ @ContentChild(IgxComboHeaderItemDirective, { read: TemplateRef }) public headerItemTemplate: TemplateRef = null; /** * The custom template, if any, that should be used when rendering the ADD BUTTON in the combo drop down - * - * ```typescript - * // Set in typescript - * const myCustomTemplate: TemplateRef = myComponent.customTemplate; - * myComponent.combo.addItemTemplate = myCustomTemplate; - * ``` - * ```html - * - * - * ... - * - * - * - * - * ``` */ @ContentChild(IgxComboAddItemDirective, { read: TemplateRef }) public addItemTemplate: TemplateRef = null; /** * The custom template, if any, that should be used when rendering the ADD BUTTON in the combo drop down - * - * ```typescript - * // Set in typescript - * const myCustomTemplate: TemplateRef = myComponent.customTemplate; - * myComponent.combo.emptyTemplate = myCustomTemplate; - * ``` - * ```html - * - * - * ... - * - *
- * There are no items to display - *
- *
- *
- * ``` */ @ContentChild(IgxComboEmptyDirective, { read: TemplateRef }) public emptyTemplate: TemplateRef = null; /** * The custom template, if any, that should be used when rendering the combo TOGGLE(open/close) button - * - * ```typescript - * // Set in typescript - * const myCustomTemplate: TemplateRef = myComponent.customTemplate; - * myComponent.combo.toggleIconTemplate = myCustomTemplate; - * ``` - * ```html - * - * - * ... - * - * {{ collapsed ? 'remove_circle' : 'remove_circle_outline'}} - * - * - * ``` */ @ContentChild(IgxComboToggleIconDirective, { read: TemplateRef }) public toggleIconTemplate: TemplateRef = null; /** * The custom template, if any, that should be used when rendering the combo CLEAR button - * - * ```typescript - * // Set in typescript - * const myCustomTemplate: TemplateRef = myComponent.customTemplate; - * myComponent.combo.clearIconTemplate = myCustomTemplate; - * ``` - * ```html - * - * - * ... - * - * clear - * - * - * ``` */ @ContentChild(IgxComboClearIconDirective, { read: TemplateRef }) public clearIconTemplate: TemplateRef = null; @@ -801,11 +491,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Gets if control is valid, when used in a form - * - * ```typescript - * // get - * let valid = this.combo.valid; - * ``` */ public get valid(): IgxInputState { return this._valid; @@ -813,11 +498,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Sets if control is valid, when used in a form - * - * ```typescript - * // set - * this.combo.valid = IgxInputState.INVALID; - * ``` */ public set valid(valid: IgxInputState) { this._valid = valid; @@ -826,11 +506,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * The value of the combo - * - * ```typescript - * // get - * let comboValue = this.combo.value; - * ``` */ public get value(): any[] { return this._value; @@ -838,11 +513,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * The text displayed in the combo input - * - * ```typescript - * // get - * let comboDisplayValue = this.combo.displayValue; - * ``` */ public get displayValue(): string { return this._displayValue; @@ -850,22 +520,12 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Defines the current state of the virtualized data. It contains `startIndex` and `chunkSize` - * - * ```typescript - * // get - * let state = this.combo.virtualizationState; - * ``` */ public get virtualizationState(): IForOfState { return this.virtDir.state; } /** * Sets the current state of the virtualized data. - * - * ```typescript - * // set - * this.combo.virtualizationState(state); - * ``` */ public set virtualizationState(state: IForOfState) { this.virtDir.state = state; @@ -873,10 +533,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Gets drop down state. - * - * ```typescript - * let state = this.combo.collapsed; - * ``` */ public get collapsed(): boolean { return this.dropdown.collapsed; @@ -884,22 +540,12 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Gets total count of the virtual data items, when using remote service. - * - * ```typescript - * // get - * let count = this.combo.totalItemCount; - * ``` */ public get totalItemCount(): number { return this.virtDir.totalItemCount; } /** * Sets total count of the virtual data items, when using remote service. - * - * ```typescript - * // set - * this.combo.totalItemCount(remoteService.count); - * ``` */ public set totalItemCount(count: number) { this.virtDir.totalItemCount = count; @@ -928,16 +574,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * Configures the way combo items will be filtered. - * - * ```typescript - * // get - * let myFilteringOptions = this.combo.filteringOptions; - * ``` - * - * ```html - * - * - * ``` */ @Input() @@ -1063,11 +699,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * A method that opens/closes the combo. - * - * ```html - * - * - * ``` */ public toggle(): void { if (this.collapsed && this._displayValue.length !== 0) { @@ -1083,11 +714,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * A method that opens the combo. - * - * ```html - * - * - * ``` */ public open(): void { if (this.collapsed && this._displayValue.length !== 0) { @@ -1101,11 +727,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh /** * A method that closes the combo. - * - * ```html - * - * - * ``` */ public close(): void { this.dropdown.close(); @@ -1122,9 +743,6 @@ export abstract class IgxComboBaseDirective implements IgxComboBase, AfterViewCh * Get current selection state * * @returns Array of selected items - * ```typescript - * let mySelection = this.combo.selection; - * ``` */ public get selection(): any[] { const serviceRef = this.selectionService.get(this.id); diff --git a/projects/igniteui-angular/combo/src/combo/combo.component.ts b/projects/igniteui-angular/combo/src/combo/combo.component.ts index d2a09546a61..2ae84f31852 100644 --- a/projects/igniteui-angular/combo/src/combo/combo.component.ts +++ b/projects/igniteui-angular/combo/src/combo/combo.component.ts @@ -75,21 +75,9 @@ const diffInSets = (set1: Set, set2: Set): any[] => { /** * Represents a drop-down list that provides editable functionalities, allowing users to choose an option from a predefined list. * - * @igxModule IgxComboModule - * @igxTheme igx-combo-theme - * @igxKeywords combobox, combo selection - * @igxGroup Grids & Lists - * * @remarks * It provides the ability to filter items as well as perform selection with the provided data. * Additionally, it exposes keyboard navigation and custom styling capabilities. - * @example - * ```html - * - * - * ``` */ @Component({ selector: 'igx-combo', @@ -132,36 +120,18 @@ export class IgxComboComponent extends IgxComboBaseDirective implements AfterVie * Defines the placeholder value for the combo dropdown search field * * @deprecated in version 18.2.0. Replaced with values in the localization resource strings. - * - * ```typescript - * // get - * let myComboSearchPlaceholder = this.combo.searchPlaceholder; - * ``` - * - * ```html - * - * - * ``` */ @Input() public searchPlaceholder: string; /** * Emitted when item selection is changing, before the selection completes - * - * ```html - * - * ``` */ @Output() public selectionChanging = new EventEmitter(); /** * Emitted when item selection is changed, after the selection completes - * - * ```html - * - * ``` */ @Output() public selectionChanged = new EventEmitter(); @@ -290,9 +260,6 @@ export class IgxComboComponent extends IgxComboBaseDirective implements AfterVie * * @param newItems new items to be selected * @param clearCurrentSelection if true clear previous selected items - * ```typescript - * this.combo.select(["New York", "New Jersey"]); - * ``` */ public select(newItems: Array, clearCurrentSelection?: boolean, event?: Event) { if (newItems) { @@ -305,9 +272,6 @@ export class IgxComboComponent extends IgxComboBaseDirective implements AfterVie * Deselect defined items * * @param items items to deselected - * ```typescript - * this.combo.deselect(["New York", "New Jersey"]); - * ``` */ public deselect(items: Array, event?: Event) { if (items) { @@ -320,9 +284,6 @@ export class IgxComboComponent extends IgxComboBaseDirective implements AfterVie * Select all (filtered) items * * @param ignoreFilter if set to true, selects all items, otherwise selects only the filtered ones. - * ```typescript - * this.combo.selectAllItems(); - * ``` */ public selectAllItems(ignoreFilter?: boolean, event?: Event) { const allVisible = this.selectionService.get_all_ids(ignoreFilter ? this.data : this.filteredData, this.valueKey); @@ -334,9 +295,6 @@ export class IgxComboComponent extends IgxComboBaseDirective implements AfterVie * Deselect all (filtered) items * * @param ignoreFilter if set to true, deselects all items, otherwise deselects only the filtered ones. - * ```typescript - * this.combo.deselectAllItems(); - * ``` */ public deselectAllItems(ignoreFilter?: boolean, event?: Event): void { let newSelection = this.selectionService.get_empty(); @@ -353,17 +311,7 @@ export class IgxComboComponent extends IgxComboBaseDirective implements AfterVie * @param select If the item should be selected (true) or deselected (false) * * Without specified valueKey; - * ```typescript - * this.combo.valueKey = null; - * const items: { field: string, region: string}[] = data; - * this.combo.setSelectedItem(items[0], true); - * ``` * With specified valueKey; - * ```typescript - * this.combo.valueKey = 'field'; - * const items: { field: string, region: string}[] = data; - * this.combo.setSelectedItem('Connecticut', true); - * ``` */ public setSelectedItem(itemID: any, select = true, event?: Event): void { if (itemID === undefined) { diff --git a/projects/igniteui-angular/combo/src/combo/combo.directives.ts b/projects/igniteui-angular/combo/src/combo/combo.directives.ts index c3b1f674e88..e361913dc04 100644 --- a/projects/igniteui-angular/combo/src/combo/combo.directives.ts +++ b/projects/igniteui-angular/combo/src/combo/combo.directives.ts @@ -2,19 +2,6 @@ import { Directive } from '@angular/core'; /** * Allows a custom element to be added at the beginning of the combo list. - * - * @igxModule IgxComboModule - * @igxTheme igx-combo-theme - * @igxKeywords combobox, combo selection - * @igxGroup Grids & Lists - * - * @example - * - * - *
Custom header
- * - *
- *
*/ @Directive({ selector: '[igxComboHeader]', @@ -24,19 +11,6 @@ export class IgxComboHeaderDirective { } /** * Allows a custom element to be added at the end of the combo list. - * - * @igxModule IgxComboModule - * @igxTheme igx-combo-theme - * @igxKeywords combobox, combo selection - * @igxGroup Grids & Lists - * - * @example - * - * - * - * - * - * */ @Directive({ selector: '[igxComboFooter]', @@ -46,21 +20,6 @@ export class IgxComboFooterDirective { } /** * Allows the combo's items to be modified with a custom template - * - * @igxModule IgxComboModule - * @igxTheme igx-combo-theme - * @igxKeywords combobox, combo selection - * @igxGroup Grids & Lists - * - * @example - * - * - *
- * State: {{ display[key] }} - * Region: {{ display.region }} - *
- *
- *
*/ @Directive({ selector: '[igxComboItem]', @@ -70,20 +29,6 @@ export class IgxComboItemDirective { } /** * Defines the custom template that will be displayed when the combo's list is empty - * - * @igxModule IgxComboModule - * @igxTheme igx-combo-theme - * @igxKeywords combobox, combo selection - * @igxGroup Grids & Lists - * - * @example - * - * - *
- * There are no items to display - *
- *
- *
*/ @Directive({ selector: '[igxComboEmpty]', @@ -93,18 +38,6 @@ export class IgxComboEmptyDirective { } /** * Defines the custom template that will be used when rendering header items for groups in the combo's list - * - * @igxModule IgxComboModule - * @igxTheme igx-combo-theme - * @igxKeywords combobox, combo selection - * @igxGroup Grids & Lists - * - * @example - * - * - *
Group header for {{ item[key] }}
- *
- *
*/ @Directive({ selector: '[igxComboHeaderItem]', @@ -116,20 +49,6 @@ export class IgxComboHeaderItemDirective { } * Defines the custom template that will be used to display the `ADD` button * * @remarks To show the `ADD` button, the `allowCustomValues` option must be enabled - * - * @igxModule IgxComboModule - * @igxTheme igx-combo-theme - * @igxKeywords combobox, combo selection - * @igxGroup Grids & Lists - * - * @example - * - * - * - * - * */ @Directive({ selector: '[igxComboAddItem]', @@ -139,18 +58,6 @@ export class IgxComboAddItemDirective { } /** * The custom template that will be used when rendering the combo's toggle button - * - * @igxModule IgxComboModule - * @igxTheme igx-combo-theme - * @igxKeywords combobox, combo selection - * @igxGroup Grids & Lists - * - * @example - * - * - * {{ collapsed ? 'remove_circle' : 'remove_circle_outline'}} - * - * */ @Directive({ selector: '[igxComboToggleIcon]', @@ -160,18 +67,6 @@ export class IgxComboToggleIconDirective { } /** * Defines the custom template that will be used when rendering the combo's clear icon - * - * @igxModule IgxComboModule - * @igxTheme igx-combo-theme - * @igxKeywords combobox, combo selection - * @igxGroup Grids & Lists - * - * @example - * - * - * clear - * - * */ @Directive({ selector: '[igxComboClearIcon]', diff --git a/projects/igniteui-angular/combo/src/combo/combo.pipes.ts b/projects/igniteui-angular/combo/src/combo/combo.pipes.ts index 8550301598e..b38fc147aa6 100644 --- a/projects/igniteui-angular/combo/src/combo/combo.pipes.ts +++ b/projects/igniteui-angular/combo/src/combo/combo.pipes.ts @@ -97,11 +97,6 @@ function groupBy(data: T[], key: keyof T | ((item: T) => any)) { /** * Combo filter function which does not distinguish between accented letters and their base letters. * For example, when filtering for "resume", this function will match both "resume" and "résumé". - * - * @example - * ```html - * - * ``` */ export function comboIgnoreDiacriticsFilter(collection: T[], searchValue: string, filteringOptions: IComboFilteringOptions): T[] { if (!searchValue) { diff --git a/projects/igniteui-angular/core/src/core/navigation/directives.ts b/projects/igniteui-angular/core/src/core/navigation/directives.ts index c900ad410f6..13bf8419994 100644 --- a/projects/igniteui-angular/core/src/core/navigation/directives.ts +++ b/projects/igniteui-angular/core/src/core/navigation/directives.ts @@ -5,9 +5,6 @@ import { IgxNavigationService } from './nav.service'; * Directive that can toggle targets through provided NavigationService. * * Usage: - * ``` - * - * ``` * Where the `ID` matches the ID of compatible `IToggleView` component. */ @Directive({ @@ -35,9 +32,6 @@ export class IgxNavigationToggleDirective { * Directive that can close targets through provided NavigationService. * * Usage: - * ``` - * - * ``` * Where the `ID` matches the ID of compatible `IToggleView` component. */ @Directive({ diff --git a/projects/igniteui-angular/core/src/core/touch.ts b/projects/igniteui-angular/core/src/core/touch.ts index 36341f15bc7..33c606efa2a 100644 --- a/projects/igniteui-angular/core/src/core/touch.ts +++ b/projects/igniteui-angular/core/src/core/touch.ts @@ -111,10 +111,6 @@ export class HammerGesturesManager { * @param element The DOM element used to create the manager on. * * ### Example - * - * ```ts - * manager.setManagerOption(myElem, "pan", { pointers: 1 }); - * ``` */ public setManagerOption(element: EventTarget, event: string, options: any) { const manager = this.getManagerForElement(element); diff --git a/projects/igniteui-angular/core/src/core/utils.ts b/projects/igniteui-angular/core/src/core/utils.ts index 6f9a0c7b2d6..a3148e50614 100644 --- a/projects/igniteui-angular/core/src/core/utils.ts +++ b/projects/igniteui-angular/core/src/core/utils.ts @@ -297,17 +297,6 @@ export class PlatformUtil { /** * @hidden @internal * Returns the actual size of the node content, using Range - * ```typescript - * let range = document.createRange(); - * let column = this.grid.columnList.filter(c => c.field === 'ID')[0]; - * - * let size = getNodeSizeViaRange(range, column.cells[0].nativeElement); - * - * @remarks - * The last parameter is useful when the size of the element to measure is modified by a - * parent element that has explicit size. In such cases the calculated size is never lower - * and the function may instead remove the parent size while measuring to get the correct value. - * ``` */ public getNodeSizeViaRange(range: Range, node: HTMLElement, sizeHoldingNode?: HTMLElement) { let overflow = null; @@ -536,12 +525,6 @@ export function resolveNestedPath(obj: unknown, pathParts: * Given a property access path in the format `x.y.z` and a value * this functions builds and returns an object following the access path. * - * @example - * ```typescript - * console.log('x.y.z.', 42); - * >> { x: { y: { z: 42 } } } - * ``` - * * @hidden * @internal */ @@ -601,16 +584,6 @@ export function modulo(n: number, d: number) { * Splits an array into chunks of length `size` and returns a generator * yielding each chunk. * The last chunk may contain less than `size` elements. - * - * @example - * ```typescript - * const arr = [0,1,2,3,4,5,6,7,8,9]; - * - * Array.from(chunk(arr, 2)) // [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9]] - * Array.from(chunk(arr, 3)) // [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9]] - * Array.from(chunk([], 3)) // [] - * Array.from(chunk(arr, -3)) // Error - * ``` */ export function* intoChunks(arr: T[], size: number) { if (size < 1) { diff --git a/projects/igniteui-angular/core/src/data-operations/expressions-tree-util.ts b/projects/igniteui-angular/core/src/data-operations/expressions-tree-util.ts index 550bca65229..deb431ee896 100644 --- a/projects/igniteui-angular/core/src/data-operations/expressions-tree-util.ts +++ b/projects/igniteui-angular/core/src/data-operations/expressions-tree-util.ts @@ -8,9 +8,6 @@ import { DateTimeUtil } from '../date-common/public_api'; export class ExpressionsTreeUtil { /** * Returns the filtering expression for a column with the provided tree and fieldName. - * ```typescript - * let filteringExpression = ExpressionsTreeUtil.find(gridExpressionTree, 'Column Field'); - * ``` */ public static find(tree: IFilteringExpressionsTree, fieldName: string): IFilteringExpressionsTree | IFilteringExpression { const index = this.findIndex(tree, fieldName); @@ -24,9 +21,6 @@ export class ExpressionsTreeUtil { /** * Returns the index of the filtering expression for a column with the provided tree and fieldName. - * ```typescript - * let filteringExpressionIndex = ExpressionsTreeUtil.findIndex(gridExpressionTree, 'Column Field'); - * ``` */ public static findIndex(tree: IFilteringExpressionsTree, fieldName: string): number { for (let i = 0; i < tree.filteringOperands.length; i++) { diff --git a/projects/igniteui-angular/core/src/data-operations/filtering-expressions-tree.ts b/projects/igniteui-angular/core/src/data-operations/filtering-expressions-tree.ts index 4a46dafc421..794eb326afc 100644 --- a/projects/igniteui-angular/core/src/data-operations/filtering-expressions-tree.ts +++ b/projects/igniteui-angular/core/src/data-operations/filtering-expressions-tree.ts @@ -43,21 +43,6 @@ export class FilteringExpressionsTree implements IFilteringExpressionsTree { /** * Sets/gets the filtering operands. - * ```typescript - * const gridExpressionsTree = new FilteringExpressionsTree(FilteringLogic.And); - * const expression = [ - * { - * condition: IgxStringFilteringOperand.instance().condition('contains'), - * fieldName: 'Column Field', - * searchVal: 'Value', - * ignoreCase: false - * }]; - * gridExpressionsTree.filteringOperands.push(expression); - * this.grid.filteringExpressionsTree = gridExpressionsTree; - * ``` - * ```typescript - * let filteringOperands = gridExpressionsTree.filteringOperands; - * ``` * * @memberof FilteringExpressionsTree */ @@ -65,12 +50,6 @@ export class FilteringExpressionsTree implements IFilteringExpressionsTree { /** * Sets/gets the operator. - * ```typescript - * gridExpressionsTree.operator = FilteringLogic.And; - * ``` - * ```typescript - * let operator = gridExpressionsTree.operator; - * ``` * * @memberof FilteringExpressionsTree */ @@ -78,12 +57,6 @@ export class FilteringExpressionsTree implements IFilteringExpressionsTree { /** * Sets/gets the field name of the column where the filtering expression is placed. - * ```typescript - * gridExpressionTree.fieldName = 'Column Field'; - * ``` - * ```typescript - * let columnField = expressionTree.fieldName; - * ``` * * @memberof FilteringExpressionsTree */ @@ -92,12 +65,6 @@ export class FilteringExpressionsTree implements IFilteringExpressionsTree { /* alternateName: treeType */ /** * Sets/gets the type of the filtering expressions tree. - * ```typescript - * gridExpressionTree.type = FilteringExpressionsTree.Advanced; - * ``` - * ```typescript - * let type = expressionTree.type; - * ``` * * @memberof FilteringExpressionsTree */ @@ -105,12 +72,6 @@ export class FilteringExpressionsTree implements IFilteringExpressionsTree { /** * Sets/gets the entity. - * ```typescript - * gridExpressionsTree.entity = 'Entity A'; - * ``` - * ```typescript - * let entity = gridExpressionsTree.entity; - * ``` * * @memberof FilteringExpressionsTree */ @@ -118,12 +79,6 @@ export class FilteringExpressionsTree implements IFilteringExpressionsTree { /** * Sets/gets the return fields. - * ```typescript - * gridExpressionsTree.returnFields = ['Column Field 1', 'Column Field 2']; - * ``` - * ```typescript - * let returnFields = gridExpressionsTree.returnFields; - * ``` * * @memberof FilteringExpressionsTree */ @@ -148,9 +103,6 @@ export class FilteringExpressionsTree implements IFilteringExpressionsTree { /* blazorSuppress */ /** * Returns the filtering expression for a column with the provided fieldName. - * ```typescript - * let filteringExpression = gridExpressionTree.find('Column Field'); - * ``` * * @memberof FilteringExpressionsTree * @deprecated in version 18.2.0. Use `ExpressionsTreeUtil.find` instead. @@ -162,9 +114,6 @@ export class FilteringExpressionsTree implements IFilteringExpressionsTree { /* blazorSuppress */ /** * Returns the index of the filtering expression for a column with the provided fieldName. - * ```typescript - * let filteringExpressionIndex = gridExpressionTree.findIndex('Column Field'); - * ``` * * @memberof FilteringExpressionsTree * @deprecated in version 18.2.0. Use `ExpressionsTreeUtil.findIndex` instead. diff --git a/projects/igniteui-angular/core/src/data-operations/grid-types.ts b/projects/igniteui-angular/core/src/data-operations/grid-types.ts index ae8c6830160..2ffb9998fed 100644 --- a/projects/igniteui-angular/core/src/data-operations/grid-types.ts +++ b/projects/igniteui-angular/core/src/data-operations/grid-types.ts @@ -447,13 +447,6 @@ export interface IgxSummaryResult { summaryResult: any; /** * Apply default formatting based on the grid column type. - * ```typescript - * const result: IgxSummaryResult = { - * key: 'key', - * label: 'label', - * defaultFormatting: true - * } - * ``` * * @memberof IgxSummaryResult */ diff --git a/projects/igniteui-angular/core/src/date-common/picker-icons.common.ts b/projects/igniteui-angular/core/src/date-common/picker-icons.common.ts index c3b3b0f6e80..8e90728a11c 100644 --- a/projects/igniteui-angular/core/src/date-common/picker-icons.common.ts +++ b/projects/igniteui-angular/core/src/date-common/picker-icons.common.ts @@ -4,15 +4,6 @@ import { Component, Output, EventEmitter, HostListener, Directive, TemplateRef, * Templates the default toggle icon in the picker. * * @remarks Can be applied to IgxDatePickerComponent, IgxTimePickerComponent, IgxDateRangePickerComponent - * - * @example - * ```html - * - * - * calendar_view_day - * - * - * ``` */ @Component({ template: ``, @@ -35,15 +26,6 @@ export class IgxPickerToggleComponent { * Templates the default clear icon in the picker. * * @remarks Can be applied to IgxDatePickerComponent, IgxTimePickerComponent, IgxDateRangePickerComponent - * - * @example - * ```html - * - * - * delete - * - * - * ``` */ @Component({ template: ``, @@ -56,7 +38,6 @@ export class IgxPickerClearComponent extends IgxPickerToggleComponent { } * IgxPickerActionsDirective can be used to re-template the dropdown/dialog action buttons. * * @remarks Can be applied to IgxDatePickerComponent, IgxTimePickerComponent, IgxDateRangePickerComponent - * */ @Directive({ selector: '[igxPickerActions]', diff --git a/projects/igniteui-angular/core/src/services/overlay/overlay.ts b/projects/igniteui-angular/core/src/services/overlay/overlay.ts index 79c36014422..98c167cd634 100644 --- a/projects/igniteui-angular/core/src/services/overlay/overlay.ts +++ b/projects/igniteui-angular/core/src/services/overlay/overlay.ts @@ -47,71 +47,36 @@ export class IgxOverlayService implements OnDestroy { /** * Emitted just before the overlay content starts to open. - * ```typescript - * opening(event: OverlayCancelableEventArgs){ - * const opening = event; - * } - * ``` */ public opening = new EventEmitter(); /** * Emitted after the overlay content is opened and all animations are finished. - * ```typescript - * opened(event: OverlayEventArgs){ - * const opened = event; - * } - * ``` */ public opened = new EventEmitter(); /** * Emitted just before the overlay content starts to close. - * ```typescript - * closing(event: OverlayCancelableEventArgs){ - * const closing = event; - * } - * ``` */ public closing = new EventEmitter(); /** * Emitted after the overlay content is closed and all animations are finished. - * ```typescript - * closed(event: OverlayEventArgs){ - * const closed = event; - * } - * ``` */ public closed = new EventEmitter(); /** * Emitted before the content is appended to the overlay. - * ```typescript - * contentAppending(event: OverlayEventArgs){ - * const contentAppending = event; - * } - * ``` */ public contentAppending = new EventEmitter(); /** * Emitted after the content is appended to the overlay, and before animations are started. - * ```typescript - * contentAppended(event: OverlayEventArgs){ - * const contentAppended = event; - * } - * ``` */ public contentAppended = new EventEmitter(); /** * Emitted just before the overlay animation start. - * ```typescript - * animationStarting(event: OverlayAnimationEventArgs){ - * const animationStarting = event; - * } - * ``` */ public animationStarting = new EventEmitter(); @@ -354,9 +319,6 @@ export class IgxOverlayService implements OnDestroy { * Remove overlay with the provided id. * * @param id Id of the overlay to remove - * ```typescript - * this.overlay.detach(id); - * ``` */ public detach(id: string) { const info: OverlayInfo = this.getOverlayById(id); @@ -379,9 +341,6 @@ export class IgxOverlayService implements OnDestroy { /** * Remove all the overlays. - * ```typescript - * this.overlay.detachAll(); - * ``` */ public detachAll() { for (let i = this._overlayInfos.length; i--;) { @@ -458,9 +417,6 @@ export class IgxOverlayService implements OnDestroy { /** * Hides the component with the ID provided as a parameter. - * ```typescript - * this.overlay.hide(id); - * ``` */ public hide(id: string, event?: Event) { this._hide(id, event); @@ -468,9 +424,6 @@ export class IgxOverlayService implements OnDestroy { /** * Hides all the components and the overlay. - * ```typescript - * this.overlay.hideAll(); - * ``` */ public hideAll() { for (let i = this._overlayInfos.length; i--;) { @@ -482,9 +435,6 @@ export class IgxOverlayService implements OnDestroy { * Repositions the component with ID provided as a parameter. * * @param id Id to reposition overlay for - * ```typescript - * this.overlay.reposition(id); - * ``` */ public reposition(id: string) { const overlayInfo = this.getOverlayById(id); @@ -515,9 +465,6 @@ export class IgxOverlayService implements OnDestroy { * @param deltaX Amount of offset in horizontal direction * @param deltaY Amount of offset in vertical direction * @param offsetMode Determines whether to add (by default) or set the offset values with OffsetMode.Add and OffsetMode.Set - * ```typescript - * this.overlay.setOffset(id, deltaX, deltaY, offsetMode); - * ``` */ public setOffset(id: string, deltaX: number, deltaY: number, offsetMode?: OffsetMode) { const info: OverlayInfo = this.getOverlayById(id); diff --git a/projects/igniteui-angular/core/src/services/overlay/position/IPositionStrategy.ts b/projects/igniteui-angular/core/src/services/overlay/position/IPositionStrategy.ts index 8f1ef360412..d8c5250e685 100644 --- a/projects/igniteui-angular/core/src/services/overlay/position/IPositionStrategy.ts +++ b/projects/igniteui-angular/core/src/services/overlay/position/IPositionStrategy.ts @@ -19,17 +19,11 @@ export interface IPositionStrategy { * @param document reference to the Document object * @param initialCall should be true if this is the initial call to the method * @param target attaching target for the component to show - * ```typescript - * settings.positionStrategy.position(content, size, document, true); - * ``` */ position(contentElement: HTMLElement, size?: Size, document?: Document, initialCall?: boolean, target?: Point | HTMLElement): void; /** * Clone the strategy instance. - * ```typescript - * settings.positionStrategy.clone(); - * ``` */ clone(): IPositionStrategy; } diff --git a/projects/igniteui-angular/core/src/services/overlay/position/base-fit-position-strategy.ts b/projects/igniteui-angular/core/src/services/overlay/position/base-fit-position-strategy.ts index f0f36d33bbf..4d71411cbfb 100644 --- a/projects/igniteui-angular/core/src/services/overlay/position/base-fit-position-strategy.ts +++ b/projects/igniteui-angular/core/src/services/overlay/position/base-fit-position-strategy.ts @@ -13,9 +13,6 @@ export abstract class BaseFitPositionStrategy extends ConnectedPositioningStrate * @param document reference to the Document object * @param initialCall should be true if this is the initial call to the method * @param target attaching target for the component to show - * ```typescript - * settings.positionStrategy.position(content, size, document, true); - * ``` */ public override position( contentElement: HTMLElement, size: Size, document?: Document, initialCall?: boolean, target?: Point | HTMLElement): void { diff --git a/projects/igniteui-angular/core/src/services/overlay/position/connected-positioning-strategy.ts b/projects/igniteui-angular/core/src/services/overlay/position/connected-positioning-strategy.ts index fa65bc94b56..a847c622bf4 100644 --- a/projects/igniteui-angular/core/src/services/overlay/position/connected-positioning-strategy.ts +++ b/projects/igniteui-angular/core/src/services/overlay/position/connected-positioning-strategy.ts @@ -42,9 +42,6 @@ export class ConnectedPositioningStrategy implements IPositionStrategy { * @param document reference to the Document object * @param initialCall should be true if this is the initial call to the method * @param target attaching target for the component to show - * ```typescript - * settings.positionStrategy.position(content, size, document, true); - * ``` */ public position(contentElement: HTMLElement, size: Size, document?: Document, initialCall?: boolean, target?: Point | HTMLElement): void { const rects = this.calculateElementRectangles(contentElement, target); diff --git a/projects/igniteui-angular/core/src/services/overlay/position/global-position-strategy.ts b/projects/igniteui-angular/core/src/services/overlay/position/global-position-strategy.ts index 21b55bef665..703661fd3a9 100644 --- a/projects/igniteui-angular/core/src/services/overlay/position/global-position-strategy.ts +++ b/projects/igniteui-angular/core/src/services/overlay/position/global-position-strategy.ts @@ -34,9 +34,6 @@ export class GlobalPositionStrategy implements IPositionStrategy { * @param document reference to the Document object * @param initialCall should be true if this is the initial call to the method * @param target attaching target for the component to show - * ```typescript - * settings.positionStrategy.position(content, size, document, true); - * ``` */ public position(contentElement: HTMLElement): void { contentElement.classList.add('igx-overlay__content--relative'); @@ -46,9 +43,6 @@ export class GlobalPositionStrategy implements IPositionStrategy { /** * Clone the strategy instance. - * ```typescript - * settings.positionStrategy.clone(); - * ``` */ public clone(): IPositionStrategy { return Util.cloneInstance(this); diff --git a/projects/igniteui-angular/core/src/services/overlay/scroll/IScrollStrategy.ts b/projects/igniteui-angular/core/src/services/overlay/scroll/IScrollStrategy.ts index 36392d53701..76c68ee83b8 100644 --- a/projects/igniteui-angular/core/src/services/overlay/scroll/IScrollStrategy.ts +++ b/projects/igniteui-angular/core/src/services/overlay/scroll/IScrollStrategy.ts @@ -11,25 +11,16 @@ export interface IScrollStrategy { * @param document reference to Document object. * @param overlayService IgxOverlay service to use in this strategy. * @param id Unique id for this strategy. - * ```typescript - * settings.scrollStrategy.initialize(document, overlay, id); - * ``` */ initialize(document: Document, overlayService: IgxOverlayService, id: string); /** * Attaches the strategy - * ```typescript - * settings.scrollStrategy.attach(); - * ``` */ attach(): void; /** * Detaches the strategy - * ```typescript - * settings.scrollStrategy.detach(); - * ``` */ detach(): void; } diff --git a/projects/igniteui-angular/core/src/services/overlay/scroll/NoOpScrollStrategy.ts b/projects/igniteui-angular/core/src/services/overlay/scroll/NoOpScrollStrategy.ts index 4bc8d91a32d..859a634c789 100644 --- a/projects/igniteui-angular/core/src/services/overlay/scroll/NoOpScrollStrategy.ts +++ b/projects/igniteui-angular/core/src/services/overlay/scroll/NoOpScrollStrategy.ts @@ -14,17 +14,11 @@ export class NoOpScrollStrategy extends ScrollStrategy { /** * Detaches the strategy - * ```typescript - * settings.scrollStrategy.detach(); - * ``` */ public attach(): void { } /** * Detaches the strategy - * ```typescript - * settings.scrollStrategy.detach(); - * ``` */ public detach(): void { } } diff --git a/projects/igniteui-angular/core/src/services/overlay/scroll/absolute-scroll-strategy.ts b/projects/igniteui-angular/core/src/services/overlay/scroll/absolute-scroll-strategy.ts index d4d85d57306..aae1b7c4531 100644 --- a/projects/igniteui-angular/core/src/services/overlay/scroll/absolute-scroll-strategy.ts +++ b/projects/igniteui-angular/core/src/services/overlay/scroll/absolute-scroll-strategy.ts @@ -24,9 +24,6 @@ export class AbsoluteScrollStrategy extends ScrollStrategy { * @param document reference to Document object. * @param overlayService IgxOverlay service to use in this strategy. * @param id Unique id for this strategy. - * ```typescript - * settings.scrollStrategy.initialize(document, overlay, id); - * ``` */ public initialize(document: Document, overlayService: IgxOverlayService, id: string) { if (this._initialized) { @@ -41,9 +38,6 @@ export class AbsoluteScrollStrategy extends ScrollStrategy { /** * Attaches the strategy - * ```typescript - * settings.scrollStrategy.attach(); - * ``` */ public attach(): void { if (this._zone) { @@ -57,9 +51,6 @@ export class AbsoluteScrollStrategy extends ScrollStrategy { /** * Detaches the strategy - * ```typescript - * settings.scrollStrategy.detach(); - * ``` */ public detach(): void { if (this._scrollContainer) { diff --git a/projects/igniteui-angular/core/src/services/overlay/scroll/block-scroll-strategy.ts b/projects/igniteui-angular/core/src/services/overlay/scroll/block-scroll-strategy.ts index 1412795bceb..bb8cd2b4273 100644 --- a/projects/igniteui-angular/core/src/services/overlay/scroll/block-scroll-strategy.ts +++ b/projects/igniteui-angular/core/src/services/overlay/scroll/block-scroll-strategy.ts @@ -16,7 +16,6 @@ export class BlockScrollStrategy extends ScrollStrategy { /** * Initializes the strategy. Should be called once - * */ public initialize(document: Document) { if (this._initialized) { @@ -29,9 +28,6 @@ export class BlockScrollStrategy extends ScrollStrategy { /** * Attaches the strategy - * ```typescript - * settings.scrollStrategy.attach(); - * ``` */ public attach(): void { this._document.addEventListener('scroll', this.onScroll, true); @@ -39,9 +35,6 @@ export class BlockScrollStrategy extends ScrollStrategy { /** * Detaches the strategy - * ```typescript - * settings.scrollStrategy.detach(); - * ``` */ public detach(): void { this._document.removeEventListener('scroll', this.onScroll, true); diff --git a/projects/igniteui-angular/core/src/services/overlay/scroll/close-scroll-strategy.ts b/projects/igniteui-angular/core/src/services/overlay/scroll/close-scroll-strategy.ts index f7dff177fee..9cac5c373d7 100644 --- a/projects/igniteui-angular/core/src/services/overlay/scroll/close-scroll-strategy.ts +++ b/projects/igniteui-angular/core/src/services/overlay/scroll/close-scroll-strategy.ts @@ -29,9 +29,6 @@ export class CloseScrollStrategy extends ScrollStrategy { * @param document reference to Document object. * @param overlayService IgxOverlay service to use in this strategy. * @param id Unique id for this strategy. - * ```typescript - * settings.scrollStrategy.initialize(document, overlay, id); - * ``` */ public initialize(document: Document, overlayService: IgxOverlayService, id: string) { if (this._initialized) { @@ -46,9 +43,6 @@ export class CloseScrollStrategy extends ScrollStrategy { /** * Attaches the strategy - * ```typescript - * settings.scrollStrategy.attach(); - * ``` */ public attach(): void { if (this._scrollContainer) { @@ -61,9 +55,6 @@ export class CloseScrollStrategy extends ScrollStrategy { /** * Detaches the strategy - * ```typescript - * settings.scrollStrategy.detach(); - * ``` */ public detach(): void { // TODO: check why event listener removes only on first call and remains on each next!!! diff --git a/projects/igniteui-angular/core/src/services/overlay/scroll/scroll-strategy.ts b/projects/igniteui-angular/core/src/services/overlay/scroll/scroll-strategy.ts index 946afa27b83..996ee2269c7 100644 --- a/projects/igniteui-angular/core/src/services/overlay/scroll/scroll-strategy.ts +++ b/projects/igniteui-angular/core/src/services/overlay/scroll/scroll-strategy.ts @@ -8,25 +8,16 @@ export abstract class ScrollStrategy implements IScrollStrategy { * @param document reference to Document object. * @param overlayService IgxOverlay service to use in this strategy. * @param id Unique id for this strategy. - * ```typescript - * settings.scrollStrategy.initialize(document, overlay, id); - * ``` */ public abstract initialize(document: Document, overlayService: IgxOverlayService, id: string); /** * Attaches the strategy - * ```typescript - * settings.scrollStrategy.attach(); - * ``` */ public abstract attach(): void; /** * Detaches the strategy - * ```typescript - * settings.scrollStrategy.detach(); - * ``` */ public abstract detach(): void; } diff --git a/projects/igniteui-angular/core/src/services/overlay/utilities.ts b/projects/igniteui-angular/core/src/services/overlay/utilities.ts index 0cf7f38cdf0..8a5c6fe2491 100644 --- a/projects/igniteui-angular/core/src/services/overlay/utilities.ts +++ b/projects/igniteui-angular/core/src/services/overlay/utilities.ts @@ -13,9 +13,6 @@ const getIntersectionObserver = () => globalThis.window?.IntersectionObserver; /** * Mark an element as an igxOverlay outlet container. * Directive instance is exported as `overlay-outlet` to be assigned to templates variables: - * ```html - *
- * ``` */ @Directive({ exportAs: 'overlay-outlet', diff --git a/projects/igniteui-angular/date-picker/src/date-picker/date-picker.component.ts b/projects/igniteui-angular/date-picker/src/date-picker/date-picker.component.ts index b13f9a0beb2..e1d1b3fdb72 100644 --- a/projects/igniteui-angular/date-picker/src/date-picker/date-picker.component.ts +++ b/projects/igniteui-angular/date-picker/src/date-picker/date-picker.component.ts @@ -76,15 +76,6 @@ let NEXT_ID = 0; /** * Date Picker displays a popup calendar that lets users select a single date. - * - * @igxModule IgxDatePickerModule - * @igxTheme igx-calendar-theme, igx-icon-theme - * @igxGroup Scheduling - * @igxKeywords datepicker, calendar, schedule, date - * @example - * ```html - * - * ``` */ @Component({ providers: [ @@ -121,14 +112,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr * @remarks * Applies to dates that are out of the current month. * Default value is `false`. - * @example - * ```html - * - * ``` - * @example - * ```typescript - * let hideOutsideDays = this.datePicker.hideOutsideDays; - * ``` */ @Input({ transform: booleanAttribute }) public hideOutsideDays: boolean; @@ -138,35 +121,18 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr * * @remarks * Default value is `1`. - * - * @example - * ```html - * - * ``` - * @example - * ```typescript - * let monthViewsDisplayed = this.datePicker.displayMonthsCount; - * ``` */ @Input() public displayMonthsCount = 1; /** * Gets/Sets the orientation of the multiple months displayed in the picker's calendar's days view. - * - * @example - * */ @Input() public orientation: PickerCalendarOrientation = PickerCalendarOrientation.Horizontal; /** * Show/hide week numbers - * - * @example - * ```html - * - * `` */ @Input({ transform: booleanAttribute }) public showWeekNumbers: boolean; @@ -189,44 +155,24 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr /** * Gets/Sets a custom formatter function on the selected or passed date. - * - * @example - * ```html - * - * ``` */ @Input() public formatter: (val: Date) => string; /** * Gets/Sets the today button's label. - * - * @example - * ```html - * - * ``` */ @Input() public todayButtonLabel: string; /** * Gets/Sets the cancel button's label. - * - * @example - * ```html - * - * ``` */ @Input() public cancelButtonLabel: string; /** * Specify if the currently spun date segment should loop over. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public spinLoop = true; @@ -234,11 +180,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr /** * Delta values used to increment or decrement each editor date part on spin actions. * All values default to `1`. - * - * @example - * ```html - * - * ``` */ @Input() public spinDelta: Pick; @@ -248,13 +189,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr * * @remarks * `outlet` is an instance of `IgxOverlayOutletDirective` or an `ElementRef`. - * @example - * ```html - *
- * //.. - * - * //.. - * ``` */ @Input() public override outlet: IgxOverlayOutletDirective | ElementRef; @@ -263,10 +197,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr * Gets/Sets the value of `id` attribute. * * @remarks If not provided it will be automatically generated. - * @example - * ```html - * - * ``` */ @Input() @HostBinding('attr.id') @@ -276,24 +206,12 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr /** * Gets/Sets the format views of the `IgxDatePickerComponent`. - * - * @example - * ```typescript - * let formatViews = this.datePicker.formatViews; - * this.datePicker.formatViews = {day:false, month: false, year:false}; - * ``` */ @Input() public formatViews: IFormattingViews; /** * Gets/Sets the disabled dates descriptors. - * - * @example - * ```typescript - * let disabledDates = this.datepicker.disabledDates; - * this.datePicker.disabledDates = [ {type: DateRangeType.Weekends}, ...]; - * ``` */ @Input() public get disabledDates(): DateRangeDescriptor[] { @@ -306,12 +224,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr /** * Gets/Sets the special dates descriptors. - * - * @example - * ```typescript - * let specialDates = this.datepicker.specialDates; - * this.datePicker.specialDates = [ {type: DateRangeType.Weekends}, ... ]; - * ``` */ @Input() public get specialDates(): DateRangeDescriptor[] { @@ -324,11 +236,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr /** * Gets/Sets the format options of the `IgxDatePickerComponent`. - * - * @example - * ```typescript - * this.datePicker.calendarFormat = {day: "numeric", month: "long", weekday: "long", year: "numeric"}; - * ``` */ @Input() public calendarFormat: IFormattingOptions; @@ -337,11 +244,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr /** * Gets/Sets the selected date. - * - * @example - * ```html - * - * ``` */ @Input() public get value(): Date | string { @@ -359,9 +261,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr /** * The minimum value the picker will accept. - * - * @example - * */ @Input() public set minValue(value: Date | string) { @@ -375,9 +274,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr /** * The maximum value the picker will accept. - * - * @example - * */ @Input() public set maxValue(value: Date | string) { @@ -405,22 +301,12 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr * * @remarks * Used for `two-way` bindings. - * - * @example - * ```html - * - * ``` */ @Output() public valueChange = new EventEmitter(); /** * Emitted when the user types/spins invalid date in the date-picker editor. - * - * @example - * ```html - * - * ``` */ @Output() public validationFailed = new EventEmitter(); @@ -576,13 +462,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr /** * Opens the picker's dropdown or dialog. - * - * @example - * ```html - * - * - * - * ``` */ public open(settings?: OverlaySettings): void { if (!this.collapsed || this.disabled || this.readOnly) { @@ -607,13 +486,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr /** * Toggles the picker's dropdown or dialog - * - * @example - * ```html - * - * - * - * ``` */ public toggle(settings?: OverlaySettings): void { if (this.collapsed) { @@ -625,13 +497,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr /** * Closes the picker's dropdown or dialog. - * - * @example - * ```html - * - * - * - * ``` */ public close(): void { if (!this.collapsed) { @@ -644,10 +509,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr * * @remarks Updates the value in the input field. * - * @example - * ```typescript - * this.datePicker.select(date); - * ``` * @param date passed date that has to be set to the calendar. */ public select(value: Date): void { @@ -656,13 +517,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr /** * Selects today's date and closes the picker. - * - * @example - * ```html - * - * - * - * ``` * */ public selectToday(): void { const today = new Date(); @@ -676,11 +530,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr /** * Clears the input field and the picker's value. - * - * @example - * ```typescript - * this.datePicker.clear(); - * ``` */ public clear(): void { if (!this.disabled || !this.readOnly) { @@ -694,10 +543,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr * * @param datePart The optional DatePart to increment. Defaults to Date. * @param delta The optional delta to increment by. Overrides `spinDelta`. - * @example - * ```typescript - * this.datePicker.increment(DatePart.Date); - * ``` */ public increment(datePart?: DatePart, delta?: number): void { this.dateTimeEditor.increment(datePart, delta); @@ -708,10 +553,6 @@ export class IgxDatePickerComponent extends PickerBaseDirective implements Contr * * @param datePart The optional DatePart to decrement. Defaults to Date. * @param delta The optional delta to decrement by. Overrides `spinDelta`. - * @example - * ```typescript - * this.datePicker.decrement(DatePart.Date); - * ``` */ public decrement(datePart?: DatePart, delta?: number): void { this.dateTimeEditor.decrement(datePart, delta); diff --git a/projects/igniteui-angular/date-picker/src/date-picker/picker-base.directive.ts b/projects/igniteui-angular/date-picker/src/date-picker/picker-base.directive.ts index d9d005be4fb..34a6120b243 100644 --- a/projects/igniteui-angular/date-picker/src/date-picker/picker-base.directive.ts +++ b/projects/igniteui-angular/date-picker/src/date-picker/picker-base.directive.ts @@ -38,11 +38,6 @@ export abstract class PickerBaseDirective implements IToggleView, EditorProvider * * @remarks * Also used as a placeholder when none is provided. - * - * @example - * ```html - * - * ``` */ @Input() public set inputFormat(value: string) { @@ -58,12 +53,6 @@ export abstract class PickerBaseDirective implements IToggleView, EditorProvider * * @remarks * Uses Angular's DatePipe. - * - * @example - * ```html - * - * ``` - * */ @Input() public set displayFormat(value: string) { @@ -76,11 +65,6 @@ export abstract class PickerBaseDirective implements IToggleView, EditorProvider /** * Sets the `placeholder` of the picker's input. - * - * @example - * ```html - * - * ``` */ @Input() public placeholder = ''; @@ -90,64 +74,35 @@ export abstract class PickerBaseDirective implements IToggleView, EditorProvider * * @remarks * Default mode is `dropdown` - * - * @example - * ```html - * - * ``` */ @Input() public mode: PickerInteractionMode = PickerInteractionMode.DropDown; /** * Gets/Sets the orientation of the `IgxDatePickerComponent` header. - * - * @example - * ```html - * - * ``` */ @Input() public headerOrientation: PickerHeaderOrientation = PickerHeaderOrientation.Horizontal; /** * Gets/Sets whether the header is hidden in dialog mode. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public hideHeader = false; /** * Overlay settings used to display the pop-up element. - * - * @example - * ```html - * - * ``` */ @Input() public overlaySettings: OverlaySettings; /** * Enables or disables the picker. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public disabled = false; /** - * @example - * ```html - * - * ``` */ /** * Gets the `locale` of the date-picker. @@ -187,14 +142,6 @@ export abstract class PickerBaseDirective implements IToggleView, EditorProvider /** * The container used for the pop-up element. - * - * @example - * ```html - *
- * - * - * - * ``` */ @Input() public outlet: IgxOverlayOutletDirective | ElementRef; @@ -204,11 +151,6 @@ export abstract class PickerBaseDirective implements IToggleView, EditorProvider * * @remarks * Default is `box`. - * - * @example - * ```html - * - * ``` */ @Input() public set type(val: IgxInputGroupType) { @@ -220,55 +162,30 @@ export abstract class PickerBaseDirective implements IToggleView, EditorProvider /** * Gets/Sets the default template editor's tabindex. - * - * @example - * ```html - * - * ``` */ @Input() public tabIndex: number | string; /** * Emitted when the calendar has started opening, cancelable. - * - * @example - * ```html - * - * ``` */ @Output() public opening = new EventEmitter(); /** * Emitted after the calendar has opened. - * - * @example - * ```html - * - * ``` */ @Output() public opened = new EventEmitter(); /** * Emitted when the calendar has started closing, cancelable. - * - * @example - * ```html - * - * ``` */ @Output() public closing = new EventEmitter(); /** * Emitted after the calendar has closed. - * - * @example - * ```html - * - * ``` */ @Output() public closed = new EventEmitter(); @@ -303,11 +220,6 @@ export abstract class PickerBaseDirective implements IToggleView, EditorProvider /** * Gets the picker's pop-up state. - * - * @example - * ```typescript - * const state = this.picker.collapsed; - * ``` */ public get collapsed(): boolean { return this._collapsed; diff --git a/projects/igniteui-angular/date-picker/src/date-range-picker/date-range-picker-inputs.common.ts b/projects/igniteui-angular/date-picker/src/date-range-picker/date-range-picker-inputs.common.ts index 62055346f83..35f384cae32 100644 --- a/projects/igniteui-angular/date-picker/src/date-range-picker/date-range-picker-inputs.common.ts +++ b/projects/igniteui-angular/date-picker/src/date-range-picker/date-range-picker-inputs.common.ts @@ -88,26 +88,8 @@ export class IgxDateRangeInputsBaseComponent extends IgxInputGroupComponent { /** * Defines the start input for a date range picker * - * @igxModule IgxDateRangePickerModule - * - * @igxTheme igx-input-group-theme, igx-calendar-theme, igx-date-range-picker-theme - * - * @igxKeywords date, range, date range, date picker - * - * @igxGroup scheduling - * * @remarks * When templating, start input has to be templated separately - * - * @example - * ```html - * - * - * - * - * ... - * - * ``` */ @Component({ selector: 'igx-date-range-start', @@ -123,26 +105,8 @@ export class IgxDateRangeStartComponent extends IgxDateRangeInputsBaseComponent /** * Defines the end input for a date range picker * - * @igxModule IgxDateRangePickerModule - * - * @igxTheme igx-input-group-theme, igx-calendar-theme, igx-date-range-picker-theme - * - * @igxKeywords date, range, date range, date picker - * - * @igxGroup scheduling - * * @remarks * When templating, end input has to be template separately - * - * @example - * ```html - * - * ... - * - * - * - * - * ``` */ @Component({ selector: 'igx-date-range-end', @@ -157,30 +121,6 @@ export class IgxDateRangeEndComponent extends IgxDateRangeInputsBaseComponent { /** * Replaces the default separator `to` with the provided value - * - * @igxModule IgxDateRangePickerModule - * - * @igxTheme igx-date-range-picker-theme - * - * @igxKeywords date, range, date range, date picker - * - * @igxGroup scheduling - * - * @example - * ```html - * - * - * - * - * - * - - * - * - * - * - * ... - * - * ``` */ @Directive({ selector: '[igxDateRangeSeparator]', diff --git a/projects/igniteui-angular/date-picker/src/date-range-picker/date-range-picker.component.ts b/projects/igniteui-angular/date-picker/src/date-range-picker/date-range-picker.component.ts index 049d44ce91a..4321cc37bd2 100644 --- a/projects/igniteui-angular/date-picker/src/date-range-picker/date-range-picker.component.ts +++ b/projects/igniteui-angular/date-picker/src/date-range-picker/date-range-picker.component.ts @@ -68,24 +68,11 @@ const SingleInputDatesConcatenationString = ' - '; /** * Provides the ability to select a range of dates from a calendar UI or editable inputs. * - * @igxModule IgxDateRangeModule - * - * @igxTheme igx-input-group-theme, igx-calendar-theme, igx-date-range-picker-theme - * - * @igxKeywords date, range, date range, date picker - * - * @igxGroup scheduling - * * @remarks * It displays the range selection in a single or two input fields. * The default template displays a single *readonly* input field * while projecting `igx-date-range-start` and `igx-date-range-end` * displays two *editable* input fields. - * - * @example - * ```html - * - * ``` */ @Component({ selector: 'igx-date-range-picker', @@ -118,11 +105,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective * * @remarks * Default is `2`. - * - * @example - * ```html - * - * ``` */ @Input() public get displayMonthsCount(): number { @@ -135,9 +117,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective /** * Gets/Sets the orientation of the multiple months displayed in the picker's calendar's days view. - * - * @example - * */ @Input() public orientation: PickerCalendarOrientation = PickerCalendarOrientation.Horizontal; @@ -147,30 +126,12 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective * * @remarks * Default value is `false`. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public hideOutsideDays: boolean; /** * A custom formatter function, applied on the selected or passed in date. - * - * @example - * ```typescript - * private dayFormatter = new Intl.DateTimeFormat("en", { weekday: "long" }); - * private monthFormatter = new Intl.DateTimeFormat("en", { month: "long" }); - * - * public formatter(date: Date): string { - * return `${this.dayFormatter.format(date)} - ${this.monthFormatter.format(date)} - ${date.getFullYear()}`; - * } - * ``` - * ```html - * - * ``` */ @Input() public formatter: (val: DateRange) => string; @@ -181,11 +142,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective * @remarks * Defaults to the value from resource strings, `"Done"` for the built-in EN. * The button will only show up in `dialog` mode. - * - * @example - * ```html - * - * ``` */ @Input() public set doneButtonText(value: string) { @@ -204,11 +160,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective * @remarks * Defaults to the value from resource strings, `"Cancel"` for the built-in EN. * The button will only show up in `dialog` mode. - * - * @example - * ```html - * - * ``` */ @Input() public set cancelButtonText(value: string) { @@ -223,11 +174,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective } /** * Custom overlay settings that should be used to display the calendar. - * - * @example - * ```html - * - * ``` */ @Input() public override overlaySettings: OverlaySettings; @@ -237,12 +183,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective * * @remarks * Uses Angular's DatePipe. - * - * @example - * ```html - * - * ``` - * */ @Input() public override set displayFormat(value: string) { @@ -255,11 +195,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective /** * The expected user input format and placeholder. - * - * @example - * ```html - * - * ``` */ @Input() public override set inputFormat(value: string) { @@ -273,9 +208,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective /** * The minimum value in a valid range. - * - * @example - * */ @Input() public set minValue(value: Date | string) { @@ -289,9 +221,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective /** * The maximum value in a valid range. - * - * @example - * */ @Input() public set maxValue(value: Date | string) { @@ -305,12 +234,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective /** * Gets/Sets the disabled dates descriptors. - * - * @example - * ```typescript - * let disabledDates = this.dateRangePicker.disabledDates; - * this.dateRangePicker.disabledDates = [ {type: DateRangeType.Weekends}, ...]; - * ``` */ @Input() public get disabledDates(): DateRangeDescriptor[] { @@ -323,12 +246,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective /** * Gets/Sets the special dates descriptors. - * - * @example - * ```typescript - * let specialDates = this.dateRangePicker.specialDates; - * this.dateRangePicker.specialDates = [ {type: DateRangeType.Weekends}, ... ]; - * ``` */ @Input() public get specialDates(): DateRangeDescriptor[] { @@ -356,11 +273,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective /** * Sets the `placeholder` for single-input `IgxDateRangePickerComponent`. - * - * @example - * ```html - * - * ``` */ @Input() public override placeholder = ''; @@ -370,13 +282,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective * * @remarks * `outlet` is an instance of `IgxOverlayOutletDirective` or an `ElementRef`. - * @example - * ```html - *
- * //.. - * - * //.. - * ``` */ @Input() public override outlet: IgxOverlayOutletDirective | ElementRef; @@ -386,11 +291,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective * * @remarks * Default is `false`. - * - * @example - * ```html - * - * `` */ @Input({ transform: booleanAttribute }) public showWeekNumbers = false; @@ -401,30 +301,15 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective /** * Emitted when the picker's value changes. Used for two-way binding. - * - * @example - * ```html - * - * ``` */ /** * Whether to render built-in predefined ranges. - * - * @example - * ```html - * - * `` * */ @Input() public usePredefinedRanges = false; /** * Custom ranges rendered as chips. - * - * @example - * ```html - * - * `` */ @Input() public customRanges: CustomDateRange[] = []; @@ -502,10 +387,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective } /** - * @example - * ```html - * - * ``` */ /** * Gets the `locale` of the date-range-picker. @@ -541,10 +422,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective /** * Gets calendar state. - * - * ```typescript - * let state = this.dateRange.collapsed; - * ``` */ public override get collapsed(): boolean { return this._collapsed; @@ -555,12 +432,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective * * @remarks * The current value is of type `DateRange` - * - * @example - * ```typescript - * const newValue: DateRange = { start: new Date("2/2/2012"), end: new Date("3/3/2013")}; - * this.dateRangePicker.value = newValue; - * ``` */ public get value(): DateRange | null { return this._value; @@ -680,13 +551,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective /** * Opens the date range picker's dropdown or dialog. - * - * @example - * ```html - * - * - * - * - * - * ``` */ public close(): void { if (!this.collapsed) { @@ -726,13 +583,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective /** * Toggles the date range picker's dropdown or dialog - * - * @example - * ```html - * - * - * - * ``` */ public toggle(overlaySettings?: OverlaySettings): void { if (!this.collapsed) { @@ -744,15 +594,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective /** * Selects a range of dates. If no `endDate` is passed, range is 1 day (only `startDate`) - * - * @example - * ```typescript - * public selectFiveDayRange() { - * const today = new Date(); - * const inFiveDays = new Date(new Date().setDate(today.getDate() + 5)); - * this.dateRange.select(today, inFiveDays); - * } - * ``` */ public select(startDate: Date, endDate?: Date): void { endDate = endDate ?? startDate; @@ -762,11 +603,6 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective /** * Clears the input field(s) and the picker's value. - * - * @example - * ```typescript - * this.dateRangePicker.clear(); - * ``` */ public clear(): void { if (this.disabled) { diff --git a/projects/igniteui-angular/dialog/src/dialog/dialog.component.ts b/projects/igniteui-angular/dialog/src/dialog/dialog.component.ts index c6f95f29f63..66fc0633fc5 100644 --- a/projects/igniteui-angular/dialog/src/dialog/dialog.component.ts +++ b/projects/igniteui-angular/dialog/src/dialog/dialog.component.ts @@ -21,23 +21,6 @@ let DIALOG_ID = 0; * which can be used for custom actions. * * Example: - * ```html - * - * - *
- * - * - * - * - *
- *
- * - * - * - * - *
- *
- * ``` */ @Component({ selector: 'igx-dialog', @@ -58,11 +41,6 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After /** * Sets the value of the `id` attribute. If not provided it will be automatically generated. - * ```html - * - * - * ``` */ @HostBinding('attr.id') @Input() @@ -70,9 +48,6 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After /** * Controls whether the dialog should be shown as modal. Defaults to `true` - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public get isModal() { @@ -86,9 +61,6 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After /** * Controls whether the dialog should close when `Esc` key is pressed. Defaults to `true` - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public get closeOnEscape() { @@ -103,36 +75,24 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After /** * Set whether the Tab key focus is trapped within the dialog when opened. * Defaults to `true`. - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public focusTrap = true; /** * Sets the title of the dialog. - * ```html - * - * ``` */ @Input() public title = ''; /** * Sets the message text of the dialog. - * ```html - * - * ``` */ @Input() public message = ''; /** * Sets the `label` of the left button of the dialog. - * ```html - * - * ``` */ @Input() public leftButtonLabel = ''; @@ -143,9 +103,6 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After * The `contained` type button is also a rectangle but has a shadow.
* The `fab` type button is a circle with a shadow.
* The default value is `flat`. - * ```html - * - * ``` */ @Input() public leftButtonType: IgxButtonType = 'flat'; @@ -153,18 +110,12 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After /** * Sets the left button `ripple`. The `ripple` animates a click/tap to a component as a series of fading waves. * The property accepts all valid CSS color property values. - * ```html - * - * ``` */ @Input() public leftButtonRipple = ''; /** * Sets the `label` of the right button of the dialog. - * ```html - * - * ``` */ @Input() public rightButtonLabel = ''; @@ -175,29 +126,18 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After * The `contained` type button is also a rectangle but has a shadow.
* The `fab` type button is a circle with a shadow.
* The default value is `flat`. - * ```html - * - * ``` */ @Input() public rightButtonType: IgxButtonType = 'flat'; /** * Sets the right button `ripple`. - * ```html - * - * ``` */ @Input() public rightButtonRipple = ''; /** * Gets/Sets whether the dialog should close on click outside the component. By default it's false. - * ```html - * - * - * ``` */ @Input({ transform: booleanAttribute }) public get closeOnOutsideSelect() { @@ -211,10 +151,6 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After /** * Get the position and animation settings used by the dialog. - * ```typescript - * @ViewChild('alert', { static: true }) public alert: IgxDialogComponent; - * let currentPosition: PositionSettings = this.alert.positionSettings - * ``` */ @Input() public get positionSettings(): PositionSettings { @@ -223,21 +159,6 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After /** * Set the position and animation settings used by the dialog. - * ```typescript - * import { slideInLeft, slideOutRight } from 'igniteui-angular'; - * ... - * @ViewChild('alert', { static: true }) public alert: IgxDialogComponent; - * public newPositionSettings: PositionSettings = { - * openAnimation: useAnimation(slideInTop, { params: { duration: '2000ms' } }), - * closeAnimation: useAnimation(slideOutBottom, { params: { duration: '2000ms'} }), - * horizontalDirection: HorizontalAlignment.Left, - * verticalDirection: VerticalAlignment.Middle, - * horizontalStartPoint: HorizontalAlignment.Left, - * verticalStartPoint: VerticalAlignment.Middle, - * minSize: { height: 100, width: 100 } - * }; - * this.alert.positionSettings = this.newPositionSettings; - * ``` */ public set positionSettings(settings: PositionSettings) { this._positionSettings = settings; @@ -254,62 +175,36 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After /** * An event that is emitted before the dialog is opened. - * ```html - * - * - * ``` */ @Output() public opening = new EventEmitter(); /** * An event that is emitted after the dialog is opened. - * ```html - * - * - * ``` */ @Output() public opened = new EventEmitter(); /** * An event that is emitted before the dialog is closed. - * ```html - * - * - * ``` */ @Output() public closing = new EventEmitter(); /** * An event that is emitted after the dialog is closed. - * ```html - * - * - * ``` */ @Output() public closed = new EventEmitter(); /** * An event that is emitted when the left button is clicked. - * ```html - * - * - * ``` */ @Output() public leftButtonSelect = new EventEmitter(); /** * An event that is emitted when the right button is clicked. - * ```html - * - * - * ``` */ @Output() public rightButtonSelect = new EventEmitter(); @@ -328,13 +223,6 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After /** * Returns the value of state. Possible state values are "open" or "close". - * ```typescript - * @ViewChild("MyDialog") - * public dialog: IgxDialogComponent; - * ngAfterViewInit() { - * let dialogState = this.dialog.state; - * } - * ``` */ public get state(): string { return this.isOpen ? 'open' : 'close'; @@ -343,21 +231,7 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After /** * State of the dialog. * - * ```typescript - * // get - * let dialogIsOpen = this.dialog.isOpen; - * ``` - * - * ```html - * - * - * ``` - * * Two-way data binding. - * ```html - * - * - * ``` */ @Input({ transform: booleanAttribute }) public get isOpen() { @@ -383,13 +257,6 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After /** * Returns the value of the role of the dialog. The valid values are `dialog`, `alertdialog`, `alert`. - * ```typescript - * @ViewChild("MyDialog") - * public dialog: IgxDialogComponent; - * ngAfterViewInit() { - * let dialogRole = this.dialog.role; - * } - * ``` */ @Input() public get role() { @@ -407,13 +274,6 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After /** * Returns the value of the title id. - * ```typescript - * @ViewChild("MyDialog") - * public dialog: IgxDialogComponent; - * ngAfterViewInit() { - * let dialogTitle = this.dialog.titleId; - * } - * ``` */ @Input() public get titleId() { @@ -455,10 +315,6 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After * A method that opens the dialog. * * @memberOf {@link IgxDialogComponent} - * ```html - * - * - * ``` */ public open(overlaySettings: OverlaySettings = this._overlayDefaultSettings) { const eventArgs: IDialogCancellableEventArgs = { dialog: this, event: null, cancel: false }; @@ -478,10 +334,6 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After * A method that that closes the dialog. * * @memberOf {@link IgxDialogComponent} - * ```html - * - * - * ``` */ public close() { // `closing` will emit from `toggleRef.closing` subscription @@ -493,10 +345,6 @@ export class IgxDialogComponent implements IToggleView, OnInit, OnDestroy, After * A method that opens/closes the dialog. * * @memberOf {@link IgxDialogComponent} - * ```html - * - * - * ``` */ public toggle() { if (this.isOpen) { diff --git a/projects/igniteui-angular/directives/src/directives/button/button-base.ts b/projects/igniteui-angular/directives/src/directives/button/button-base.ts index f07aa008621..be14464ba4c 100644 --- a/projects/igniteui-angular/directives/src/directives/button/button-base.ts +++ b/projects/igniteui-angular/directives/src/directives/button/button-base.ts @@ -36,12 +36,6 @@ export abstract class IgxButtonBaseDirective implements AfterViewInit, OnDestroy /** * Sets/gets the `role` attribute. - * - * @example - * ```typescript - * this.button.role = 'navbutton'; - * let buttonRole = this.button.role; - * ``` */ @HostBinding('attr.role') public role = 'button'; @@ -68,23 +62,12 @@ export abstract class IgxButtonBaseDirective implements AfterViewInit, OnDestroy /** * Sets/gets whether the button component is on focus. * Default value is `false`. - * ```typescript - * this.button.focus = true; - * ``` - * ```typescript - * let isFocused = this.button.focused; - * ``` */ @HostBinding('class.igx-button--focused') protected focused = false; /** * Enables/disables the button. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) @HostBinding('class.igx-button--disabled') diff --git a/projects/igniteui-angular/directives/src/directives/button/button.directive.ts b/projects/igniteui-angular/directives/src/directives/button/button.directive.ts index 15714511be0..6132259dbce 100644 --- a/projects/igniteui-angular/directives/src/directives/button/button.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/button/button.directive.ts @@ -25,21 +25,8 @@ export type IgxButtonType = typeof IgxButtonType[keyof typeof IgxButtonType]; /** * The Button directive provides the Ignite UI Button functionality to every component that's intended to be used as a button. * - * @igxModule IgxButtonModule - * - * @igxParent Data Entry & Display - * - * @igxTheme igx-button-theme - * - * @igxKeywords button, span, div, click - * * @remarks * The Ignite UI Button directive is intended to be used by any button, span or div and turn it into a fully functional button. - * - * @example - * ```html - * - * ``` */ @Directive({ selector: '[igxButton]', @@ -103,11 +90,6 @@ export class IgxButtonDirective extends IgxButtonBaseDirective { /** * Gets or sets whether the button is selected. * Mainly used in the IgxButtonGroup component and it will have no effect if set separately. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public set selected(value: boolean) { @@ -127,11 +109,6 @@ export class IgxButtonDirective extends IgxButtonBaseDirective { /** * Sets the type of the button. - * - * @example - * ```html - * - * ``` */ @Input('igxButton') public set type(type: IgxButtonType) { @@ -143,11 +120,6 @@ export class IgxButtonDirective extends IgxButtonBaseDirective { /** * Sets the `aria-label` attribute. - * - * @example - * ```html - * - * ``` */ @Input('igxLabel') public set label(value: string) { diff --git a/projects/igniteui-angular/directives/src/directives/button/icon-button.directive.ts b/projects/igniteui-angular/directives/src/directives/button/icon-button.directive.ts index 7cad2ca3ae8..a75abedf410 100644 --- a/projects/igniteui-angular/directives/src/directives/button/icon-button.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/button/icon-button.directive.ts @@ -8,13 +8,6 @@ export type IgxIconButtonType = typeof IgxBaseButtonType[keyof typeof IgxBaseBut /** * The IgxIconButtonDirective provides a way to use an icon as a fully functional button. - * - * @example - * ```html - * - * ``` */ @Directive({ selector: '[igxIconButton]', @@ -42,11 +35,6 @@ export class IgxIconButtonDirective extends IgxButtonBaseDirective { /** * Sets the type of the icon button. - * - * @example - * ```html - * - * ``` */ @Input('igxIconButton') public set type(type: IgxIconButtonType) { diff --git a/projects/igniteui-angular/directives/src/directives/checkbox/checkbox-base.directive.ts b/projects/igniteui-angular/directives/src/directives/checkbox/checkbox-base.directive.ts index e37e78cc1ba..0dd48d45a33 100644 --- a/projects/igniteui-angular/directives/src/directives/checkbox/checkbox-base.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/checkbox/checkbox-base.directive.ts @@ -44,22 +44,12 @@ export class CheckboxBaseDirective implements AfterViewInit { /** * Returns reference to the native checkbox element. - * - * @example - * ```typescript - * let checkboxElement = this.component.checkboxElement; - * ``` */ @ViewChild('checkbox', { static: true }) public nativeInput: ElementRef; /** * Returns reference to the native label element. - * ```typescript - * - * @example - * let labelElement = this.component.nativeLabel; - * ``` */ @ViewChild('label', { static: true }) public nativeLabel: ElementRef; @@ -85,11 +75,6 @@ export class CheckboxBaseDirective implements AfterViewInit { /** * Returns reference to the `nativeElement` of the igx-checkbox/igx-switch. - * - * @example - * ```typescript - * let nativeElement = this.component.nativeElement; - * ``` */ public get nativeElement() { return this.nativeInput.nativeElement; @@ -97,11 +82,6 @@ export class CheckboxBaseDirective implements AfterViewInit { /** * Returns reference to the label placeholder element. - * ```typescript - * - * @example - * let labelPlaceholder = this.component.placeholderLabel; - * ``` */ @ViewChild('placeholderLabel', { static: true }) public placeholderLabel: ElementRef; @@ -109,14 +89,6 @@ export class CheckboxBaseDirective implements AfterViewInit { /** * Sets/gets the `id` of the checkbox component. * If not set, the `id` of the first checkbox component will be `"igx-checkbox-0"`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let checkboxId = this.checkbox.id; - * ``` */ @HostBinding('attr.id') @Input() @@ -125,67 +97,27 @@ export class CheckboxBaseDirective implements AfterViewInit { /** * Sets/gets the id of the `label` element. * If not set, the id of the `label` in the first checkbox component will be `"igx-checkbox-0-label"`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let labelId = this.component.labelId; - * ``` */ @Input() public labelId = `${this.id}-label`; /** * Sets/gets the `value` attribute. - * - * @example - * ```html - * - * ``` - * ```typescript - * let value = this.checkbox.value; - * ``` */ @Input() public value: any; /** * Sets/gets the `name` attribute. - * - * @example - * ```html - * - * ``` - * ```typescript - * let name = this.checkbox.name; - * ``` */ @Input() public name: string; /** * Sets/gets the value of the `tabindex` attribute. - * - * @example - * ```html - * - * ``` - * ```typescript - * let tabIndex = this.checkbox.tabindex; - * ``` */ @Input() public tabindex: number = null; /** * Sets/gets the position of the `label`. * If not set, the `labelPosition` will have value `"after"`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let labelPosition = this.checkbox.labelPosition; - * ``` */ @Input() public labelPosition: LabelPosition | string = LabelPosition.AFTER; @@ -193,14 +125,6 @@ export class CheckboxBaseDirective implements AfterViewInit { /** * Enables/Disables the ripple effect. * If not set, `disableRipple` will have value `false`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let isRippleDisabled = this.checkbox.desableRipple; - * ``` */ @Input({ transform: booleanAttribute }) public disableRipple = false; @@ -208,28 +132,12 @@ export class CheckboxBaseDirective implements AfterViewInit { /** * Sets/gets the `aria-labelledby` attribute. * If not set, the `aria-labelledby` will be equal to the value of `labelId` attribute. - * - * @example - * ```html - * - * ``` - * ```typescript - * let ariaLabelledBy = this.checkbox.ariaLabelledBy; - * ``` */ @Input('aria-labelledby') public ariaLabelledBy = this.labelId; /** * Sets/gets the value of the `aria-label` attribute. - * - * @example - * ```html - * - * ``` - * ```typescript - * let ariaLabel = this.checkbox.ariaLabel; - * ``` */ @Input('aria-label') public ariaLabel: string | null = null; @@ -254,14 +162,6 @@ export class CheckboxBaseDirective implements AfterViewInit { /** * Sets/gets whether the checkbox is required. * If not set, `required` will have value `false`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let isRequired = this.checkbox.required; - * ``` */ @Input({ transform: booleanAttribute }) public get required(): boolean { diff --git a/projects/igniteui-angular/directives/src/directives/date-time-editor/date-time-editor.directive.ts b/projects/igniteui-angular/directives/src/directives/date-time-editor/date-time-editor.directive.ts index 0d822899f96..f2039bef50e 100644 --- a/projects/igniteui-angular/directives/src/directives/date-time-editor/date-time-editor.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/date-time-editor/date-time-editor.directive.ts @@ -11,16 +11,6 @@ import { noop } from 'rxjs'; /** * Date Time Editor provides a functionality to input, edit and format date and time. * - * @igxModule IgxDateTimeEditorModule - * - * @igxParent IgxInputGroup - * - * @igxTheme igx-input-theme - * - * @igxKeywords date, time, editor - * - * @igxGroup Scheduling - * * @remarks * * The Ignite UI Date Time Editor Directive makes it easy for developers to manipulate date/time user input. @@ -32,13 +22,6 @@ import { noop } from 'rxjs'; * **Note:** This directive uses the Mask Directive internally and requires `type="text"` on the input element. * Input elements with `type="date"` or other date/time types are not supported, as they do not allow * programmatic cursor positioning and text selection required for mask functionality. - * - * @example - * ```html - * - * - * - * ``` */ @Directive({ selector: '[igxDateTimeEditor]', @@ -62,11 +45,6 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh * If a `locale` is set, it must be registered via `registerLocaleData`. * Please refer to https://angular.io/guide/i18n#i18n-pipes. * If it is not registered, `Intl` will be used for formatting. - * - * @example - * ```html - * - * ``` */ @Input() public locale: string; @@ -76,11 +54,6 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh * * @remarks * If a `string` value is passed, it must be in the defined input format. - * - * @example - * ```html - * - * ``` */ public get minValue(): string | Date { return this._minValue; @@ -97,11 +70,6 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh * * @remarks * If a `string` value is passed in, it must be in the defined input format. - * - * @example - * ```html - * - * ``` */ public get maxValue(): string | Date { return this._maxValue; @@ -115,11 +83,6 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh /** * Specify if the currently spun date segment should loop over. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public spinLoop = true; @@ -127,11 +90,6 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh /** * Set both pre-defined format options such as `shortDate` and `longDate`, * as well as constructed format string using characters supported by `DatePipe`, e.g. `EE/MM/yyyy`. - * - * @example - * ```html - * - * ``` */ @Input() public set displayFormat(value: string) { @@ -145,11 +103,6 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh /** * Expected user input format (and placeholder). - * - * @example - * ```html - * - * ``` */ @Input(`igxDateTimeEditor`) public set inputFormat(value: string) { @@ -165,11 +118,6 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh /** * Editor value. - * - * @example - * ```html - * - * ``` */ @Input() public set value(value: Date | string | undefined | null) { @@ -186,11 +134,6 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh /** * Specify the default input format type. Defaults to `date`, which includes * only date parts for editing. Other valid options are `time` and `dateTime`. - * - * @example - * ```html - * - * ``` */ @Input() public defaultFormatType: 'date' | 'time' | 'dateTime' = 'date'; @@ -198,33 +141,18 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh /** * Delta values used to increment or decrement each editor date part on spin actions. * All values default to `1`. - * - * @example - * ```html - * - * ``` */ @Input() public spinDelta: DatePartDeltas; /** * Emitted when the editor's value has changed. - * - * @example - * ```html - * - * ``` */ @Output() public valueChange = new EventEmitter(); /** * Emitted when the editor is not within a specified range or when the editor's value is in an invalid state. - * - * @example - * ```html - * - * ``` */ @Output() public validationFailed = new EventEmitter(); diff --git a/projects/igniteui-angular/directives/src/directives/divider/divider.directive.ts b/projects/igniteui-angular/directives/src/directives/divider/divider.directive.ts index 87df52945e3..6589b6e7129 100644 --- a/projects/igniteui-angular/directives/src/directives/divider/divider.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/divider/divider.directive.ts @@ -17,12 +17,6 @@ export class IgxDividerDirective { /** * Sets/gets the `id` of the divider. * If not set, `id` will have value `"igx-divider-0"`; - * ```html - * - * ``` - * ```typescript - * let dividerId = this.divider.id; - * ``` */ @HostBinding('attr.id') @Input() @@ -39,9 +33,6 @@ export class IgxDividerDirective { /** * Sets the type of the divider. The default value * is `default`. The divider can also be `dashed`; - * ```html - * - * ``` */ @HostBinding('class.igx-divider') @Input() @@ -55,9 +46,6 @@ export class IgxDividerDirective { /** * If set to `true` and an `inset` value has been provided, * the divider will start shrinking from both ends. - * ```html - * - * ``` */ @HostBinding('class.igx-divider--inset') @Input({ transform: booleanAttribute }) @@ -65,9 +53,6 @@ export class IgxDividerDirective { /** * Sets the divider in vertical orientation. - * ```html - * - * ``` */ @HostBinding('class.igx-divider--vertical') @Input({ transform: booleanAttribute }) @@ -77,9 +62,6 @@ export class IgxDividerDirective { * Sets the inset of the divider from the side(s). * If the divider attribute `middle` is set to `true`, * it will inset the divider on both sides. - * ```typescript - * this.divider.inset = '32px'; - * ``` */ @HostBinding('style.--inset') @Input() @@ -90,9 +72,6 @@ export class IgxDividerDirective { /** * Gets the current divider inset in terms of * inset-inline-start representation as applied to the divider. - * ```typescript - * const inset = this.divider.inset; - * ``` */ public get inset() { return this._inset; @@ -101,17 +80,11 @@ export class IgxDividerDirective { /** * Sets the value of the `inset` attribute. * If not provided it will be set to `'0'`. - * ```html - * - * ``` */ private _inset = '0'; /** * A getter that returns `true` if the type of the divider is `default`; - * ```typescript - * const isDefault = this.divider.isDefault; - * ``` */ public get isSolid() { return this.type === IgxDividerType.SOLID; diff --git a/projects/igniteui-angular/directives/src/directives/drag-drop/drag-drop.directive.ts b/projects/igniteui-angular/directives/src/directives/drag-drop/drag-drop.directive.ts index 23dd0b25719..dbf17a0da4d 100644 --- a/projects/igniteui-angular/directives/src/directives/drag-drop/drag-drop.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/drag-drop/drag-drop.directive.ts @@ -189,9 +189,6 @@ export class IgxDragIgnoreDirective { export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * - Save data inside the `igxDrag` directive. This can be set when instancing `igxDrag` on an element. - * ```html - *
- * ``` * * @memberof IgxDragDirective */ @@ -207,11 +204,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * Sets the tolerance in pixels before drag starts. * By default the drag starts after the draggable element is moved by 5px. - * ```html - *
- * Drag Me! - *
- * ``` * * @memberof IgxDragDirective */ @@ -221,14 +213,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * Sets the directions that the element can be dragged. * By default it is set to both horizontal and vertical directions. - * ```html - *
- * Drag Me! - *
- * ``` - * ```typescript - * public dragDir = DragDirection.HORIZONTAL; - * ``` * * @memberof IgxDragDirective */ @@ -238,14 +222,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * A property that provides a way for igxDrag and igxDrop to be linked through channels. * It accepts single value or an array of values and evaluates then using strict equality. - * ```html - *
- * 95 - *
- *
- * Numbers drop area! - *
- * ``` * * @memberof IgxDragDirective */ @@ -256,11 +232,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { * Sets whether the base element should be moved, or a ghost element should be rendered that represents it instead. * By default it is set to `true`. * If it is set to `false` when dragging the base element is moved instead and no ghost elements are rendered. - * ```html - *
- * Drag Me! - *
- * ``` * * @memberof IgxDragDirective */ @@ -269,11 +240,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * Sets a custom class that will be added to the `ghostElement` element. - * ```html - *
- * Drag Me! - *
- * ``` * * @memberof IgxDragDirective */ @@ -282,11 +248,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * Set styles that will be added to the `ghostElement` element. - * ```html - *
- * Drag Me! - *
- * ``` * * @memberof IgxDragDirective */ @@ -296,16 +257,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * Specifies a template for the ghost element created when dragging starts and `ghost` is true. * By default a clone of the base element the igxDrag is instanced is created. - * ```html - *
- * Drag Me! - *
- * - *
- * I am being dragged! - *
- *
- * ``` * * @memberof IgxDragDirective */ @@ -315,12 +266,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * Sets the element to which the dragged element will be appended. * By default it's set to null and the dragged element is appended to the body. - * ```html - *
- *
- * Drag Me! - *
- * ``` * * @memberof IgxDragDirective */ @@ -335,16 +280,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * Event triggered when the draggable element drag starts. - * ```html - *
- * Drag Me! - *
- * ``` - * ```typescript - * public onDragStart(){ - * alert("The drag has stared!"); - * } - * ``` * * @memberof IgxDragDirective */ @@ -353,16 +288,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * Event triggered when the draggable element has been moved. - * ```html - *
- * Drag Me! - *
- * ``` - * ```typescript - * public onDragMove(){ - * alert("The element has moved!"); - * } - * ``` * * @memberof IgxDragDirective */ @@ -371,16 +296,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * Event triggered when the draggable element is released. - * ```html - *
- * Drag Me! - *
- * ``` - * ```typescript - * public onDragEnd(){ - * alert("The drag has ended!"); - * } - * ``` * * @memberof IgxDragDirective */ @@ -389,16 +304,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * Event triggered when the draggable element is clicked. - * ```html - *
- * Drag Me! - *
- * ``` - * ```typescript - * public onDragClick(){ - * alert("The element has been clicked!"); - * } - * ``` * * @memberof IgxDragDirective */ @@ -407,16 +312,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * Event triggered when the drag ghost element is created. - * ```html - *
- * Drag Me! - *
- * ``` - * ```typescript - * public ghostCreated(){ - * alert("The ghost has been created!"); - * } - * ``` * * @memberof IgxDragDirective */ @@ -425,16 +320,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * Event triggered when the drag ghost element is created. - * ```html - *
- * Drag Me! - *
- * ``` - * ```typescript - * public ghostDestroyed(){ - * alert("The ghost has been destroyed!"); - * } - * ``` * * @memberof IgxDragDirective */ @@ -443,16 +328,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * Event triggered after the draggable element is released and after its animation has finished. - * ```html - *
- * Drag Me! - *
- * ``` - * ```typescript - * public onMoveEnd(){ - * alert("The move has ended!"); - * } - * ``` * * @memberof IgxDragDirective */ @@ -646,12 +521,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * Sets the offset of the dragged element relative to the mouse in pixels. * By default it's taking the relative position to the mouse when the drag started and keeps it the same. - * ```html - *
- *
- * Drag Me! - *
- * ``` * * @memberof IgxDragDirective */ @@ -667,12 +536,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { /** * Sets the offset of the dragged element relative to the mouse in pixels. * By default it's taking the relative position to the mouse when the drag started and keeps it the same. - * ```html - *
- *
- * Drag Me! - *
- * ``` * * @memberof IgxDragDirective */ @@ -1613,9 +1476,6 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy { export class IgxDropDirective implements OnInit, OnDestroy { /** * - Save data inside the `igxDrop` directive. This can be set when instancing `igxDrop` on an element. - * ```html - *
- * ``` * * @memberof IgxDropDirective */ @@ -1631,14 +1491,6 @@ export class IgxDropDirective implements OnInit, OnDestroy { /** * A property that provides a way for igxDrag and igxDrop to be linked through channels. * It accepts single value or an array of values and evaluates then using strict equality. - * ```html - *
- * 95 - *
- *
- * Numbers drop area! - *
- * ``` * * @memberof IgxDropDirective */ @@ -1653,21 +1505,6 @@ export class IgxDropDirective implements OnInit, OnDestroy { * - IgxPrependDropStrategy - Prepends the dropped element to first position as a direct child to the `igxDrop`. * - IgxInsertDropStrategy - If the dropped element is released above a child element of the `igxDrop`, it will be inserted * at that position. Otherwise the dropped element will be appended if released outside any child of the `igxDrop`. - * ```html - *
- * DragMe - *
- *
- * Numbers drop area! - *
- * ``` - * ```typescript - * import { IgxAppendDropStrategy } from 'igniteui-angular'; - * - * export class App { - * public myDropStrategy = IgxAppendDropStrategy; - * } - * ``` * * @memberof IgxDropDirective */ @@ -1682,15 +1519,6 @@ export class IgxDropDirective implements OnInit, OnDestroy { /** * Event triggered when dragged element enters the area of the element. - * ```html - *
- *
- * ``` - * ```typescript - * public dragEnter(){ - * alert("A draggable element has entered the chip area!"); - * } - * ``` * * @memberof IgxDropDirective */ @@ -1699,15 +1527,6 @@ export class IgxDropDirective implements OnInit, OnDestroy { /** * Event triggered when dragged element enters the area of the element. - * ```html - *
- *
- * ``` - * ```typescript - * public dragEnter(){ - * alert("A draggable element has entered the chip area!"); - * } - * ``` * * @memberof IgxDropDirective */ @@ -1716,15 +1535,6 @@ export class IgxDropDirective implements OnInit, OnDestroy { /** * Event triggered when dragged element leaves the area of the element. - * ```html - *
- *
- * ``` - * ```typescript - * public dragLeave(){ - * alert("A draggable element has left the chip area!"); - * } - * ``` * * @memberof IgxDropDirective */ @@ -1735,15 +1545,6 @@ export class IgxDropDirective implements OnInit, OnDestroy { * Event triggered when dragged element is dropped in the area of the element. * Since the `igxDrop` has default logic that appends the dropped element as a child, it can be canceled here. * To cancel the default logic the `cancel` property of the event needs to be set to true. - * ```html - *
- *
- * ``` - * ```typescript - * public dragDrop(){ - * alert("A draggable element has been dropped in the chip area!"); - * } - * ``` * * @memberof IgxDropDirective */ diff --git a/projects/igniteui-angular/directives/src/directives/focus-trap/focus-trap.directive.ts b/projects/igniteui-angular/directives/src/directives/focus-trap/focus-trap.directive.ts index 9f0c0790e71..d4d2be3e2ed 100644 --- a/projects/igniteui-angular/directives/src/directives/focus-trap/focus-trap.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/focus-trap/focus-trap.directive.ts @@ -21,11 +21,6 @@ export class IgxFocusTrapDirective implements AfterViewInit, OnDestroy { /** * Sets whether the Tab key focus is trapped within the element. - * - * @example - * ```html - *
- * ``` */ @Input({ alias: 'igxFocusTrap', transform: booleanAttribute }) public set focusTrap(focusTrap: boolean) { diff --git a/projects/igniteui-angular/directives/src/directives/focus/focus.directive.ts b/projects/igniteui-angular/directives/src/directives/focus/focus.directive.ts index 7ce6ad51901..8a22409d361 100644 --- a/projects/igniteui-angular/directives/src/directives/focus/focus.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/focus/focus.directive.ts @@ -17,11 +17,6 @@ export class IgxFocusDirective { /** * Returns the state of the igxFocus. - * ```typescript - * @ViewChild('focusContainer', {read: IgxFocusDirective}) - * public igxFocus: IgxFocusDirective; - * let isFocusOn = this.igxFocus.focused; - * ``` * * @memberof IgxFocusDirective */ @@ -32,11 +27,6 @@ export class IgxFocusDirective { /** * Sets the state of the igxFocus. - * ```html - * - * - * - * ``` * * @memberof IgxFocusDirective */ @@ -47,11 +37,6 @@ export class IgxFocusDirective { /** * Gets the native element of the igxFocus. - * ```typescript - * @ViewChild('focusContainer', {read: IgxFocusDirective}) - * public igxFocus: IgxFocusDirective; - * let igxFocusNativeElement = this.igxFocus.nativeElement; - * ``` * * @memberof IgxFocusDirective */ @@ -69,11 +54,6 @@ export class IgxFocusDirective { /** * Triggers the igxFocus state. - * ```typescript - * @ViewChild('focusContainer', {read: IgxFocusDirective}) - * public igxFocus: IgxFocusDirective; - * this.igxFocus.trigger(); - * ``` * * @memberof IgxFocusDirective */ diff --git a/projects/igniteui-angular/directives/src/directives/for-of/for_of.directive.ts b/projects/igniteui-angular/directives/src/directives/for-of/for_of.directive.ts index 810a84fcc7f..d770803b1ed 100644 --- a/projects/igniteui-angular/directives/src/directives/for-of/for_of.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/for-of/for_of.directive.ts @@ -100,9 +100,6 @@ export class IgxForOfDirective extends IgxForOfToken - * ``` */ @Input() public get igxForOf(): U & T[] | null { @@ -125,31 +122,12 @@ export class IgxForOfDirective extends IgxForOfToken - * ``` */ @Input() public igxForScrollOrientation = 'vertical'; /** * Optionally pass the parent `igxFor` instance to create a virtual template scrolling both horizontally and vertically. - * ```html - * - *
- * - *
{{rowIndex}} : {{item.text}}
- *
- *
- *
- * ``` */ @Input() public igxForScrollContainer: any; @@ -157,11 +135,6 @@ export class IgxForOfDirective extends IgxForOfToken - * - * ``` */ @Input() public igxForContainerSize: any; @@ -177,23 +150,12 @@ export class IgxForOfDirective extends IgxForOfToken - * ``` */ @Input() public igxForItemSize: any; /** * An event that is emitted after a new chunk has been loaded. - * ```html - * - * ``` - * ```typescript - * loadChunk(e){ - * alert("chunk loaded!"); - * } - * ``` */ @Output() public chunkLoad = new EventEmitter(); @@ -220,14 +182,6 @@ export class IgxForOfDirective extends IgxForOfToken - * ``` - * ```typescript - * dataChanged(e){ - * alert("data changed!"); - * } - * ``` */ @Output() public dataChanged = new EventEmitter(); @@ -238,14 +192,6 @@ export class IgxForOfDirective extends IgxForOfToken - * ``` - * ```typescript - * chunkPreload(e){ - * alert("chunk is loading!"); - * } - * ``` */ @Output() public chunkPreload = new EventEmitter(); @@ -260,9 +206,6 @@ export class IgxForOfDirective extends IgxForOfToken extends IgxForOfToken - * ``` */ @Input() public get igxForTotalItemCount(): number { @@ -321,9 +260,6 @@ export class IgxForOfDirective extends IgxForOfToken extends IgxForOfToken extends IgxForOfToken extends IgxForOfToken extends IgxForOfToken extends IgxForOfToken extends IgxForOfToken extends IgxForOfToken extends IgxForOfToken extends IgxForOfToken extends IgxForOfToken extends IgxForOfToken extends IgxForOfToken= this.state.startIndex && index <= this.state.startIndex + this.state.chunkSize ? @@ -1186,9 +1079,6 @@ export class IgxForOfDirective extends IgxForOfToken { @@ -1200,11 +1090,6 @@ export class IgxForOfDirective extends IgxForOfToken { - * return item.id + item.width; - * }; - * ``` */ public set igxForTrackBy(fn: TrackByFunction) { this._trackByFn = fn; diff --git a/projects/igniteui-angular/directives/src/directives/layout/layout.directive.ts b/projects/igniteui-angular/directives/src/directives/layout/layout.directive.ts index c8fb2346e38..651718d58ab 100644 --- a/projects/igniteui-angular/directives/src/directives/layout/layout.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/layout/layout.directive.ts @@ -9,16 +9,6 @@ export class IgxLayoutDirective { * Sets the default flow direction of the container's children. * * Defaults to `rows`. - * - * ```html - *
- *
1
- *
2
- *
3
- *
- * ``` */ @Input('igxLayoutDir') public dir = 'row'; @@ -26,16 +16,6 @@ export class IgxLayoutDirective { * Defines the direction flex children are placed in the flex container. * * When set to `true`, the `rows` direction goes right to left and `columns` goes bottom to top. - * - * ```html - *
- *
1
- *
2
- *
3
- *
- * ``` */ @Input({ alias: 'igxLayoutReverse', transform: booleanAttribute }) public reverse = false; @@ -45,17 +25,6 @@ export class IgxLayoutDirective { * The default value `nowrap` sets this behavior. * * Other accepted values are `wrap` and `wrap-reverse`. - * - * ```html - *
- *
1
- *
2
- *
3
- *
- * ``` */ @Input('igxLayoutWrap') public wrap = 'nowrap'; @@ -65,17 +34,6 @@ export class IgxLayoutDirective { * Defaults to `flex-start` which packs the children toward the start line. * * Other possible values are `flex-end`, `center`, `space-between`, `space-around`. - * - * ```html - *
- *
1
- *
2
- *
3
- *
- * ``` */ @Input('igxLayoutJustify') public justify = 'flex-start'; @@ -85,17 +43,6 @@ export class IgxLayoutDirective { * Defaults to `flex-start`. * * Other possible values are `flex-end`, `center`, `baseline`, and `stretch`. - * - * ```html - *
- *
1
- *
2
- *
3
- *
- * ``` */ @Input('igxLayoutItemAlign') public itemAlign = 'stretch'; @@ -150,14 +97,6 @@ export class IgxFlexDirective { * Applies the `grow` attribute to an element that uses the directive. * * Default value is `1`. - * - * ```html - *
- *
Content1
- *
Content2
- *
Content3
- *
- * ``` */ @Input('igxFlexGrow') public grow = 1; @@ -165,14 +104,6 @@ export class IgxFlexDirective { * Applies the `shrink` attribute to an element that uses the directive. * * Default value is `1`. - * - * ```html - *
- *
Content1
- *
Content2
- *
Content3
- *
- * ``` */ @Input('igxFlexShrink') public shrink = 1; @@ -180,10 +111,6 @@ export class IgxFlexDirective { * Applies the directive to an element. * * Possible values include `igxFlexGrow`, `igxFlexShrink`, `igxFlexOrder`, `igxFlexBasis`. - * - * ```html - *
Content
- * ``` */ @Input('igxFlex') public flex = ''; @@ -191,14 +118,6 @@ export class IgxFlexDirective { * Applies the `order` attribute to an element that uses the directive. * * Default value is `0`. - * - * ```html - *
- *
Content1
- *
Content2
- *
Content3
- *
- * ``` */ @Input('igxFlexOrder') public order = 0; @@ -208,10 +127,6 @@ export class IgxFlexDirective { * Default value is `auto`. * * Other possible values include `content`, `max-content`, `min-content`, `fit-content`. - * - * ```html - *
Content
- * ``` */ @Input('igxFlexBasis') public basis = 'auto'; diff --git a/projects/igniteui-angular/directives/src/directives/mask/mask.directive.ts b/projects/igniteui-angular/directives/src/directives/mask/mask.directive.ts index b92a9cb15d3..69acc2ff2e5 100644 --- a/projects/igniteui-angular/directives/src/directives/mask/mask.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/mask/mask.directive.ts @@ -18,9 +18,6 @@ export class IgxMaskDirective implements OnInit, AfterViewChecked, ControlValueA /** * Sets the input mask. - * ```html - * - * ``` */ @Input('igxMask') public get mask(): string { @@ -40,36 +37,24 @@ export class IgxMaskDirective implements OnInit, AfterViewChecked, ControlValueA /** * Sets the character representing a fillable spot in the input mask. * Default value is "'_'". - * ```html - * - * ``` */ @Input() public promptChar = '_'; /** * Specifies if the bound value includes the formatting symbols. - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public includeLiterals: boolean; /** * Specifies a pipe to be used on blur. - * ```html - * - * ``` */ @Input() public displayValuePipe: PipeTransform; /** * Specifies a pipe to be used on focus. - * ```html - * - * ``` */ @Input() public focusedValuePipe: PipeTransform; @@ -77,9 +62,6 @@ export class IgxMaskDirective implements OnInit, AfterViewChecked, ControlValueA /** * Emits an event each time the value changes. * Provides `rawValue: string` and `formattedValue: string` as event arguments. - * ```html - * - * ``` */ @Output() public valueChanged = new EventEmitter(); diff --git a/projects/igniteui-angular/directives/src/directives/ripple/ripple.directive.ts b/projects/igniteui-angular/directives/src/directives/ripple/ripple.directive.ts index 51ce260c485..fce7a13c1bf 100644 --- a/projects/igniteui-angular/directives/src/directives/ripple/ripple.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/ripple/ripple.directive.ts @@ -20,20 +20,7 @@ export class IgxRippleDirective { /** * Sets/gets the ripple target. - * ```html - *
- * ``` - * ```typescript - * @ViewChild('rippleContainer', {read: IgxRippleDirective}) - * public ripple: IgxRippleDirective; - * let rippleTarget = this.ripple.rippleTarget; - * ``` * Can set the ripple to activate on a child element inside the parent where igxRipple is defined. - * ```html - *
- * - *
- * ``` * * @memberof IgxRippleDirective */ @@ -41,14 +28,6 @@ export class IgxRippleDirective { public rippleTarget = ''; /** * Sets/gets the ripple color. - * ```html - * - * ``` - * ```typescript - * @ViewChild('rippleContainer', {read: IgxRippleDirective}) - * public ripple: IgxRippleDirective; - * let rippleColor = this.ripple.rippleColor; - * ``` * * @memberof IgxRippleDirective */ @@ -57,14 +36,6 @@ export class IgxRippleDirective { /** * Sets/gets the ripple duration(in milliseconds). * Default value is `600`. - * ```html - * - * ``` - * ```typescript - * @ViewChild('rippleContainer', {read: IgxRippleDirective}) - * public ripple: IgxRippleDirective; - * let rippleDuration = this.ripple.rippleDuration; - * ``` * * @memberof IgxRippleDirective */ @@ -72,9 +43,6 @@ export class IgxRippleDirective { public rippleDuration = 600; /** * Enables/disables the ripple to be centered. - * ```html - * - * ``` * * @memberof IgxRippleDirective */ @@ -85,14 +53,6 @@ export class IgxRippleDirective { /** * Sets/gets whether the ripple is disabled. * Default value is `false`. - * ```html - * - * ``` - * ```typescript - * @ViewChild('rippleContainer', {read: IgxRippleDirective}) - * public ripple: IgxRippleDirective; - * let isRippleDisabled = this.ripple.rippleDisabled; - * ``` * * @memberof IgxRippleDirective */ diff --git a/projects/igniteui-angular/directives/src/directives/text-highlight/text-highlight.directive.ts b/projects/igniteui-angular/directives/src/directives/text-highlight/text-highlight.directive.ts index 23f5b7bc6d7..efe1a425555 100644 --- a/projects/igniteui-angular/directives/src/directives/text-highlight/text-highlight.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/text-highlight/text-highlight.directive.ts @@ -46,13 +46,6 @@ export class IgxTextHighlightDirective implements AfterViewInit, AfterViewChecke /** * Determines the `CSS` class of the highlight elements. * This allows the developer to provide custom `CSS` to customize the highlight. - * - * ```html - *
- *
- * ``` */ @Input() public cssClass: string; @@ -60,13 +53,6 @@ export class IgxTextHighlightDirective implements AfterViewInit, AfterViewChecke /** * Determines the `CSS` class of the active highlight element. * This allows the developer to provide custom `CSS` to customize the highlight. - * - * ```html - *
- *
- * ``` */ @Input() public activeCssClass: string; @@ -81,32 +67,12 @@ export class IgxTextHighlightDirective implements AfterViewInit, AfterViewChecke * Identifies the highlight within a unique group. * This allows it to have several different highlight groups, * with each of them having their own active highlight. - * - * ```html - *
- *
- * ``` */ @Input() public groupName = ''; /** * The underlying value of the element that will be highlighted. - * - * ```typescript - * // get - * const elementValue = this.textHighlight.value; - * ``` - * - * ```html - * - *
- *
- * ``` */ @Input('value') public get value(): any { @@ -122,26 +88,12 @@ export class IgxTextHighlightDirective implements AfterViewInit, AfterViewChecke /** * The identifier of the row on which the directive is currently on. - * - * ```html - *
- *
- * ``` */ @Input() public row: any; /** * The identifier of the column on which the directive is currently on. - * - * ```html - *
- *
- * ``` */ @Input() public column: any; @@ -150,19 +102,6 @@ export class IgxTextHighlightDirective implements AfterViewInit, AfterViewChecke * A map that contains all additional conditions, that you need to activate a highlighted * element. To activate the condition, you will have to add a new metadata key to * the `metadata` property of the IActiveHighlightInfo interface. - * - * @example - * ```typescript - * // Set a property, which would disable the highlight for a given element on a certain condition - * const metadata = new Map(); - * metadata.set('highlightElement', false); - * ``` - * ```html - *
- *
- * ``` */ @Input() public metadata: Map; diff --git a/projects/igniteui-angular/directives/src/directives/text-selection/text-selection.directive.ts b/projects/igniteui-angular/directives/src/directives/text-selection/text-selection.directive.ts index 06828898bb4..945178158c3 100644 --- a/projects/igniteui-angular/directives/src/directives/text-selection/text-selection.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/text-selection/text-selection.directive.ts @@ -10,46 +10,12 @@ export class IgxTextSelectionDirective { /** * Determines whether the input element could be selected through the directive. - * - * ```html - * - * - * - * - * - * - * ``` */ @Input({ alias: 'igxTextSelection', transform: booleanAttribute }) public selected = true; /** * Returns the nativeElement of the element where the directive was applied. - * - * ```html - * - * - * ``` - * - * ```typescript - * @ViewChild('firstName', - * {read: IgxTextSelectionDirective}) - * public inputElement: IgxTextSelectionDirective; - * - * public getNativeElement() { - * return this.inputElement.nativeElement; - * } - * ``` */ public get nativeElement() { return this.element.nativeElement; @@ -65,24 +31,6 @@ export class IgxTextSelectionDirective { /** * Triggers the selection of the element if it is marked as selectable. - * - * ```html - * - * - * ``` - * - * ```typescript - * @ViewChild('firstName', - * {read: IgxTextSelectionDirective}) - * public inputElement: IgxTextSelectionDirective; - * - * public triggerElementSelection() { - * this.inputElement.trigger(); - * } - * ``` */ public trigger() { diff --git a/projects/igniteui-angular/directives/src/directives/toggle/toggle.directive.ts b/projects/igniteui-angular/directives/src/directives/toggle/toggle.directive.ts index c4712fbdc78..17d28c4ef35 100644 --- a/projects/igniteui-angular/directives/src/directives/toggle/toggle.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/toggle/toggle.directive.ts @@ -49,95 +49,30 @@ export class IgxToggleDirective implements IToggleView, OnInit, OnDestroy { /** * Emits an event after the toggle container is opened. - * - * ```typescript - * onToggleOpened(event) { - * alert("Toggle opened!"); - * } - * ``` - * - * ```html - *
- *
- * ``` */ @Output() public opened = new EventEmitter(); /** * Emits an event before the toggle container is opened. - * - * ```typescript - * onToggleOpening(event) { - * alert("Toggle opening!"); - * } - * ``` - * - * ```html - *
- *
- * ``` */ @Output() public opening = new EventEmitter(); /** * Emits an event after the toggle container is closed. - * - * ```typescript - * onToggleClosed(event) { - * alert("Toggle closed!"); - * } - * ``` - * - * ```html - *
- *
- * ``` */ @Output() public closed = new EventEmitter(); /** * Emits an event before the toggle container is closed. - * - * ```typescript - * onToggleClosing(event) { - * alert("Toggle closing!"); - * } - * ``` - * - * ```html - *
- *
- * ``` */ @Output() public closing = new EventEmitter(); /** * Emits an event after the toggle element is appended to the overlay container. - * - * ```typescript - * onAppended() { - * alert("Content appended!"); - * } - * ``` - * - * ```html - *
- *
- * ``` */ @Output() public appended = new EventEmitter(); @@ -151,10 +86,6 @@ export class IgxToggleDirective implements IToggleView, OnInit, OnDestroy { /** * Identifier which is registered into `IgxNavigationService` - * - * ```typescript - * let myToggleId = this.toggle.id; - * ``` */ @Input() public id: string; @@ -205,10 +136,6 @@ export class IgxToggleDirective implements IToggleView, OnInit, OnDestroy { /** * Opens the toggle. - * - * ```typescript - * this.myToggle.open(); - * ``` */ public open(overlaySettings?: OverlaySettings) { // if there is open animation do nothing @@ -254,10 +181,6 @@ export class IgxToggleDirective implements IToggleView, OnInit, OnDestroy { /** * Closes the toggle. - * - * ```typescript - * this.myToggle.close(); - * ``` */ public close(event?: Event) { // if toggle is collapsed do nothing @@ -273,10 +196,6 @@ export class IgxToggleDirective implements IToggleView, OnInit, OnDestroy { /** * Opens or closes the toggle, depending on its current state. - * - * ```typescript - * this.myToggle.toggle(); - * ``` */ public toggle(overlaySettings?: OverlaySettings) { // if toggle is collapsed call open @@ -296,9 +215,6 @@ export class IgxToggleDirective implements IToggleView, OnInit, OnDestroy { /** * Returns the id of the overlay the content is rendered in. - * ```typescript - * this.myToggle.overlayId; - * ``` */ public get overlayId() { return this._overlayId; @@ -306,9 +222,6 @@ export class IgxToggleDirective implements IToggleView, OnInit, OnDestroy { /** * Repositions the toggle. - * ```typescript - * this.myToggle.reposition(); - * ``` */ public reposition() { this.overlayService.reposition(this._overlayId); @@ -421,17 +334,7 @@ export class IgxToggleActionDirective implements OnInit { /** * Provide settings that control the toggle overlay positioning, interaction and scroll behavior. - * ```typescript - * const settings: OverlaySettings = { - * closeOnOutsideClick: false, - * modal: false - * } - * ``` * --- - * ```html - * - *
- * ``` */ @Input() public overlaySettings: OverlaySettings; @@ -439,10 +342,6 @@ export class IgxToggleActionDirective implements OnInit { /** * Determines where the toggle element overlay should be attached. * - * ```html - * - *
- * ``` * Where `outlet` in an instance of `IgxOverlayOutletDirective` or an `ElementRef` */ @Input('igxToggleOutlet') diff --git a/projects/igniteui-angular/directives/src/directives/tooltip/tooltip-target.directive.ts b/projects/igniteui-angular/directives/src/directives/tooltip/tooltip-target.directive.ts index a9c1f2ef56e..562f9b8a919 100644 --- a/projects/igniteui-angular/directives/src/directives/tooltip/tooltip-target.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/tooltip/tooltip-target.directive.ts @@ -36,10 +36,6 @@ export interface ITooltipHideEventArgs extends IBaseEventArgs { * target's selector property. * * Example: - * ```html - * - * Hello there, I am a tooltip! - * ``` */ @Directive({ exportAs: 'tooltipTarget', @@ -49,34 +45,12 @@ export interface ITooltipHideEventArgs extends IBaseEventArgs { export class IgxTooltipTargetDirective extends IgxToggleActionDirective implements OnInit, AfterViewInit, OnDestroy { /** * Gets/sets the amount of milliseconds that should pass before showing the tooltip. - * - * ```typescript - * // get - * let tooltipShowDelay = this.tooltipTarget.showDelay; - * ``` - * - * ```html - * - * - * Hello there, I am a tooltip! - * ``` */ @Input() public showDelay = 200; /** * Gets/sets the amount of milliseconds that should pass before hiding the tooltip. - * - * ```typescript - * // get - * let tooltipHideDelay = this.tooltipTarget.hideDelay; - * ``` - * - * ```html - * - * - * Hello there, I am a tooltip! - * ``` */ @Input() public hideDelay = 300; @@ -84,21 +58,6 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen /** * Controls whether to display an arrow indicator for the tooltip. * Set to true to show the arrow. Default value is `false`. - * - * ```typescript - * // get - * let isArrowDisabled = this.tooltip.hasArrow; - * ``` - * - * ```typescript - * // set - * this.tooltip.hasArrow = true; - * ``` - * - * ```html - * - * info - * ``` */ @Input() public set hasArrow(value: boolean) { @@ -114,21 +73,6 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen /** * Specifies if the tooltip remains visible until the user closes it via the close button or Esc key. - * - * ```typescript - * // get - * let isSticky = this.tooltip.sticky; - * ``` - * - * ```typescript - * // set - * this.tooltip.sticky = true; - * ``` - * - * ```html - * - * info - * ``` */ @Input() public set sticky (value: boolean) { @@ -148,24 +92,6 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen /** * Allows full control over the appearance of the close button inside the tooltip. - * - * ```typescript - * // get - * let customCloseTemplate = this.tooltip.customCloseTemplate; - * ``` - * - * ```typescript - * // set - * this.tooltip.customCloseTemplate = TemplateRef; - * ``` - * - * ```html - * - * info - * - * - * - * ``` */ @Input('closeButtonTemplate') public set closeTemplate(value: TemplateRef) { @@ -179,9 +105,6 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen /** * Get the position and animation settings used by the tooltip. - * ```typescript - * let positionSettings = this.tooltipTarget.positionSettings; - * ``` */ @Input() public get positionSettings(): PositionSettings { @@ -190,21 +113,6 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen /** * Set the position and animation settings used by the tooltip. - * ```html - * info - * Hello there, I am a tooltip! - * ``` - * ```typescript - * - * import { PositionSettings, HorizontalAlignment, VerticalAlignment } from 'igniteui-angular'; - * ... - * public newPositionSettings: PositionSettings = { - * horizontalDirection: HorizontalAlignment.Right, - * horizontalStartPoint: HorizontalAlignment.Left, - * verticalDirection: VerticalAlignment.Top, - * verticalStartPoint: VerticalAlignment.Top, - * }; - * ``` */ public set positionSettings(settings: PositionSettings) { this._positionSettings = settings; @@ -217,17 +125,6 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen * Specifies if the tooltip should not show when hovering its target with the mouse. (defaults to false) * While setting this property to 'true' will disable the user interactions that shows/hides the tooltip, * the developer will still be able to show/hide the tooltip through the API. - * - * ```typescript - * // get - * let tooltipDisabledValue = this.tooltipTarget.tooltipDisabled; - * ``` - * - * ```html - * - * - * Hello there, I am a tooltip! - * ``` */ @Input({ transform: booleanAttribute }) public tooltipDisabled = false; @@ -236,10 +133,6 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen * Which event triggers will show the tooltip. * Expects a comma-separated string of different event triggers. * Defaults to `pointerenter`. - * ```html - * info - * Hello there, I am a tooltip! - * ``` */ @Input() public get showTriggers(): string { @@ -256,10 +149,6 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen * Which event triggers will hide the tooltip. * Expects a comma-separated string of different event triggers. * Defaults to `pointerleave` and `click`. - * ```html - * info - * Hello there, I am a tooltip! - * ``` */ @Input() public get hideTriggers(): string { @@ -294,9 +183,6 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen /** * Specifies a plain text as tooltip content. - * ```html - * info - * ``` */ @Input() public set tooltip(content: any) { @@ -310,10 +196,6 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen /** * Gets the respective native element of the directive. - * - * ```typescript - * let tooltipTargetElement = this.tooltipTarget.nativeElement; - * ``` */ public get nativeElement() { return this.element.nativeElement; @@ -321,10 +203,6 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen /** * Indicates if the tooltip that is is associated with this target is currently hidden. - * - * ```typescript - * let tooltipHiddenValue = this.tooltipTarget.tooltipHidden; - * ``` */ public get tooltipHidden(): boolean { return !this.target || this.target.collapsed; @@ -333,17 +211,6 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen /** * Emits an event when the tooltip that is associated with this target starts showing. * This event is fired before the start of the countdown to showing the tooltip. - * - * ```typescript - * tooltipShowing(args: ITooltipShowEventArgs) { - * alert("Tooltip started showing!"); - * } - * ``` - * - * ```html - * - * Hello there, I am a tooltip! - * ``` */ @Output() public tooltipShow = new EventEmitter(); @@ -351,17 +218,6 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen /** * Emits an event when the tooltip that is associated with this target starts hiding. * This event is fired before the start of the countdown to hiding the tooltip. - * - * ```typescript - * tooltipHiding(args: ITooltipHideEventArgs) { - * alert("Tooltip started hiding!"); - * } - * ``` - * - * ```html - * - * Hello there, I am a tooltip! - * ``` */ @Output() public tooltipHide = new EventEmitter(); @@ -465,10 +321,6 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen /** * Shows the tooltip if not already shown. - * - * ```typescript - * this.tooltipTarget.showTooltip(); - * ``` */ public showTooltip() { this._checksBeforeShowing(() => this._showTooltip(false, true)); @@ -476,10 +328,6 @@ export class IgxTooltipTargetDirective extends IgxToggleActionDirective implemen /** * Hides the tooltip if not already hidden. - * - * ```typescript - * this.tooltipTarget.hideTooltip(); - * ``` */ public hideTooltip() { this._hideTooltip(false); diff --git a/projects/igniteui-angular/directives/src/directives/tooltip/tooltip.directive.ts b/projects/igniteui-angular/directives/src/directives/tooltip/tooltip.directive.ts index a2238396300..24fa1f75ab0 100644 --- a/projects/igniteui-angular/directives/src/directives/tooltip/tooltip.directive.ts +++ b/projects/igniteui-angular/directives/src/directives/tooltip/tooltip.directive.ts @@ -18,10 +18,6 @@ let NEXT_ID = 0; * respective target's selector property. * * Example: - * ```html - * - * Hello there, I am a tooltip! - * ``` */ @Directive({ exportAs: 'tooltip', @@ -49,16 +45,6 @@ export class IgxTooltipDirective extends IgxToggleDirective implements AfterView * Gets/sets any tooltip related data. * The 'context' can be used for storing any information that is necessary * to access when working with the tooltip. - * - * ```typescript - * // get - * let tooltipContext = this.tooltip.context; - * ``` - * - * ```typescript - * // set - * this.tooltip.context = "Tooltip's context"; - * ``` */ @Input() public context; @@ -66,10 +52,6 @@ export class IgxTooltipDirective extends IgxToggleDirective implements AfterView /** * Identifier for the tooltip. * If this is property is not explicitly set, it will be automatically generated. - * - * ```typescript - * let tooltipId = this.tooltip.id; - * ``` */ @HostBinding('attr.id') @Input() @@ -77,10 +59,6 @@ export class IgxTooltipDirective extends IgxToggleDirective implements AfterView /** * Get the role attribute of the tooltip. - * - * ```typescript - * let tooltipRole = this.tooltip.role; - * ``` */ @HostBinding('attr.role') @Input() @@ -93,10 +71,6 @@ export class IgxTooltipDirective extends IgxToggleDirective implements AfterView /** * Get the arrow element of the tooltip. - * - * ```typescript - * let tooltipArrow = this.tooltip.arrow; - * ``` */ public get arrow(): HTMLElement { return this._arrowEl; diff --git a/projects/igniteui-angular/drop-down/src/drop-down/autocomplete/autocomplete.directive.ts b/projects/igniteui-angular/drop-down/src/drop-down/autocomplete/autocomplete.directive.ts index 00f8ba12d21..6d01ec97b43 100644 --- a/projects/igniteui-angular/drop-down/src/drop-down/autocomplete/autocomplete.directive.ts +++ b/projects/igniteui-angular/drop-down/src/drop-down/autocomplete/autocomplete.directive.ts @@ -44,14 +44,6 @@ export interface AutocompleteOverlaySettings { * by showing a drop down of suggested options, provided by the developer. * * Example: - * ```html - * - * - * - * {{town}} - * - * - * ``` */ @Directive({ selector: '[igxAutocomplete]', @@ -67,15 +59,6 @@ export class IgxAutocompleteDirective extends IgxDropDownItemNavigationDirective /** * Sets the target of the autocomplete directive - * - * ```html - * - * - * ... - * - * ... - * - * ``` */ @Input('igxAutocomplete') public override get target(): IgxDropDownComponent { @@ -87,24 +70,6 @@ export class IgxAutocompleteDirective extends IgxDropDownItemNavigationDirective /** * Provide overlay settings for the autocomplete drop down - * - * ```typescript - * // get - * let settings = this.autocomplete.autocompleteSettings; - * ``` - * ```html - * - * - * ``` - * ```typescript - * // set - * this.settings = { - * positionStrategy: new ConnectedPositioningStrategy({ - * closeAnimation: null, - * openAnimation: null - * }) - * }; - * ``` */ @Input('igxAutocompleteSettings') public autocompleteSettings: AutocompleteOverlaySettings; @@ -119,29 +84,12 @@ export class IgxAutocompleteDirective extends IgxDropDownItemNavigationDirective /** * Enables/disables autocomplete component - * - * ```typescript - * // get - * let disabled = this.autocomplete.disabled; - * ``` - * ```html - * - * - * ``` - * ```typescript - * // set - * public disabled = true; - * ``` */ @Input({ alias: 'igxAutocompleteDisabled', transform: booleanAttribute }) public disabled = false; /** * Emitted after item from the drop down is selected - * - * ```html - * - * ``` */ @Output() public selectionChanging = new EventEmitter(); diff --git a/projects/igniteui-angular/drop-down/src/drop-down/drop-down-group.component.ts b/projects/igniteui-angular/drop-down/src/drop-down/drop-down-group.component.ts index ef5ad79ba16..69adb9f4960 100644 --- a/projects/igniteui-angular/drop-down/src/drop-down/drop-down-group.component.ts +++ b/projects/igniteui-angular/drop-down/src/drop-down/drop-down-group.component.ts @@ -2,8 +2,8 @@ import { Component, Input, HostBinding, booleanAttribute } from '@angular/core'; let NEXT_ID = 0; /** - * The `` is a container intended for row items in - * a `` container. + * The drop-down item group is a container intended for row items in + * a drop-down container. */ @Component({ selector: 'igx-drop-down-item-group', @@ -38,26 +38,6 @@ export class IgxDropDownGroupComponent { /** * Sets/gets if the item group is disabled * - * ```typescript - * const myDropDownGroup: IgxDropDownGroupComponent = this.dropdownGroup; - * // get - * ... - * const groupState: boolean = myDropDownGroup.disabled; - * ... - * //set - * ... - * myDropDownGroup,disabled = false; - * ... - * ``` - * - * ```html - * - * - * {{ item.text }} - * - * - * ``` - * * **NOTE:** All items inside of a disabled drop down group will be treated as disabled */ @Input({ transform: booleanAttribute }) @@ -67,24 +47,6 @@ export class IgxDropDownGroupComponent { /** * Sets/gets the label of the item group - * - * ```typescript - * const myDropDownGroup: IgxDropDownGroupComponent = this.dropdownGroup; - * // get - * ... - * const myLabel: string = myDropDownGroup.label; - * ... - * // set - * ... - * myDropDownGroup.label = 'My New Label'; - * ... - * ``` - * - * ```html - * - * ... - * - * ``` */ @Input() public label: string; diff --git a/projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.base.ts b/projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.base.ts index 4d6d57664bb..a3941801622 100644 --- a/projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.base.ts +++ b/projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.base.ts @@ -24,12 +24,6 @@ export class IgxDropDownItemBaseDirective implements DoCheck { /** * Sets/gets the `id` of the item. - * ```html - * - * ``` - * ```typescript - * let itemId = this.item.id; - * ``` * * @memberof IgxSelectItemComponent */ @@ -56,11 +50,6 @@ export class IgxDropDownItemBaseDirective implements DoCheck { /** * The data index of the dropdown item. - * - * ```typescript - * // get the data index of the selected dropdown item - * let selectedItemIndex = this.dropdown.selectedItem.index - * ``` */ @Input() public get index(): number { @@ -76,20 +65,6 @@ export class IgxDropDownItemBaseDirective implements DoCheck { /** * Gets/sets the value of the item if the item is databound - * - * ```typescript - * // usage in IgxDropDownItemComponent - * // get - * let mySelectedItemValue = this.dropdown.selectedItem.value; - * - * // set - * let mySelectedItem = this.dropdown.selectedItem; - * mySelectedItem.value = { id: 123, name: 'Example Name' } - * - * // usage in IgxComboItemComponent - * // get - * let myComboItemValue = this.combo.items[0].value; - * ``` */ @Input() public value: any; @@ -105,15 +80,7 @@ export class IgxDropDownItemBaseDirective implements DoCheck { /** * Sets/Gets if the item is the currently selected one in the dropdown * - * ```typescript - * let mySelectedItem = this.dropdown.selectedItem; - * let isMyItemSelected = mySelectedItem.selected; // true - * ``` - * * Two-way data binding - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) @HostBinding('attr.aria-selected') @@ -138,10 +105,6 @@ export class IgxDropDownItemBaseDirective implements DoCheck { /** * Sets/gets if the given item is focused - * ```typescript - * let mySelectedItem = this.dropdown.selectedItem; - * let isMyItemFocused = mySelectedItem.focused; - * ``` */ @HostBinding('class.igx-drop-down__item--focused') public get focused(): boolean { @@ -149,13 +112,6 @@ export class IgxDropDownItemBaseDirective implements DoCheck { } /** - * ```html - * - *
- * {{item.field}} - *
- *
- * ``` */ public set focused(value: boolean) { this._focused = value; @@ -163,20 +119,6 @@ export class IgxDropDownItemBaseDirective implements DoCheck { /** * Sets/gets if the given item is header - * ```typescript - * // get - * let mySelectedItem = this.dropdown.selectedItem; - * let isMyItemHeader = mySelectedItem.isHeader; - * ``` - * - * ```html - * - * - *
- * {{item.field}} - *
- *
- * ``` */ @Input({ transform: booleanAttribute }) @HostBinding('class.igx-drop-down__header') @@ -185,19 +127,6 @@ export class IgxDropDownItemBaseDirective implements DoCheck { /** * Sets/gets if the given item is disabled * - * ```typescript - * // get - * let mySelectedItem = this.dropdown.selectedItem; - * let myItemIsDisabled = mySelectedItem.disabled; - * ``` - * - * ```html - * - *
- * {{item.field}} - *
- *
- * ``` * **NOTE:** Drop-down items inside of a disabled `IgxDropDownGroup` will always count as disabled */ @Input({ transform: booleanAttribute }) @@ -213,10 +142,6 @@ export class IgxDropDownItemBaseDirective implements DoCheck { /** * Gets/sets the `role` attribute of the item. Default is 'option'. - * - * ```html - * - * ``` */ @Input() @HostBinding('attr.role') diff --git a/projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.component.ts b/projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.component.ts index 451e117226e..b7e7d721f07 100644 --- a/projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.component.ts +++ b/projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.component.ts @@ -5,8 +5,8 @@ import { import { IgxDropDownItemBaseDirective } from './drop-down-item.base'; /** - * The `` is a container intended for row items in - * a `` container. + * The drop-down item is a container intended for row items in + * a drop-down container. */ @Component({ selector: 'igx-drop-down-item', @@ -16,10 +16,6 @@ import { IgxDropDownItemBaseDirective } from './drop-down-item.base'; export class IgxDropDownItemComponent extends IgxDropDownItemBaseDirective { /** * Sets/gets if the given item is focused - * ```typescript - * let mySelectedItem = this.dropdown.selectedItem; - * let isMyItemFocused = mySelectedItem.focused; - * ``` */ public override get focused(): boolean { let focusedState = this._focused; @@ -33,10 +29,6 @@ export class IgxDropDownItemComponent extends IgxDropDownItemBaseDirective { /** * Sets/gets if the given item is focused - * ```typescript - * let mySelectedItem = this.dropdown.selectedItem; - * let isMyItemFocused = mySelectedItem.focused; - * ``` */ public override set focused(value: boolean) { this._focused = value; @@ -44,15 +36,7 @@ export class IgxDropDownItemComponent extends IgxDropDownItemBaseDirective { /** * Sets/Gets if the item is the currently selected one in the dropdown * - * ```typescript - * let mySelectedItem = this.dropdown.selectedItem; - * let isMyItemSelected = mySelectedItem.selected; // true - * ``` - * * Two-way data binding - * ```html - * - * ``` */ public override get selected(): boolean { if (this.hasIndex) { @@ -64,7 +48,6 @@ export class IgxDropDownItemComponent extends IgxDropDownItemBaseDirective { /** * Sets/Gets if the item is the currently selected one in the dropdown - * */ public override set selected(value: boolean) { if (this.isHeader) { diff --git a/projects/igniteui-angular/drop-down/src/drop-down/drop-down-navigation.directive.ts b/projects/igniteui-angular/drop-down/src/drop-down/drop-down-navigation.directive.ts index 840a220c879..0880b54eb67 100644 --- a/projects/igniteui-angular/drop-down/src/drop-down/drop-down-navigation.directive.ts +++ b/projects/igniteui-angular/drop-down/src/drop-down/drop-down-navigation.directive.ts @@ -19,17 +19,6 @@ export class IgxDropDownItemNavigationDirective implements IDropDownNavigationDi /** * Gets the target of the navigation directive; - * - * ```typescript - * // Get - * export class MyComponent { - * ... - * @ContentChild(IgxDropDownNavigationDirective) - * navDirective: IgxDropDownNavigationDirective = null - * ... - * const navTarget: IgxDropDownBaseDirective = navDirective.navTarget - * } - * ``` */ public get target(): IgxDropDownBaseDirective { return this._target; @@ -38,15 +27,6 @@ export class IgxDropDownItemNavigationDirective implements IDropDownNavigationDi /** * Sets the target of the navigation directive; * If no valid target is passed, it falls back to the drop down context - * - * ```html - * - * - * ... - * - * ... - * - * ``` */ @Input('igxDropDownItemNavigation') public set target(target: IgxDropDownBaseDirective) { diff --git a/projects/igniteui-angular/drop-down/src/drop-down/drop-down.base.ts b/projects/igniteui-angular/drop-down/src/drop-down/drop-down.base.ts index 6a65ef09274..209135c5ae7 100644 --- a/projects/igniteui-angular/drop-down/src/drop-down/drop-down.base.ts +++ b/projects/igniteui-angular/drop-down/src/drop-down/drop-down.base.ts @@ -27,55 +27,24 @@ export abstract class IgxDropDownBaseDirective implements IDropDownList, OnInit /** * Emitted when item selection is changing, before the selection completes - * - * ```html - * - * ``` */ @Output() public selectionChanging = new EventEmitter(); /** * Gets/Sets the width of the drop down - * - * ```typescript - * // get - * let myDropDownCurrentWidth = this.dropdown.width; - * ``` - * ```html - * - * - * ``` */ @Input() public width: string; /** * Gets/Sets the height of the drop down - * - * ```typescript - * // get - * let myDropDownCurrentHeight = this.dropdown.height; - * ``` - * ```html - * - * - * ``` */ @Input() public height: string; /** * Gets/Sets the drop down's id - * - * ```typescript - * // get - * let myDropDownCurrentId = this.dropdown.id; - * ``` - * ```html - * - * - * ``` */ @HostBinding('attr.id') @Input() @@ -88,15 +57,6 @@ export abstract class IgxDropDownBaseDirective implements IDropDownList, OnInit /** * Gets/Sets the drop down's container max height. - * - * ```typescript - * // get - * let maxHeight = this.dropdown.maxHeight; - * ``` - * ```html - * - * - * ``` */ @Input() @HostBinding('style.maxHeight') @@ -110,10 +70,6 @@ export abstract class IgxDropDownBaseDirective implements IDropDownList, OnInit /** * Get all non-header items - * - * ```typescript - * let myDropDownItems = this.dropdown.items; - * ``` */ public get items(): IgxDropDownItemBaseDirective[] { const items: IgxDropDownItemBaseDirective[] = []; @@ -130,10 +86,6 @@ export abstract class IgxDropDownBaseDirective implements IDropDownList, OnInit /** * Get all header items - * - * ```typescript - * let myDropDownHeaderItems = this.dropdown.headers; - * ``` */ public get headers(): IgxDropDownItemBaseDirective[] { const headers: IgxDropDownItemBaseDirective[] = []; @@ -150,10 +102,6 @@ export abstract class IgxDropDownBaseDirective implements IDropDownList, OnInit /** * Get dropdown html element - * - * ```typescript - * let myDropDownElement = this.dropdown.element; - * ``` */ public get element() { return this.elementRef.nativeElement; diff --git a/projects/igniteui-angular/drop-down/src/drop-down/drop-down.component.ts b/projects/igniteui-angular/drop-down/src/drop-down/drop-down.component.ts index 6b579877603..5035540f2cc 100644 --- a/projects/igniteui-angular/drop-down/src/drop-down/drop-down.component.ts +++ b/projects/igniteui-angular/drop-down/src/drop-down/drop-down.component.ts @@ -38,13 +38,6 @@ import { ConnectedPositioningStrategy } from 'igniteui-angular/core'; * supports selection of a single item. Clicking or tapping an item selects it and closes the Drop Down * * Example: - * ```html - * - * - * {{ item.value }} - * - * - * ``` */ @Component({ @@ -65,40 +58,24 @@ export class IgxDropDownComponent extends IgxDropDownBaseDirective implements ID /** * Emitted before the dropdown is opened - * - * ```html - * - * ``` */ @Output() public opening = new EventEmitter(); /** * Emitted after the dropdown is opened - * - * ```html - * - * ``` */ @Output() public opened = new EventEmitter(); /** * Emitted before the dropdown is closed - * - * ```html - * - * ``` */ @Output() public closing = new EventEmitter(); /** * Emitted after the dropdown is closed - * - * ```html - * - * ``` */ @Output() public closed = new EventEmitter(); @@ -110,35 +87,18 @@ export class IgxDropDownComponent extends IgxDropDownBaseDirective implements ID * * Note: Keep that focus shift in mind when using the igxDropDownItemNavigation directive * and ensure it's placed either on each focusable item or a common ancestor to allow it to handle keyboard events. - * - * ```typescript - * // get - * let dropDownAllowsItemFocus = this.dropdown.allowItemsFocus; - * ``` - * - * ```html - * - * - * ``` */ @Input({ transform: booleanAttribute }) public allowItemsFocus = false; /** * Sets aria-labelledby attribute value. - * ```html - * - * ``` */ @Input() public labelledBy: string; /** * Gets/sets the `role` attribute of the drop down. Default is 'listbox'. - * - * ```html - * - * ``` */ @Input() public role = 'listbox'; @@ -198,10 +158,6 @@ export class IgxDropDownComponent extends IgxDropDownBaseDirective implements ID /** * Get currently selected item - * - * ```typescript - * let currentItem = this.dropdown.selectedItem; - * ``` */ public get selectedItem(): IgxDropDownItemBaseDirective { const selectedItem = this.selection.first_item(this.id); @@ -213,10 +169,6 @@ export class IgxDropDownComponent extends IgxDropDownBaseDirective implements ID /** * Gets if the dropdown is collapsed - * - * ```typescript - * let isCollapsed = this.dropdown.collapsed; - * ``` */ public get collapsed(): boolean { return this.toggleDirective.collapsed; @@ -238,10 +190,6 @@ export class IgxDropDownComponent extends IgxDropDownBaseDirective implements ID /** * Opens the dropdown - * - * ```typescript - * this.dropdown.open(); - * ``` */ public open(overlaySettings?: OverlaySettings) { const settings = { ... {}, ...this.getDefaultOverlaySettings(), ...overlaySettings }; @@ -262,10 +210,6 @@ export class IgxDropDownComponent extends IgxDropDownBaseDirective implements ID /** * Closes the dropdown - * - * ```typescript - * this.dropdown.close(); - * ``` */ public close(event?: Event) { this.toggleDirective.close(event); @@ -273,10 +217,6 @@ export class IgxDropDownComponent extends IgxDropDownBaseDirective implements ID /** * Toggles the dropdown - * - * ```typescript - * this.dropdown.toggle(); - * ``` */ public toggle(overlaySettings?: OverlaySettings) { if (this.collapsed || this.toggleDirective.isClosing) { @@ -567,9 +507,6 @@ export class IgxDropDownComponent extends IgxDropDownBaseDirective implements ID /** * Clears the selection of the dropdown - * ```typescript - * this.dropdown.clearSelection(); - * ``` */ public clearSelection() { const oldSelection = this.selectedItem; diff --git a/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-body.component.ts b/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-body.component.ts index 84902e18e43..c38668d81c3 100644 --- a/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-body.component.ts +++ b/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-body.component.ts @@ -21,16 +21,7 @@ export class IgxExpansionPanelBodyComponent { * Gets/sets the `role` attribute of the panel body * Default is 'region'; * Get - * ```typescript - * const currentRole = this.panel.body.role; - * ``` * Set - * ```typescript - * this.panel.body.role = 'content'; - * ``` - * ```html - * - * ``` */ @Input() @HostBinding('attr.role') @@ -43,9 +34,6 @@ export class IgxExpansionPanelBodyComponent { * Gets the `aria-label` attribute of the panel body * Defaults to the panel id with '-region' in the end; * Get - * ```typescript - * const currentLabel = this.panel.body.label; - * ``` */ @Input() @HostBinding('attr.aria-label') @@ -54,12 +42,6 @@ export class IgxExpansionPanelBodyComponent { } /** * Sets the `aria-label` attribute of the panel body - * ```typescript - * this.panel.body.label = 'my-custom-label'; - * ``` - * ```html - * - * ``` */ public set label(val: string) { this._label = val; @@ -69,9 +51,6 @@ export class IgxExpansionPanelBodyComponent { * Gets the `aria-labelledby` attribute of the panel body * Defaults to the panel header id; * Get - * ```typescript - * const currentLabel = this.panel.body.labelledBy; - * ``` */ @Input() @HostBinding('attr.aria-labelledby') @@ -80,12 +59,6 @@ export class IgxExpansionPanelBodyComponent { } /** * Sets the `aria-labelledby` attribute of the panel body - * ```typescript - * this.panel.body.labelledBy = 'my-custom-id'; - * ``` - * ```html - * - * ``` */ public set labelledBy(val: string) { this._labelledBy = val; diff --git a/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts b/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts index 2a89c02649a..1f30b4d28f7 100644 --- a/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts +++ b/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts @@ -51,16 +51,7 @@ export class IgxExpansionPanelHeaderComponent { /** * Gets/sets the `aria-level` attribute of the header * Get - * ```typescript - * const currentAriaLevel = this.panel.header.lv; - * ``` * Set - * ```typescript - * this.panel.header.lv = '5'; - * ``` - * ```html - * - * ``` */ @HostBinding('attr.aria-level') @Input() @@ -69,16 +60,7 @@ export class IgxExpansionPanelHeaderComponent { /** * Gets/sets the `role` attribute of the header * Get - * ```typescript - * const currentRole = this.panel.header.role; - * ``` * Set - * ```typescript - * this.panel.header.role = '5'; - * ``` - * ```html - * - * ``` */ @HostBinding('attr.role') @Input() @@ -101,32 +83,13 @@ export class IgxExpansionPanelHeaderComponent { /** * Gets/sets the position of the expansion-panel-header expand/collapse icon * Accepts `left`, `right` or `none` - * ```typescript - * const currentIconPosition = this.panel.header.iconPosition; - * ``` * Set - * ```typescript - * this.panel.header.iconPosition = 'left'; - * ``` - * ```html - * - * ``` */ @Input() public iconPosition: ExpansionPanelHeaderIconPosition = ExpansionPanelHeaderIconPosition.LEFT; /** * Emitted whenever a user interacts with the header host - * ```typescript - * handleInteraction(event: IExpansionPanelCancelableEventArgs) { - * ... - * } - * ``` - * ```html - * - * ... - * - * ``` */ @Output() public interaction = new EventEmitter(); @@ -149,18 +112,7 @@ export class IgxExpansionPanelHeaderComponent { * Gets/sets the whether the header is disabled * When disabled, the header will not handle user events and will stop their propagation * - * ```typescript - * const isDisabled = this.panel.header.disabled; - * ``` * Set - * ```typescript - * this.panel.header.disabled = true; - * ``` - * ```html - * - * ... - * - * ``` */ @Input({ transform: booleanAttribute }) @HostBinding('class.igx-expansion-panel--disabled') @@ -188,9 +140,6 @@ export class IgxExpansionPanelHeaderComponent { /** * Sets/gets the `id` of the expansion panel header. - * ```typescript - * let panelHeaderId = this.panel.header.id; - * ``` * * @memberof IgxExpansionPanelComponent */ diff --git a/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel.common.ts b/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel.common.ts index ee08acffd3e..d0f8dd4263e 100644 --- a/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel.common.ts +++ b/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel.common.ts @@ -34,19 +34,8 @@ export abstract class HeaderContentBaseDirective { /** * Returns the `textContent` of an element * - * ```html - * - * Tooltip content - * - * ``` - * * or the `title` content * - * ```html - * - * - * ``` - * * If both are provided, returns the `title` content. * * @param element diff --git a/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel.component.ts b/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel.component.ts index cdd36288ff4..dce8f5218e3 100644 --- a/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel.component.ts +++ b/projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel.component.ts @@ -34,35 +34,8 @@ export class IgxExpansionPanelComponent extends ToggleAnimationPlayer implements private elementRef = inject(ElementRef); /** - * Sets/gets the animation settings of the expansion panel component - * Open and Close animation should be passed - * - * Get - * ```typescript - * const currentAnimations = this.panel.animationSettings; - * ``` - * Set - * ```typescript - * import { slideInLeft, slideOutRight } from 'igniteui-angular'; - * ... - * this.panel.animationsSettings = { - * openAnimation: slideInLeft, - * closeAnimation: slideOutRight - * }; - * ``` - * or via template - * ```typescript - * import { slideInLeft, slideOutRight } from 'igniteui-angular'; - * ... - * myCustomAnimationObject = { - * openAnimation: slideInLeft, - * closeAnimation: slideOutRight - * }; - * ```html - * - * ... - * - * ``` + * Sets/gets the animation settings of the expansion panel component. + * Open and Close animation should be passed. */ @Input() public override get animationSettings(): ToggleAnimationSettings { @@ -75,12 +48,6 @@ export class IgxExpansionPanelComponent extends ToggleAnimationPlayer implements /** * Sets/gets the `id` of the expansion panel component. * If not set, `id` will have value `"igx-expansion-panel-0"`; - * ```html - * - * ``` - * ```typescript - * let panelId = this.panel.id; - * ``` * * @memberof IgxExpansionPanelComponent */ @@ -111,18 +78,9 @@ export class IgxExpansionPanelComponent extends ToggleAnimationPlayer implements /** * Gets/sets whether the component is collapsed (its content is hidden) * Get - * ```typescript - * const myPanelState: boolean = this.panel.collapsed; - * ``` * Set - * ```html - * this.panel.collapsed = true; - * ``` * * Two-way data binding: - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public collapsed = true; @@ -135,56 +93,24 @@ export class IgxExpansionPanelComponent extends ToggleAnimationPlayer implements /** * Emitted when the expansion panel starts collapsing - * ```typescript - * handleCollapsing(event: IExpansionPanelCancelableEventArgs) - * ``` - * ```html - * - * ... - * - * ``` */ @Output() public contentCollapsing = new EventEmitter(); /** * Emitted when the expansion panel finishes collapsing - * ```typescript - * handleCollapsed(event: IExpansionPanelEventArgs) - * ``` - * ```html - * - * ... - * - * ``` */ @Output() public contentCollapsed = new EventEmitter(); /** * Emitted when the expansion panel starts expanding - * ```typescript - * handleExpanding(event: IExpansionPanelCancelableEventArgs) - * ``` - * ```html - * - * ... - * - * ``` */ @Output() public contentExpanding = new EventEmitter(); /** * Emitted when the expansion panel finishes expanding - * ```typescript - * handleExpanded(event: IExpansionPanelEventArgs) - * ``` - * ```html - * - * ... - * - * ``` */ @Output() public contentExpanded = new EventEmitter(); @@ -228,13 +154,6 @@ export class IgxExpansionPanelComponent extends ToggleAnimationPlayer implements /** * Collapses the panel - * - * ```html - * - * ... - * - * - * ``` */ public collapse(evt?: Event) { // If expansion panel is already collapsed or is collapsing, do nothing @@ -260,13 +179,6 @@ export class IgxExpansionPanelComponent extends ToggleAnimationPlayer implements /** * Expands the panel - * - * ```html - * - * ... - * - * - * ``` */ public expand(evt?: Event) { if (!this.collapsed && !this.closeAnimationPlayer) { // Check if the panel is currently collapsing or already expanded @@ -291,13 +203,6 @@ export class IgxExpansionPanelComponent extends ToggleAnimationPlayer implements /** * Toggles the panel - * - * ```html - * - * ... - * - * - * ``` */ public toggle(evt?: Event) { if (this.collapsed) { diff --git a/projects/igniteui-angular/grids/core/src/cell.component.ts b/projects/igniteui-angular/grids/core/src/cell.component.ts index dba01a886aa..366697f83e3 100644 --- a/projects/igniteui-angular/grids/core/src/cell.component.ts +++ b/projects/igniteui-angular/grids/core/src/cell.component.ts @@ -65,16 +65,6 @@ import { IgxTimePickerComponent } from 'igniteui-angular/time-picker'; /** * Providing reference to `IgxGridCellComponent`: - * ```typescript - * @ViewChild('grid', { read: IgxGridComponent }) - * public grid: IgxGridComponent; - * ``` - * ```typescript - * let column = this.grid.columnList.first; - * ``` - * ```typescript - * let cell = column.cells[0]; - * ``` */ @Component({ changeDetection: ChangeDetectionStrategy.OnPush, @@ -152,9 +142,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets the column of the cell. - * ```typescript - * let cellColumn = this.cell.column; - * ``` * * @memberof IgxGridCellComponent */ @@ -191,9 +178,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets the row of the cell. - * ```typescript - * let cellRow = this.cell.row; - * ``` * * @memberof IgxGridCellComponent */ @@ -204,9 +188,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets the data of the row of the cell. - * ```typescript - * let rowData = this.cell.rowData; - * ``` * * @memberof IgxGridCellComponent */ @@ -222,23 +203,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Sets/gets the template of the cell. - * ```html - * - *
- * {{value}} - *
- *
- * ``` - * ```typescript - * @ViewChild('cellTemplate',{read: TemplateRef}) - * cellTemplate: TemplateRef; - * ``` - * ```typescript - * this.cell.cellTemplate = this.cellTemplate; - * ``` - * ```typescript - * let template = this.cell.cellTemplate; - * ``` * * @memberof IgxGridCellComponent */ @@ -253,12 +217,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Sets/gets the cell value. - * ```typescript - * this.cell.value = "Cell Value"; - * ``` - * ```typescript - * let cellValue = this.cell.value; - * ``` * * @memberof IgxGridCellComponent */ @@ -267,9 +225,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets the cell formatter. - * ```typescript - * let cellForamatter = this.cell.formatter; - * ``` * * @memberof IgxGridCellComponent */ @@ -278,9 +233,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets the cell template context object. - * ```typescript - * let context = this.cell.context(); - * ``` * * @memberof IgxGridCellComponent */ @@ -308,9 +260,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets the cell template. - * ```typescript - * let template = this.cell.template; - * ``` * * @memberof IgxGridCellComponent */ @@ -333,9 +282,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets the pinned indicator template. - * ```typescript - * let template = this.cell.pinnedIndicatorTemplate; - * ``` * * @memberof IgxGridCellComponent */ @@ -348,9 +294,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets the `id` of the grid in which the cell is stored. - * ```typescript - * let gridId = this.cell.gridID; - * ``` * * @memberof IgxGridCellComponent */ @@ -361,9 +304,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets the `index` of the row where the cell is stored. - * ```typescript - * let rowIndex = this.cell.rowIndex; - * ``` * * @memberof IgxGridCellComponent */ @@ -374,9 +314,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets the `index` of the cell column. - * ```typescript - * let columnIndex = this.cell.columnIndex; - * ``` * * @memberof IgxGridCellComponent */ @@ -386,9 +323,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Returns the column visible index. - * ```typescript - * let visibleColumnIndex = this.cell.visibleColumnIndex; - * ``` * * @memberof IgxGridCellComponent */ @@ -404,9 +338,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets the ID of the cell. - * ```typescript - * let cellID = this.cell.cellID; - * ``` * * @memberof IgxGridCellComponent */ @@ -455,9 +386,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Returns a reference to the nativeElement of the cell. - * ```typescript - * let cellNativeElement = this.cell.nativeElement; - * ``` * * @memberof IgxGridCellComponent */ @@ -524,12 +452,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Sets/get the `role` property of the cell. * Default value is `"gridcell"`. - * ```typescript - * this.cell.role = 'grid-cell'; - * ``` - * ```typescript - * let cellRole = this.cell.role; - * ``` * * @memberof IgxGridCellComponent */ @@ -538,9 +460,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets whether the cell is editable. - * ```typescript - * let isCellReadonly = this.cell.readonly; - * ``` * * @memberof IgxGridCellComponent */ @@ -620,9 +539,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets the width of the cell. - * ```typescript - * let cellWidth = this.cell.width; - * ``` * * @memberof IgxGridCellComponent */ @@ -643,9 +559,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets whether the cell is selected. - * ```typescript - * let isSelected = this.cell.selected; - * ``` * * @memberof IgxGridCellComponent */ @@ -656,9 +569,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Selects/deselects the cell. - * ```typescript - * this.cell.selected = true. - * ``` * * @memberof IgxGridCellComponent */ @@ -674,9 +584,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets whether the cell column is selected. - * ```typescript - * let isCellColumnSelected = this.cell.columnSelected; - * ``` * * @memberof IgxGridCellComponent */ @@ -688,9 +595,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Sets the current edit value while a cell is in edit mode. * Only for cell editing mode. - * ```typescript - * this.cell.editValue = value; - * ``` * * @memberof IgxGridCellComponent */ @@ -703,9 +607,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Gets the current edit value while a cell is in edit mode. * Only for cell editing mode. - * ```typescript - * let editValue = this.cell.editValue; - * ``` * * @memberof IgxGridCellComponent */ @@ -795,12 +696,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Sets/gets the highlight class of the cell. * Default value is `"igx-highlight"`. - * ```typescript - * let highlightClass = this.cell.highlightClass; - * ``` - * ```typescript - * this.cell.highlightClass = 'igx-cell-highlight'; - * ``` * * @memberof IgxGridCellComponent */ @@ -809,12 +704,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Sets/gets the active highlight class class of the cell. * Default value is `"igx-highlight__active"`. - * ```typescript - * let activeHighlightClass = this.cell.activeHighlightClass; - * ``` - * ```typescript - * this.cell.activeHighlightClass = 'igx-cell-highlight_active'; - * ``` * * @memberof IgxGridCellComponent */ @@ -991,10 +880,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Starts/ends edit mode for the cell. - * - * ```typescript - * cell.setEditMode(true); - * ``` */ public setEditMode(value: boolean): void { if (this.intRow.deleted) { @@ -1014,9 +899,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Sets new value to the cell. - * ```typescript - * this.cell.update('New Value'); - * ``` * * @memberof IgxGridCellComponent */ @@ -1185,9 +1067,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * If the provided string matches the text in the cell, the text gets highlighted. - * ```typescript - * this.cell.highlightText('Cell Value', true); - * ``` * * @memberof IgxGridCellComponent */ @@ -1197,9 +1076,6 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT /** * Clears the highlight of the text in the cell. - * ```typescript - * this.cell.clearHighLight(); - * ``` * * @memberof IgxGridCellComponent */ diff --git a/projects/igniteui-angular/grids/core/src/column-actions/column-actions.component.ts b/projects/igniteui-angular/grids/core/src/column-actions/column-actions.component.ts index 0c474bc8585..a0c7e61ac73 100644 --- a/projects/igniteui-angular/grids/core/src/column-actions/column-actions.component.ts +++ b/projects/igniteui-angular/grids/core/src/column-actions/column-actions.component.ts @@ -12,9 +12,6 @@ import { ColumnType } from 'igniteui-angular/core'; let NEXT_ID = 0; /** * Providing reference to `IgxColumnActionsComponent`: - * ```typescript - * @ViewChild('columnActions', { read: IgxColumnActionsComponent }) - * public columnActions: IgxColumnActionsComponent; */ @Component({ selector: 'igx-column-actions', @@ -27,33 +24,17 @@ export class IgxColumnActionsComponent implements DoCheck { /** * Gets/Sets the grid to provide column actions for. - * - * @example - * ```typescript - * let grid = this.columnActions.grid; - * ``` */ @Input() public grid: GridType; /** * Gets/sets the indentation of columns in the column list based on their hierarchy level. - * - * @example - * ``` - * - * ``` */ @Input() public indentation = 30; /** * Sets/Gets the css class selector. * By default the value of the `class` attribute is `"igx-column-actions"`. - * ```typescript - * let cssCLass = this.columnHidingUI.cssClass; - * ``` - * ```typescript - * this.columnHidingUI.cssClass = 'column-chooser'; - * ``` */ @HostBinding('class') public cssClass = 'igx-column-actions'; @@ -62,40 +43,21 @@ export class IgxColumnActionsComponent implements DoCheck { * * @remarks * The default max height is 100%. - * @example - * ```html - * - * ``` */ @Input() public columnsAreaMaxHeight = '100%'; /** * Shows/hides the columns filtering input from the UI. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public hideFilter = false; /** * Gets the checkbox components representing column items currently present in the dropdown - * - * @example - * ```typescript - * let columnItems = this.columnActions.columnItems; - * ``` */ @ViewChildren(IgxCheckboxComponent) public columnItems: QueryList; /** * Gets/sets the title of the column actions component. - * - * @example - * ```html - * - * ``` */ @Input() public title = ''; @@ -103,9 +65,6 @@ export class IgxColumnActionsComponent implements DoCheck { /** * An event that is emitted after a column's checked state is changed. * Provides references to the `column` and the `checked` properties as event arguments. - * ```html - * - * ``` */ @Output() public columnToggled = new EventEmitter(); @@ -168,11 +127,6 @@ export class IgxColumnActionsComponent implements DoCheck { /** * Gets the prompt that is displayed in the filter input. - * - * @example - * ```typescript - * let filterColumnsPrompt = this.columnActions.filterColumnsPrompt; - * ``` */ @Input() public get filterColumnsPrompt(): string { @@ -180,22 +134,12 @@ export class IgxColumnActionsComponent implements DoCheck { } /** * Sets the prompt that is displayed in the filter input. - * - * @example - * ```html - * - * ``` */ public set filterColumnsPrompt(value: string) { this._filterColumnsPrompt = value || ''; } /** * Gets the value which filters the columns list. - * - * @example - * ```typescript - * let filterCriteria = this.columnActions.filterCriteria; - * ``` */ @Input() public get filterCriteria() { @@ -203,11 +147,6 @@ export class IgxColumnActionsComponent implements DoCheck { } /** * Sets the value which filters the columns list. - * - * @example - * ```html - * - * ``` */ public set filterCriteria(value: string) { value = value || ''; @@ -218,11 +157,6 @@ export class IgxColumnActionsComponent implements DoCheck { } /** * Gets the display order of the columns. - * - * @example - * ```typescript - * let columnDisplayOrder = this.columnActions.columnDisplayOrder; - * ``` */ @Input() public get columnDisplayOrder() { @@ -230,11 +164,6 @@ export class IgxColumnActionsComponent implements DoCheck { } /** * Sets the display order of the columns. - * - * @example - * ```typescript - * this.columnActions.columnDisplayOrder = ColumnDisplayOrder.Alphabetical; - * ``` */ public set columnDisplayOrder(value: ColumnDisplayOrder) { if (value && value !== this._columnDisplayOrder) { @@ -247,10 +176,6 @@ export class IgxColumnActionsComponent implements DoCheck { * * @remarks * If unset it is obtained from the IgxColumnActionsBased derived directive applied. - * @example - * ```typescript - * let uncheckAllText = this.columnActions.uncheckAllText; - * ``` */ @Input() public get uncheckAllText() { @@ -258,11 +183,6 @@ export class IgxColumnActionsComponent implements DoCheck { } /** * Sets the text of the button that unchecks all columns. - * - * @example - * ```html - * - * ``` */ public set uncheckAllText(value: string) { this._uncheckAllText = value; @@ -272,10 +192,6 @@ export class IgxColumnActionsComponent implements DoCheck { * * @remarks * If unset it is obtained from the IgxColumnActionsBased derived directive applied. - * @example - * ```typescript - * let uncheckAllText = this.columnActions.uncheckAllText; - * ``` */ @Input() public get checkAllText() { @@ -286,10 +202,6 @@ export class IgxColumnActionsComponent implements DoCheck { * * @remarks * If unset it is obtained from the IgxColumnActionsBased derived directive applied. - * @example - * ```html - * - * ``` */ public set checkAllText(value: string) { this._checkAllText = value; @@ -314,10 +226,6 @@ export class IgxColumnActionsComponent implements DoCheck { * * @remarks * If not provided it will be automatically generated. - * @example - * ```html - * - * ``` */ @HostBinding('attr.id') @Input() @@ -354,11 +262,6 @@ export class IgxColumnActionsComponent implements DoCheck { /** * Unchecks all columns and performs the appropriate action. - * - * @example - * ```typescript - * this.columnActions.uncheckAllColumns(); - * ``` */ public uncheckAllColumns() { this.actionsDirective.uncheckAll(); @@ -366,11 +269,6 @@ export class IgxColumnActionsComponent implements DoCheck { /** * Checks all columns and performs the appropriate action. - * - * @example - * ```typescript - * this.columnActions.checkAllColumns(); - * ``` */ public checkAllColumns() { this.actionsDirective.checkAll(); diff --git a/projects/igniteui-angular/grids/core/src/columns/column-group.component.ts b/projects/igniteui-angular/grids/core/src/columns/column-group.component.ts index 32899668f9f..56dd8498da5 100644 --- a/projects/igniteui-angular/grids/core/src/columns/column-group.component.ts +++ b/projects/igniteui-angular/grids/core/src/columns/column-group.component.ts @@ -23,8 +23,6 @@ import { CellType, IgxColumnTemplateContext } from '../common/grid.interface'; /* blazorIndirectRender */ /** * **Ignite UI for Angular Column Group** - * - * @igxParent IgxGridComponent, IgxTreeGridComponent, IgxHierarchicalGridComponent, IgxColumnGroupComponent, IgxRowIslandComponent */ @Component({ changeDetection: ChangeDetectionStrategy.OnPush, @@ -53,9 +51,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After /** * Set if the column group is collapsible. * Default value is `false` - * ```html - * - * ``` * * @memberof IgxColumnGroupComponent */ @@ -79,10 +74,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After * Set whether the group is expanded or collapsed initially. * Applied only if the collapsible property is set to `true` * Default value is `true` - * ```html - * const state = false - * - * ``` * * @memberof IgxColumnGroupComponent */ @@ -103,9 +94,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After /** * Gets the column group `summaries`. - * ```typescript - * let columnGroupSummaries = this.columnGroup.summaries; - * ``` * * @memberof IgxColumnGroupComponent */ @@ -117,9 +105,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After /* blazorSuppress */ /** * Sets the column group `summaries`. - * ```typescript - * this.columnGroup.summaries = IgxNumberSummaryOperand; - * ``` * * @memberof IgxColumnGroupComponent */ @@ -129,12 +114,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After /** * Sets/gets whether the column group is `searchable`. * Default value is `true`. - * ```typescript - * let isSearchable = this.columnGroup.searchable; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnGroupComponent */ @@ -142,9 +121,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After public override searchable = true; /** * Gets the column group `filters`. - * ```typescript - * let columnGroupFilters = this.columnGroup.filters; - * ``` * * @memberof IgxColumnGroupComponent */ @@ -156,9 +132,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After /* blazorSuppress */ /** * Sets the column group `filters`. - * ```typescript - * this.columnGroup.filters = IgxStringFilteringOperand; - * ``` * * @memberof IgxColumnGroupComponent */ @@ -166,9 +139,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After /** * Returns if the column group is selectable - * ```typescript - * let columnGroupSelectable = this.columnGroup.selectable; - * ``` * * @memberof IgxColumnGroupComponent */ @@ -218,9 +188,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After } /** * Gets whether the column group is hidden. - * ```typescript - * let isHidden = this.columnGroup.hidden; - * ``` * * @memberof IgxColumnGroupComponent */ @@ -232,14 +199,8 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After /* blazorSuppress */ /** * Sets the column group hidden property. - * ```html - * - * ``` * * Two-way data binding - * ```html - * - * ``` * * @memberof IgxColumnGroupComponent */ @@ -260,9 +221,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After /** * Returns if the column group is selected. - * ```typescript - * let isSelected = this.columnGroup.selected; - * ``` * * @memberof IgxColumnGroupComponent */ @@ -274,9 +232,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After /* blazorSuppress */ /** * Select/deselect the column group. - * ```typescript - * this.columnGroup.selected = true; - * ``` * * @memberof IgxColumnGroupComponent */ @@ -354,9 +309,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After } /** * Returns a boolean indicating if the column is a `ColumnGroup`. - * ```typescript - * let isColumnGroup = this.columnGroup.columnGroup - * ``` * * @memberof IgxColumnGroupComponent */ @@ -365,9 +317,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After } /** * Returns a boolean indicating if the column is a `ColumnLayout` for multi-row layout. - * ```typescript - * let columnGroup = this.column.columnGroup; - * ``` * * @memberof IgxColumnComponent */ @@ -376,9 +325,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After } /** * Gets the width of the column group. - * ```typescript - * let columnGroupWidth = this.columnGroup.width; - * ``` * * @memberof IgxColumnGroupComponent */ diff --git a/projects/igniteui-angular/grids/core/src/columns/column-layout.component.ts b/projects/igniteui-angular/grids/core/src/columns/column-layout.component.ts index 86781e45269..587c1f17b94 100644 --- a/projects/igniteui-angular/grids/core/src/columns/column-layout.component.ts +++ b/projects/igniteui-angular/grids/core/src/columns/column-layout.component.ts @@ -17,8 +17,6 @@ import { IgxColumnGroupComponent } from './column-group.component'; /* jsonAPIManageCollectionInMarkup */ /** * Column layout for declaration of Multi-row Layout - * - * @igxParent IgxGridComponent */ @Component({ changeDetection: ChangeDetectionStrategy.OnPush, @@ -35,9 +33,6 @@ export class IgxColumnLayoutComponent extends IgxColumnGroupComponent implements public childrenVisibleIndexes = []; /** * Gets the width of the column layout. - * ```typescript - * let columnGroupWidth = this.columnGroup.width; - * ``` * * @memberof IgxColumnGroupComponent */ @@ -70,9 +65,6 @@ export class IgxColumnLayoutComponent extends IgxColumnGroupComponent implements /** * Gets the column visible index. * If the column is not visible, returns `-1`. - * ```typescript - * let visibleColumnIndex = this.column.visibleIndex; - * ``` * * @memberof IgxColumnComponent */ @@ -105,9 +97,6 @@ export class IgxColumnLayoutComponent extends IgxColumnGroupComponent implements /* blazorSuppress */ /** * Sets the column layout hidden property. - * ```typescript - * - * ``` * * @memberof IgxColumnGroupComponent */ diff --git a/projects/igniteui-angular/grids/core/src/columns/column.component.ts b/projects/igniteui-angular/grids/core/src/columns/column.component.ts index d22c329d338..2bfd4814794 100644 --- a/projects/igniteui-angular/grids/core/src/columns/column.component.ts +++ b/projects/igniteui-angular/grids/core/src/columns/column.component.ts @@ -44,8 +44,6 @@ const DEFAULT_DIGITS_INFO = '1.0-3'; * The Ignite UI Column is used within an `igx-grid` element to define what data the column will show. Features such as sorting, * filtering & editing are enabled at the column level. You can also provide a template containing custom content inside * the column using `ng-template` which will be used for all cells within the column. - * - * @igxParent IgxGridComponent, IgxTreeGridComponent, IgxHierarchicalGridComponent, IgxPivotGridComponent, IgxRowIslandComponent, IgxColumnGroupComponent, IgxColumnLayoutComponent */ @Component({ changeDetection: ChangeDetectionStrategy.OnPush, @@ -65,12 +63,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets the `field` value. - * ```typescript - * let columnField = this.column.field; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -85,10 +77,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets whether to merge cells in this column. - * ```html - * - * ``` - * */ @Input() public get merge() { @@ -116,12 +104,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets the `header` value. - * ```typescript - * let columnHeader = this.column.header; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -131,12 +113,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy public header = ''; /** * Sets/gets the `title` value. - * ```typescript - * let title = this.column.title; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -147,12 +123,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets whether the column is sortable. * Default value is `false`. - * ```typescript - * let isSortable = this.column.sortable; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -161,9 +131,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy public sortable = false; /** * Returns if the column is selectable. - * ```typescript - * let columnSelectable = this.column.selectable; - * ``` * * @memberof IgxColumnComponent */ @@ -176,9 +143,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets if the column is selectable. * Default value is `true`. - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -189,12 +153,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets whether the column is groupable. * Default value is `false`. - * ```typescript - * let isGroupable = this.column.groupable; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -211,9 +169,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Gets whether the column is editable. * Default value is `false`. - * ```typescript - * let isEditable = this.column.editable; - * ``` * * @memberof IgxColumnComponent */ @@ -237,12 +192,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy } /** * Sets whether the column is editable. - * ```typescript - * this.column.editable = true; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -252,12 +201,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets whether the column is filterable. * Default value is `true`. - * ```typescript - * let isFilterable = this.column.filterable; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -268,12 +211,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets whether the column is resizable. * Default value is `false`. - * ```typescript - * let isResizable = this.column.resizable; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -285,12 +222,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy * Sets/gets whether the column header is included in autosize logic. * Useful when template for a column header is sized based on parent, for example a default `div`. * Default value is `false`. - * ```typescript - * let isResizable = this.column.resizable; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -300,9 +231,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Gets a value indicating whether the summary for the column is enabled. - * ```typescript - * let hasSummary = this.column.hasSummary; - * ``` * * @memberof IgxColumnComponent */ @@ -315,9 +243,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets a value indicating whether the summary for the column is enabled. * Default value is `false`. - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -330,9 +255,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy } /** * Gets whether the column is hidden. - * ```typescript - * let isHidden = this.column.hidden; - * ``` * * @memberof IgxColumnComponent */ @@ -345,14 +267,8 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets the column hidden property. * Default value is `false`. - * ```html - * - * ``` * * Two-way data binding. - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -376,9 +292,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Returns if the column is selected. - * ```typescript - * let isSelected = this.column.selected; - * ``` * * @memberof IgxColumnComponent */ @@ -389,9 +302,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Select/deselect a column. * Default value is `false`. - * ```typescript - * this.column.selected = true; - * ``` * * @memberof IgxColumnComponent */ @@ -408,24 +318,12 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Emitted when the column is hidden or shown. - * - * ```html - * - * - * ``` - * */ @Output() public hiddenChange = new EventEmitter(); /** * Emitted when the column expanded or collapsed. - * - * ```html - * - * - * ``` - * */ @Output() public expandedChange = new EventEmitter(); @@ -444,9 +342,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Gets whether the hiding is disabled. - * ```typescript - * let isHidingDisabled = this.column.disableHiding; - * ``` * * @memberof IgxColumnComponent */ @@ -456,9 +351,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy public disableHiding = false; /** * Gets whether the pinning is disabled. - * ```typescript - * let isPinningDisabled = this.column.disablePinning; - * ``` * * @memberof IgxColumnComponent */ @@ -469,9 +361,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Gets the `width` of the column. - * ```typescript - * let columnWidth = this.column.width; - * ``` * * @memberof IgxColumnComponent */ @@ -493,14 +382,8 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets the `width` of the column. - * ```html - * - * ``` * * Two-way data binding. - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -530,12 +413,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets the maximum `width` of the column. - * ```typescript - * let columnMaxWidth = this.column.width; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -551,12 +428,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy } /** * Sets/gets the class selector of the column header. - * ```typescript - * let columnHeaderClass = this.column.headerClasses; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -569,15 +440,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy * Sets conditional style properties on the column header. * Similar to `ngStyle` it accepts an object literal where the keys are * the style properties and the value is the expression to be evaluated. - * ```typescript - * styles = { - * background: 'royalblue', - * color: (column) => column.pinned ? 'red': 'inherit' - * } - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -588,12 +450,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets the class selector of the column group header. - * ```typescript - * let columnHeaderClass = this.column.headerGroupClasses; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -606,15 +462,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy * Sets conditional style properties on the column header group wrapper. * Similar to `ngStyle` it accepts an object literal where the keys are * the style properties and the value is the expression to be evaluated. - * ```typescript - * styles = { - * background: 'royalblue', - * color: (column) => column.pinned ? 'red': 'inherit' - * } - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -630,14 +477,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy * where the key is the name of the CSS class, while the * value is either a callback function that returns a boolean, * or boolean, like so: - * ```typescript - * callback = (rowData, columnKey, cellValue, rowIndex) => { return rowData[columnKey] > 6; } - * cellClasses = { 'className' : this.callback }; - * ``` - * ```html - * - * - * ``` * * @memberof IgxColumnComponent */ @@ -652,15 +491,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy * Similar to `ngStyle` it accepts an object literal where the keys are * the style properties and the value is the expression to be evaluated. * As with `cellClasses` it accepts a callback function. - * ```typescript - * styles = { - * background: 'royalblue', - * color: (rowData, columnKey, cellValue, rowIndex) => value.startsWith('Important') ? 'red': 'inherit' - * } - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -678,30 +508,9 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy * Note: As the formatter is used in places like the Excel style filtering dialog, in certain * scenarios (remote filtering for example), the row data argument can be `undefined`. * - * * In this example, we check to see if the column name is Salary, and then provide a method as the column formatter * to format the value into a currency string. * - * @example - * ```typescript - * columnInit(column: IgxColumnComponent) { - * if (column.field == "Salary") { - * column.formatter = (salary => this.format(salary)); - * } - * } - * - * format(value: number) : string { - * return formatCurrency(value, "en-us", "$"); - * } - * ``` - * - * @example - * ```typescript - * const column = this.grid.getColumnByName('Address'); - * const addressFormatter = (address: string, rowData: any) => data.privacyEnabled ? 'unknown' : address; - * column.formatter = addressFormatter; - * ``` - * * @memberof IgxColumnComponent */ @notifyChanges() @@ -718,23 +527,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy * In this example, we check to see if the column name is OrderDate, and then provide a method as the summaryFormatter * to change the locale for the dates to 'fr-FR'. The summaries with the count key are skipped so they are displayed as numbers. * - * ```typescript - * columnInit(column: IgxColumnComponent) { - * if (column.field == "OrderDate") { - * column.summaryFormatter = this.summaryFormat; - * } - * } - * - * summaryFormat(summary: IgxSummaryResult, summaryOperand: IgxSummaryOperand): string { - * const result = summary.summaryResult; - * if(summaryResult.key !== 'count' && result !== null && result !== undefined) { - * const pipe = new DatePipe('fr-FR'); - * return pipe.transform(result,'mediumDate'); - * } - * return result; - * } - * ``` - * * @memberof IgxColumnComponent */ @notifyChanges() @@ -745,12 +537,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets whether the column filtering should be case sensitive. * Default value is `true`. - * ```typescript - * let filteringIgnoreCase = this.column.filteringIgnoreCase; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -760,12 +546,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets whether the column sorting should be case sensitive. * Default value is `true`. - * ```typescript - * let sortingIgnoreCase = this.column.sortingIgnoreCase; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -775,12 +555,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets whether the column is `searchable`. * Default value is `true`. - * ```typescript - * let isSearchable = this.column.searchable'; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -791,12 +565,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets the data type of the column values. * Default value is `string`. - * ```typescript - * let columnDataType = this.column.dataType; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -810,11 +578,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Row index where the current field should end. * The amount of rows between rowStart and rowEnd will determine the amount of spanning rows to that field - * ```html - * - * - * - * ``` * * @memberof IgxColumnComponent */ @@ -824,11 +587,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Column index where the current field should end. * The amount of columns between colStart and colEnd will determine the amount of spanning columns to that field - * ```html - * - * - * - * ``` * * @memberof IgxColumnComponent */ @@ -837,11 +595,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Row index from which the field is starting. - * ```html - * - * - * - * ``` * * @memberof IgxColumnComponent */ @@ -850,11 +603,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Column index from which the field is starting. - * ```html - * - * - * - * ``` * * @memberof IgxColumnComponent */ @@ -864,14 +612,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets custom properties provided in additional template context. * - * ```html - * - * - * {{ props }} - * - * - * ``` - * * @memberof IgxColumnComponent */ @Input() @@ -879,24 +619,12 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Emitted when the column width changes. - * - * ```html - * - * - * ``` - * */ @Output() public widthChange = new EventEmitter(); /** * Emitted when the column is pinned/unpinned. - * - * ```html - * - * - * ``` - * */ @Output() public pinnedChange = new EventEmitter(); @@ -997,12 +725,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets the minimum `width` of the column. * Default value is `88`; - * ```typescript - * let columnMinWidth = this.column.minWidth; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -1032,9 +754,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Gets the column index. - * ```typescript - * let columnIndex = this.column.index; - * ``` * * @memberof IgxColumnComponent */ @@ -1045,8 +764,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /* mustCoerceToInt */ /** * Gets the pinning position of the column. - * ```typescript - * let pinningPosition = this.column.pinningPosition; */ @WatchColumnChanges() @Input() @@ -1057,9 +774,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets the pinning position of the column. - *```html - * - * ``` */ public set pinningPosition(value: ColumnPinningPosition) { this._pinningPosition = value; @@ -1067,9 +781,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Gets whether the column is `pinned`. - * ```typescript - * let isPinned = this.column.pinned; - * ``` * * @memberof IgxColumnComponent */ @@ -1081,14 +792,8 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets whether the column is pinned. * Default value is `false`. - * ```html - * - * ``` * * Two-way data binding. - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -1114,9 +819,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /* treatAsRef */ /** * Gets the column `summaries`. - * ```typescript - * let columnSummaries = this.column.summaries; - * ``` * * @memberof IgxColumnComponent */ @@ -1130,9 +832,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /* treatAsRef */ /** * Sets the column `summaries`. - * ```typescript - * this.column.summaries = IgxNumberSummaryOperand; - * ``` * * @memberof IgxColumnComponent */ @@ -1151,12 +850,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets/gets the summary operands to exclude from display. * Accepts an array of string keys representing the summary types to disable, such as 'Min', 'Max', 'Count' etc. - * ```typescript - * let disabledSummaries = this.column.disabledSummaries; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -1180,9 +873,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Gets the column `filters`. - * ```typescript - * let columnFilters = this.column.filters' - * ``` * * @memberof IgxColumnComponent */ @@ -1192,9 +882,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy } /** * Sets the column `filters`. - * ```typescript - * this.column.filters = IgxBooleanFilteringOperand.instance(). - * ``` * * @memberof IgxColumnComponent */ @@ -1203,9 +890,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy } /** * Gets the column `sortStrategy`. - * ```typescript - * let sortStrategy = this.column.sortStrategy - * ``` * * @memberof IgxColumnComponent */ @@ -1215,10 +899,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy } /** * Sets the column `sortStrategy`. - * ```typescript - * this.column.sortStrategy = new CustomSortingStrategy(). - * class CustomSortingStrategy extends SortingStrategy {...} - * ``` * * @memberof IgxColumnComponent */ @@ -1229,9 +909,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /* blazorSuppress */ /** * Gets the function that compares values for merging. - * ```typescript - * let mergingComparer = this.column.mergingComparer' - * ``` */ @Input() public get mergingComparer(): (prevRecord: any, record: any, field: string) => boolean { @@ -1241,9 +918,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /* blazorSuppress */ /** * Sets a custom function to compare values for merging. - * ```typescript - * this.column.mergingComparer = (prevRecord: any, record: any, field: string) => { return prevRecord[field] === record[field]; } - * ``` */ public set mergingComparer(funcRef: (prevRecord: any, record: any, field: string) => boolean) { this._mergingComparer = funcRef; @@ -1253,9 +927,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /* blazorSuppress */ /** * Gets the function that compares values for grouping. - * ```typescript - * let groupingComparer = this.column.groupingComparer' - * ``` * * @memberof IgxColumnComponent */ @@ -1268,9 +939,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets a custom function to compare values for grouping. * Subsequent values in the sorted data that the function returns 0 for are grouped. - * ```typescript - * this.column.groupingComparer = (a: any, b: any, currRec?: any, groupRec?: any) => { return a === b ? 0 : -1; } - * ``` * * @memberof IgxColumnComponent */ @@ -1295,9 +963,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy } /** * Returns a reference to the `summaryTemplate`. - * ```typescript - * let summaryTemplate = this.column.summaryTemplate; - * ``` * * @memberof IgxColumnComponent */ @@ -1309,17 +974,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy } /** * Sets the summary template. - * ```html - * - *

{{ summaryResults[0].label }}: {{ summaryResults[0].summaryResult }}

- *

{{ summaryResults[1].label }}: {{ summaryResults[1].summaryResult }}

- *
- * ``` - * ```typescript - * @ViewChild("'summaryTemplate'", {read: TemplateRef }) - * public summaryTemplate: TemplateRef; - * this.column.summaryTemplate = this.summaryTemplate; - * ``` * * @memberof IgxColumnComponent */ @@ -1329,9 +983,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Returns a reference to the `bodyTemplate`. - * ```typescript - * let bodyTemplate = this.column.bodyTemplate; - * ``` * * @memberof IgxColumnComponent */ @@ -1343,18 +994,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy } /** * Sets the body template. - * ```html - * - *
- * {{val}} - *
- *
- * ``` - * ```typescript - * @ViewChild("'bodyTemplate'", {read: TemplateRef }) - * public bodyTemplate: TemplateRef; - * this.column.bodyTemplate = this.bodyTemplate; - * ``` * * @memberof IgxColumnComponent */ @@ -1363,9 +1002,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy } /** * Returns a reference to the header template. - * ```typescript - * let headerTemplate = this.column.headerTemplate; - * ``` * * @memberof IgxColumnComponent */ @@ -1378,18 +1014,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Sets the header template. * Note that the column header height is fixed and any content bigger than it will be cut off. - * ```html - * - *
- * {{column.field}} - *
- *
- * ``` - * ```typescript - * @ViewChild("'headerTemplate'", {read: TemplateRef }) - * public headerTemplate: TemplateRef; - * this.column.headerTemplate = this.headerTemplate; - * ``` * * @memberof IgxColumnComponent */ @@ -1398,9 +1022,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy } /** * Returns a reference to the inline editor template. - * ```typescript - * let inlineEditorTemplate = this.column.inlineEditorTemplate; - * ``` * * @memberof IgxColumnComponent */ @@ -1412,16 +1033,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy } /** * Sets the inline editor template. - * ```html - * - * - * - * ``` - * ```typescript - * @ViewChild("'inlineEditorTemplate'", {read: TemplateRef }) - * public inlineEditorTemplate: TemplateRef; - * this.column.inlineEditorTemplate = this.inlineEditorTemplate; - * ``` * * @memberof IgxColumnComponent */ @@ -1431,9 +1042,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Returns a reference to the validation error template. - * ```typescript - * let errorTemplate = this.column.errorTemplate; - * ``` */ @notifyChanges() @WatchColumnChanges() @@ -1443,18 +1051,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy } /** * Sets the error template. - * ```html - * - *
- * This name is forbidden. - *
- *
- * ``` - * ```typescript - * @ViewChild("'errorTemplate'", {read: TemplateRef }) - * public errorTemplate: TemplateRef; - * this.column.errorTemplate = this.errorTemplate; - * ``` */ public set errorTemplate(template: TemplateRef) { this._errorTemplate = template; @@ -1462,9 +1058,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Returns a reference to the `filterCellTemplate`. - * ```typescript - * let filterCellTemplate = this.column.filterCellTemplate; - * ``` * * @memberof IgxColumnComponent */ @@ -1476,16 +1069,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy } /** * Sets the quick filter template. - * ```html - * - * - * - * ``` - * ```typescript - * @ViewChild("'filterCellTemplate'", {read: TemplateRef }) - * public filterCellTemplate: TemplateRef; - * this.column.filterCellTemplate = this.filterCellTemplate; - * ``` * * @memberof IgxColumnComponent */ @@ -1524,9 +1107,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Gets the column visible index. * If the column is not visible, returns `-1`. - * ```typescript - * let visibleColumnIndex = this.column.visibleIndex; - * ``` */ public get visibleIndex(): number { if (!isNaN(this._vIndex)) { @@ -1565,9 +1145,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /* blazorCSSuppress - Blazor doesn't carry over the ColumnType interface + should translate as static bool value */ /** * Returns a boolean indicating if the column is a `ColumnGroup`. - * ```typescript - * let columnGroup = this.column.columnGroup; - * ``` * * @memberof IgxColumnComponent */ @@ -1578,9 +1155,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /* blazorCSSuppress - Blazor doesn't carry over the ColumnType interface + should translate as static bool value */ /** * Returns a boolean indicating if the column is a `ColumnLayout` for multi-row layout. - * ```typescript - * let columnGroup = this.column.columnGroup; - * ``` * * @memberof IgxColumnComponent */ @@ -1590,9 +1164,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Returns a boolean indicating if the column is a child of a `ColumnLayout` for multi-row layout. - * ```typescript - * let columnLayoutChild = this.column.columnLayoutChild; - * ``` * * @memberof IgxColumnComponent */ @@ -1615,9 +1186,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Returns the level of the column in a column group. * Returns `0` if the column doesn't have a `parent`. - * ```typescript - * let columnLevel = this.column.level; - * ``` * * @memberof IgxColumnComponent */ @@ -1655,11 +1223,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Indicates whether the column will be visible when its parent is collapsed. - * ```html - * - * - * - * ``` * * @memberof IgxColumnComponent */ @@ -1684,18 +1247,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy * Pass optional parameters for DatePipe and/or DecimalPipe to format the display value for date and numeric columns. * Accepts an `IColumnPipeArgs` object with any of the `format`, `timezone` and `digitsInfo` properties. * For more details see https://angular.io/api/common/DatePipe and https://angular.io/api/common/DecimalPipe - * @example - * ```typescript - * const pipeArgs: IColumnPipeArgs = { - * format: 'longDate', - * timezone: 'UTC', - * digitsInfo: '1.1-2' - * } - * ``` - * ```html - * - * - * ``` * @memberof IgxColumnComponent */ @notifyChanges() @@ -1715,15 +1266,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy * Pass optional properties for the default column editors. * @remarks * Options may be applicable only to specific column type editors. - * @example - * ```typescript - * const editorOptions: IColumnEditorOptions = { - * dateTimeFormat: 'MM/dd/YYYY', - * } - * ``` - * ```html - * - * ``` * @memberof IgxColumnComponent */ @notifyChanges() @@ -1784,9 +1326,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Returns the filteringExpressionsTree of the column. - * ```typescript - * let tree = this.column.filteringExpressionsTree; - * ``` * * @memberof IgxColumnComponent */ @@ -1799,21 +1338,12 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy // We need that because Blazor cannot handle the type correctly. /** * Sets/gets the parent column. - * ```typescript - * let parentColumn = this.column.parent; - * ``` - * ```typescript - * this.column.parent = higherLevelColumn; - * ``` */ public parent: ColumnType | null = null; /* blazorSuppress */ /** * Sets/gets the children columns. - * ```typescript - * let columnChildren = this.column.children; - * ``` * * @deprecated in version 18.1.0. Use the `childColumns` property instead. */ @@ -2230,9 +1760,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy * Column cannot be pinned if: * - Is already pinned * - index argument is out of range - * ```typescript - * let success = this.column.pin(); - * ``` * * @memberof IgxColumnComponent */ @@ -2340,9 +1867,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy * Column cannot be unpinned if: * - Is already unpinned * - index argument is out of range - * ```typescript - * let success = this.column.unpin(); - * ``` * * @memberof IgxColumnComponent */ @@ -2425,10 +1949,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy * If passed index is invalid, or if column would receive a different visible index after moving, moving is not performed. * If passed index would move the column to a different column group. moving is not performed. * - * @example - * ```typescript - * column.move(index); - * ``` * @memberof IgxColumnComponent */ public move(index: number) { @@ -2496,9 +2016,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Returns a reference to the top level parent column. - * ```typescript - * let topLevelParent = this.column.topLevelParent; - * ``` */ public get topLevelParent(): ColumnType | undefined { let parent = this.parent; @@ -2531,11 +2048,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * Autosize the column to the longest currently visible cell value, including the header cell. - * ```typescript - * @ViewChild('grid') grid: IgxGridComponent; - * let column = this.grid.columnList.filter(c => c.field === 'ID')[0]; - * column.autosize(); - * ``` * * @memberof IgxColumnComponent * @param byHeaderOnly Set if column should be autosized based only on the header content. @@ -2598,12 +2110,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy /** * @hidden * Returns the size (in pixels) of the longest currently visible cell, including the header cell. - * ```typescript - * @ViewChild('grid') grid: IgxGridComponent; - * - * let column = this.grid.columnList.filter(c => c.field === 'ID')[0]; - * let size = column.getLargestCellWidth(); - * ``` * @memberof IgxColumnComponent */ public getLargestCellWidth(): string { diff --git a/projects/igniteui-angular/grids/core/src/common/crud.service.ts b/projects/igniteui-angular/grids/core/src/common/crud.service.ts index 256a8e14385..1e889305713 100644 --- a/projects/igniteui-angular/grids/core/src/common/crud.service.ts +++ b/projects/igniteui-angular/grids/core/src/common/crud.service.ts @@ -730,10 +730,6 @@ export class IgxGridCRUDService extends IgxRowAddCrudState { * * @remarks * If `commit === true`, passes them from the pending state to the data (or transaction service) - * @example - * ```html - * - * ``` * @param commit */ // TODO: Implement the same representation of the method without evt emission. diff --git a/projects/igniteui-angular/grids/core/src/filtering/advanced-filtering/advanced-filtering-dialog.component.ts b/projects/igniteui-angular/grids/core/src/filtering/advanced-filtering/advanced-filtering-dialog.component.ts index 9d483f1d319..ba1860f62bb 100644 --- a/projects/igniteui-angular/grids/core/src/filtering/advanced-filtering/advanced-filtering-dialog.component.ts +++ b/projects/igniteui-angular/grids/core/src/filtering/advanced-filtering/advanced-filtering-dialog.component.ts @@ -23,11 +23,6 @@ import { * It is used internally in the Grid, but could also be hosted in a container outside of it. * * Example: - * ```html - * - * - * ``` */ @Component({ selector: 'igx-advanced-filtering-dialog', diff --git a/projects/igniteui-angular/grids/core/src/filtering/excel-style/excel-style-filtering.component.ts b/projects/igniteui-angular/grids/core/src/filtering/excel-style/excel-style-filtering.component.ts index 166248f9aa4..fa046ce97c5 100644 --- a/projects/igniteui-angular/grids/core/src/filtering/excel-style/excel-style-filtering.component.ts +++ b/projects/igniteui-angular/grids/core/src/filtering/excel-style/excel-style-filtering.component.ts @@ -51,11 +51,6 @@ export class IgxExcelStyleFilterOperationsTemplateDirective { } * It is used internally in the Grid, but could also be hosted in a container outside of it. * * Example: - * ```html - * - * - * ``` */ @Component({ changeDetection: ChangeDetectionStrategy.OnPush, @@ -208,14 +203,8 @@ export class IgxGridExcelStyleFilteringComponent extends BaseFilteringComponent * Gets the minimum height. * * Setting value in template: - * ```ts - * [minHeight]="''" - * ``` * * Example for setting a value: - * ```ts - * [minHeight]="'700px'" - * ``` */ @Input() public get minHeight(): string { @@ -245,14 +234,8 @@ export class IgxGridExcelStyleFilteringComponent extends BaseFilteringComponent * Gets the maximum height. * * Setting value in template: - * ```ts - * [maxHeight]="''" - * ``` * * Example for setting a value: - * ```ts - * [maxHeight]="'700px'" - * ``` */ @Input() @HostBinding('style.max-height') diff --git a/projects/igniteui-angular/grids/core/src/filtering/excel-style/excel-style-header.component.ts b/projects/igniteui-angular/grids/core/src/filtering/excel-style/excel-style-header.component.ts index f01f0eee140..547f364853d 100644 --- a/projects/igniteui-angular/grids/core/src/filtering/excel-style/excel-style-header.component.ts +++ b/projects/igniteui-angular/grids/core/src/filtering/excel-style/excel-style-header.component.ts @@ -18,11 +18,6 @@ export class IgxExcelStyleHeaderComponent { /** * Sets whether the column pinning icon should be shown in the header. * Default value is `false`. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public showPinning: boolean; @@ -30,11 +25,6 @@ export class IgxExcelStyleHeaderComponent { /** * Sets whether the column selecting icon should be shown in the header. * Default value is `false`. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public showSelecting: boolean; @@ -42,11 +32,6 @@ export class IgxExcelStyleHeaderComponent { /** * Sets whether the column hiding icon should be shown in the header. * Default value is `false`. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public showHiding: boolean; diff --git a/projects/igniteui-angular/grids/core/src/grid-actions/grid-action-button.component.ts b/projects/igniteui-angular/grids/core/src/grid-actions/grid-action-button.component.ts index 76b3654a8a7..380bd7f870d 100644 --- a/projects/igniteui-angular/grids/core/src/grid-actions/grid-action-button.component.ts +++ b/projects/igniteui-angular/grids/core/src/grid-actions/grid-action-button.component.ts @@ -20,11 +20,6 @@ export class IgxGridActionButtonComponent { /* blazorSuppress */ /** * Event emitted when action button is clicked. - * - * @example - * ```html - * - * ``` */ @Output() public actionClick = new EventEmitter(); diff --git a/projects/igniteui-angular/grids/core/src/grid-actions/grid-actions-base.directive.ts b/projects/igniteui-angular/grids/core/src/grid-actions/grid-actions-base.directive.ts index c3bbb0b3e47..dc6520cce70 100644 --- a/projects/igniteui-angular/grids/core/src/grid-actions/grid-actions-base.directive.ts +++ b/projects/igniteui-angular/grids/core/src/grid-actions/grid-actions-base.directive.ts @@ -23,12 +23,6 @@ export class IgxGridActionsBaseDirective implements AfterViewInit { /** * Gets/Sets if the action buttons will be rendered as menu items. When in menu, items will be rendered with text label. - * - * @example - * ```html - * - * - * ``` */ @Input({ transform: booleanAttribute }) public asMenuItems = false; diff --git a/projects/igniteui-angular/grids/core/src/grid-actions/grid-editing-actions.component.ts b/projects/igniteui-angular/grids/core/src/grid-actions/grid-editing-actions.component.ts index bccbbcb60c2..4f3eab8ef34 100644 --- a/projects/igniteui-angular/grids/core/src/grid-actions/grid-editing-actions.component.ts +++ b/projects/igniteui-angular/grids/core/src/grid-actions/grid-editing-actions.component.ts @@ -11,8 +11,6 @@ import { IgxActionStripActionsToken, showMessage } from 'igniteui-angular/core'; /* singleInstanceIdentifier */ /** * Grid Editing Actions for the Action Strip - * - * @igxParent IgxActionStripComponent */ @Component({ selector: 'igx-grid-editing-actions', @@ -103,11 +101,6 @@ export class IgxGridEditingActionsComponent extends IgxGridActionsBaseDirective /** * Enter row or cell edit mode depending the grid rowEditable option - * - * @example - * ```typescript - * this.gridEditingActions.startEdit(); - * ``` */ public startEdit(event?): void { if (event) { diff --git a/projects/igniteui-angular/grids/core/src/grid-actions/grid-pinning-actions.component.ts b/projects/igniteui-angular/grids/core/src/grid-actions/grid-pinning-actions.component.ts index 5ea7dfe006b..ccec97fc78c 100644 --- a/projects/igniteui-angular/grids/core/src/grid-actions/grid-pinning-actions.component.ts +++ b/projects/igniteui-angular/grids/core/src/grid-actions/grid-pinning-actions.component.ts @@ -10,8 +10,6 @@ import { IgxActionStripActionsToken } from 'igniteui-angular/core'; /* singleInstanceIdentifier */ /** * Grid Pinning Actions for the Action Strip - * - * @igxParent IgxActionStripComponent */ @Component({ selector: 'igx-grid-pinning-actions', @@ -79,11 +77,6 @@ export class IgxGridPinningActionsComponent extends IgxGridActionsBaseDirective /** * Pin the row according to the context. - * - * @example - * ```typescript - * this.gridPinningActions.pin(); - * ``` */ public pin(event?): void { if (event) { @@ -100,11 +93,6 @@ export class IgxGridPinningActionsComponent extends IgxGridActionsBaseDirective /** * Unpin the row according to the context. - * - * @example - * ```typescript - * this.gridPinningActions.unpin(); - * ``` */ public unpin(event?): void { if (event) { diff --git a/projects/igniteui-angular/grids/core/src/grid-public-cell.ts b/projects/igniteui-angular/grids/core/src/grid-public-cell.ts index d3eb8d61314..297da46f5b5 100644 --- a/projects/igniteui-angular/grids/core/src/grid-public-cell.ts +++ b/projects/igniteui-angular/grids/core/src/grid-public-cell.ts @@ -35,9 +35,6 @@ export class IgxGridCell implements CellType { /** * Returns the row containing the cell. - * ```typescript - * let row = this.cell.row; - * ``` * * @memberof IgxGridCell */ @@ -47,9 +44,6 @@ export class IgxGridCell implements CellType { /** * Returns the column of the cell. - * ```typescript - * let column = this.cell.column; - * ``` * * @memberof IgxGridCell */ @@ -59,9 +53,6 @@ export class IgxGridCell implements CellType { /** * Gets the current edit value while a cell is in edit mode. - * ```typescript - * let editValue = this.cell.editValue; - * ``` * * @memberof IgxGridCell */ @@ -74,9 +65,6 @@ export class IgxGridCell implements CellType { /** * Sets the current edit value while a cell is in edit mode. * Only for cell editing mode. - * ```typescript - * this.cell.editValue = value; - * ``` * * @memberof IgxGridCell */ @@ -88,10 +76,6 @@ export class IgxGridCell implements CellType { /** * Gets the validation status and errors, if any. - * ```typescript - * let validation = this.cell.validation; - * let errors = validation.errors; - * ``` */ public get validation(): IGridValidationState { @@ -110,9 +94,6 @@ export class IgxGridCell implements CellType { /** * Gets the width of the cell. - * ```typescript - * let cellWidth = this.cell.width; - * ``` * * @memberof IgxGridCell */ @@ -149,10 +130,6 @@ export class IgxGridCell implements CellType { * - rowIndex - the row index * - columnID - column index * - * ```typescript - * let cellID = cell.id; - * ``` - * * @memberof IgxGridCell */ public get id(): any { @@ -173,10 +150,6 @@ export class IgxGridCell implements CellType { /** * Starts/ends edit mode for the cell. * - * ```typescript - * cell.editMode = !cell.editMode; - * ``` - * * @memberof IgxGridCell */ public set editMode(value: boolean) { @@ -196,10 +169,6 @@ export class IgxGridCell implements CellType { /** * Gets whether the cell is selected. - * ```typescript - * let isSelected = this.cell.selected; - * ``` - * * * @memberof IgxGridCell */ @@ -209,10 +178,6 @@ export class IgxGridCell implements CellType { /** * Selects/deselects the cell. - * ```typescript - * this.cell.selected = true. - * ``` - * * * @memberof IgxGridCell */ @@ -235,10 +200,6 @@ export class IgxGridCell implements CellType { /** * Updates the cell value. * - * ```typescript - * cell.update(newValue); - * ``` - * * @memberof IgxGridCell */ public update(val: any): void { diff --git a/projects/igniteui-angular/grids/core/src/grid-public-row.ts b/projects/igniteui-angular/grids/core/src/grid-public-row.ts index 6f4e95258ba..f2b58b20e9e 100644 --- a/projects/igniteui-angular/grids/core/src/grid-public-row.ts +++ b/projects/igniteui-angular/grids/core/src/grid-public-row.ts @@ -25,10 +25,6 @@ abstract class BaseRow implements RowType { * A row in the grid is identified either by: * - primaryKey data value, * - the whole rowData, if the primaryKey is omitted. - * - * ```typescript - * let rowKey = row.key; - * ``` */ public get key(): any { const data = this._data ?? this.grid.dataView[this.index]; @@ -38,10 +34,6 @@ abstract class BaseRow implements RowType { /** * Gets if this represents add row UI - * - * ```typescript - * let isAddRow = row.addRowUI; - * ``` */ public get addRowUI(): boolean { return !!this.grid.crudService.row && @@ -50,10 +42,6 @@ abstract class BaseRow implements RowType { } /** Gets the validation status and errors, if any. - * ```typescript - * let validation = row.validation; - * let errors = validation.errors; - * ``` */ public get validation(): IGridValidationState { const formGroup = this.grid.validation.getFormGroup(this.key); @@ -62,10 +50,6 @@ abstract class BaseRow implements RowType { /** * The data record that populates the row. - * - * ```typescript - * let rowData = row.data; - * ``` */ public get data(): any { if (this.inEditMode) { @@ -95,9 +79,6 @@ abstract class BaseRow implements RowType { /** * Gets whether the row is pinned. * Default value is `false`. - * ```typescript - * const isPinned = row.pinned; - * ``` */ public get pinned(): boolean { return this.grid.isRecordPinned(this.data); @@ -106,9 +87,6 @@ abstract class BaseRow implements RowType { /** * Sets whether the row is pinned. * Default value is `false`. - * ```typescript - * row.pinned = !row.pinned; - * ``` */ public set pinned(val: boolean) { if (val) { @@ -120,10 +98,6 @@ abstract class BaseRow implements RowType { /** * Gets the row expanded/collapsed state. - * - * ```typescript - * const isExpanded = row.expanded; - * ``` */ public get expanded(): boolean { return this.grid.gridAPI.get_row_expansion_state(this.data); @@ -131,10 +105,6 @@ abstract class BaseRow implements RowType { /** * Expands/collapses the row. - * - * ```typescript - * row.expanded = true; - * ``` */ public set expanded(val: boolean) { this.grid.gridAPI.set_row_expansion_state(this.key, val); @@ -143,9 +113,6 @@ abstract class BaseRow implements RowType { /** * Gets whether the row is selected. * Default value is `false`. - * ```typescript - * row.selected = true; - * ``` */ public get selected(): boolean { return this.grid.selectionService.isRowSelected(this.key); @@ -154,9 +121,6 @@ abstract class BaseRow implements RowType { /** * Sets whether the row is selected. * Default value is `false`. - * ```typescript - * row.selected = !row.selected; - * ``` */ public set selected(val: boolean) { if (val) { @@ -204,11 +168,6 @@ abstract class BaseRow implements RowType { /** * Pins the specified row. * This method emits `onRowPinning` event. - * - * ```typescript - * // pin the selected row from the grid - * this.grid.selectedRows[0].pin(); - * ``` */ public pin(): boolean { return this.grid.pinRow(this.key, this.index); @@ -217,11 +176,6 @@ abstract class BaseRow implements RowType { /** * Unpins the specified row. * This method emits `onRowPinning` event. - * - * ```typescript - * // unpin the selected row from the grid - * this.grid.selectedRows[0].unpin(); - * ``` */ public unpin(): boolean { return this.grid.unpinRow(this.key); @@ -229,12 +183,6 @@ abstract class BaseRow implements RowType { /** * Updates the specified row object and the data source record with the passed value. - * - * ```typescript - * // update the second selected row's value - * let newValue = "Apple"; - * this.grid.selectedRows[1].update(newValue); - * ``` */ public update(value: any): void { const crudService = this.grid.crudService; @@ -249,11 +197,6 @@ abstract class BaseRow implements RowType { /** * Removes the specified row from the grid's data source. * This method emits `onRowDeleted` event. - * - * ```typescript - * // delete the third selected row from the grid - * this.grid.selectedRows[2].delete(); - * ``` */ public delete(): void { this.grid.deleteRowById(this.key); @@ -370,10 +313,6 @@ export class IgxTreeGridRow extends BaseRow implements RowType { /** * The data passed to the row component. - * - * ```typescript - * let selectedRowData = this.grid.selectedRows[0].data; - * ``` */ public override get data(): any { if (this.inEditMode) { @@ -424,10 +363,6 @@ export class IgxTreeGridRow extends BaseRow implements RowType { /** * The `ITreeGridRecord` with metadata about the row in the context of the tree grid. - * - * ```typescript - * const rowParent = this.treeGrid.getRowByKey(1).treeRow.parent; - * ``` */ public get treeRow(): ITreeGridRecord { return this._treeRow ?? this.grid.records.get(this.key); @@ -435,10 +370,6 @@ export class IgxTreeGridRow extends BaseRow implements RowType { /** * Gets whether the row is pinned. - * - * ```typescript - * let isPinned = row.pinned; - * ``` */ public override get pinned(): boolean { return this.grid.isRecordPinned(this); @@ -447,9 +378,6 @@ export class IgxTreeGridRow extends BaseRow implements RowType { /** * Sets whether the row is pinned. * Default value is `false`. - * ```typescript - * row.pinned = !row.pinned; - * ``` */ public override set pinned(val: boolean) { if (val) { @@ -461,10 +389,6 @@ export class IgxTreeGridRow extends BaseRow implements RowType { /** * Gets whether the row is expanded. - * - * ```typescript - * let esExpanded = row.expanded; - * ``` */ public override get expanded(): boolean { return this.grid.gridAPI.get_row_expansion_state(this.treeRow); @@ -472,10 +396,6 @@ export class IgxTreeGridRow extends BaseRow implements RowType { /** * Expands/collapses the row. - * - * ```typescript - * row.expanded = true; - * ``` */ public override set expanded(val: boolean) { this.grid.gridAPI.set_row_expansion_state(this.key, val); @@ -630,9 +550,6 @@ export class IgxGroupByRow implements RowType { /** * Gets whether the row is selected. * Default value is `false`. - * ```typescript - * row.selected = true; - * ``` */ public get selected(): boolean { return this.children.every(row => row.selected); @@ -641,9 +558,6 @@ export class IgxGroupByRow implements RowType { /** * Sets whether the row is selected. * Default value is `false`. - * ```typescript - * row.selected = !row.selected; - * ``` */ public set selected(val: boolean) { if (val) { @@ -660,9 +574,6 @@ export class IgxGroupByRow implements RowType { /** * Gets/sets whether the group row is expanded. - * ```typescript - * const groupRowExpanded = groupRow.expanded; - * ``` */ public get expanded(): boolean { return this.grid.isExpandedGroup(this.groupRow); @@ -678,9 +589,6 @@ export class IgxGroupByRow implements RowType { /** * Toggles the group row expanded/collapsed state. - * ```typescript - * groupRow.toggle() - * ``` */ public toggle(): void { this.grid.toggleGroup(this.groupRow); diff --git a/projects/igniteui-angular/grids/core/src/pivot-grid-aggregate.ts b/projects/igniteui-angular/grids/core/src/pivot-grid-aggregate.ts index 32ed36b21fa..22638e198a4 100644 --- a/projects/igniteui-angular/grids/core/src/pivot-grid-aggregate.ts +++ b/projects/igniteui-angular/grids/core/src/pivot-grid-aggregate.ts @@ -5,9 +5,6 @@ import { IgxDateSummaryOperand, IgxNumberSummaryOperand, IgxTimeSummaryOperand } export class IgxPivotAggregate { /** * Gets array with default aggregator function for base aggregation. - * ```typescript - * IgxPivotAggregate.aggregators(); - * ``` * * @memberof IgxPivotAggregate */ @@ -21,9 +18,6 @@ export class IgxPivotAggregate { /** * Counts all the records in the data source. * If filtering is applied, counts only the filtered records. - * ```typescript - * IgxSummaryOperand.count(dataSource); - * ``` * * @memberof IgxPivotAggregate */ @@ -36,9 +30,6 @@ export class IgxPivotNumericAggregate extends IgxPivotAggregate { /** * Gets array with default aggregator function for numeric aggregation. - * ```typescript - * IgxPivotAggregate.aggregators(); - * ``` * * @memberof IgxPivotAggregate */ @@ -73,9 +64,6 @@ export class IgxPivotNumericAggregate extends IgxPivotAggregate { /** * Returns the minimum numeric value in the provided data records. * If filtering is applied, returns the minimum value in the filtered data records. - * ```typescript - * IgxPivotNumericAggregate.min(members, data); - * ``` * * @memberof IgxPivotNumericAggregate */ @@ -86,9 +74,6 @@ export class IgxPivotNumericAggregate extends IgxPivotAggregate { /** * Returns the maximum numeric value in the provided data records. * If filtering is applied, returns the maximum value in the filtered data records. - * ```typescript - * IgxPivotNumericAggregate.max(data); - * ``` * * @memberof IgxPivotNumericAggregate */ @@ -99,9 +84,6 @@ export class IgxPivotNumericAggregate extends IgxPivotAggregate { /** * Returns the sum of the numeric values in the provided data records. * If filtering is applied, returns the sum of the numeric values in the data records. - * ```typescript - * IgxPivotNumericAggregate.sum(data); - * ``` * * @memberof IgxPivotNumericAggregate */ @@ -112,9 +94,6 @@ export class IgxPivotNumericAggregate extends IgxPivotAggregate { /** * Returns the average numeric value in the data provided data records. * If filtering is applied, returns the average numeric value in the filtered data records. - * ```typescript - * IgxPivotNumericAggregate.average(data); - * ``` * * @memberof IgxPivotNumericAggregate */ @@ -126,9 +105,6 @@ export class IgxPivotNumericAggregate extends IgxPivotAggregate { export class IgxPivotDateAggregate extends IgxPivotAggregate { /** * Gets array with default aggregator function for date aggregation. - * ```typescript - * IgxPivotDateAggregate.aggregators(); - * ``` * * @memberof IgxPivotAggregate */ @@ -150,9 +126,6 @@ export class IgxPivotDateAggregate extends IgxPivotAggregate { /** * Returns the latest date value in the data records. * If filtering is applied, returns the latest date value in the filtered data records. - * ```typescript - * IgxPivotDateAggregate.latest(data); - * ``` * * @memberof IgxPivotDateAggregate */ @@ -163,9 +136,6 @@ export class IgxPivotDateAggregate extends IgxPivotAggregate { /** * Returns the earliest date value in the data records. * If filtering is applied, returns the latest date value in the filtered data records. - * ```typescript - * IgxPivotDateAggregate.earliest(data); - * ``` * * @memberof IgxPivotDateAggregate */ @@ -177,9 +147,6 @@ export class IgxPivotDateAggregate extends IgxPivotAggregate { export class IgxPivotTimeAggregate extends IgxPivotAggregate { /** * Gets array with default aggregator function for time aggregation. - * ```typescript - * IgxPivotTimeAggregate.aggregators(); - * ``` * * @memberof IgxPivotAggregate */ @@ -202,9 +169,6 @@ export class IgxPivotTimeAggregate extends IgxPivotAggregate { /** * Returns the latest time value in the data records. Compare only the time part of the date. * If filtering is applied, returns the latest time value in the filtered data records. - * ```typescript - * IgxPivotTimeAggregate.latestTime(data); - * ``` * * @memberof IgxPivotTimeAggregate */ @@ -215,9 +179,6 @@ export class IgxPivotTimeAggregate extends IgxPivotAggregate { /** * Returns the earliest time value in the data records. Compare only the time part of the date. * If filtering is applied, returns the earliest time value in the filtered data records. - * ```typescript - * IgxPivotTimeAggregate.earliestTime(data); - * ``` * * @memberof IgxPivotTimeAggregate */ diff --git a/projects/igniteui-angular/grids/core/src/pivot-grid-dimensions.ts b/projects/igniteui-angular/grids/core/src/pivot-grid-dimensions.ts index 96efe72ff2a..ca61384422d 100644 --- a/projects/igniteui-angular/grids/core/src/pivot-grid-dimensions.ts +++ b/projects/igniteui-angular/grids/core/src/pivot-grid-dimensions.ts @@ -116,11 +116,6 @@ export class IgxPivotDateDimension implements IPivotDimension { * * @param inDateDimension Base dimension that is used by this class to determine the other dimensions and their values. * @param inOptions Options for the predefined date dimensions whether to show quarter, years and etc. - * @example - * ```typescript - * // Displays only years as parent dimension to the base dimension provided. - * new IgxPivotDateDimension({ memberName: 'Date', enabled: true }, { total: false, months: false }); - * ``` */ constructor(inBaseDimension: IPivotDimension = null, inOptions: IPivotDateDimensionOptions = {}) { this._baseDimension = inBaseDimension; diff --git a/projects/igniteui-angular/grids/core/src/row.directive.ts b/projects/igniteui-angular/grids/core/src/row.directive.ts index 48688b97d7b..dbc6935867b 100644 --- a/projects/igniteui-angular/grids/core/src/row.directive.ts +++ b/projects/igniteui-angular/grids/core/src/row.directive.ts @@ -62,11 +62,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy { /** * The data passed to the row component. - * - * ```typescript - * // get the row data for the first selected row - * let selectedRowData = this.grid.selectedRows[0].data; - * ``` */ @Input() public get data(): any { @@ -86,11 +81,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy { } /** * The index of the row. - * - * ```typescript - * // get the index of the second selected row - * let selectedRowIndex = this.grid.selectedRows[1].index; - * ``` */ @Input() public index: number; @@ -98,9 +88,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy { /** * Sets whether this specific row has disabled functionality for editing and row selection. * Default value is `false`. - * ```typescript - * this.grid.selectedRows[0].pinned = true; - * ``` */ @Input({ transform: booleanAttribute }) @HostBinding('attr.aria-disabled') @@ -110,9 +97,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy { /** * Sets whether the row is pinned. * Default value is `false`. - * ```typescript - * this.grid.selectedRows[0].pinned = true; - * ``` */ public set pinned(value: boolean) { if (value) { @@ -124,9 +108,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy { /** * Gets whether the row is pinned. - * ```typescript - * let isPinned = row.pinned; - * ``` */ public get pinned(): boolean { return this.grid.isRecordPinned(this.data); @@ -138,9 +119,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy { /** * Gets the expanded state of the row. - * ```typescript - * let isExpanded = row.expanded; - * ``` */ public get expanded(): boolean { return this.grid.gridAPI.get_row_expansion_state(this.data); @@ -148,10 +126,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy { /** * Expands/collapses the current row. - * - * ```typescript - * this.grid.selectedRows[2].expanded = true; - * ``` */ public set expanded(val: boolean) { this.grid.gridAPI.set_row_expansion_state(this.key, val); @@ -201,11 +175,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy { /** * Gets the rendered cells in the row component. - * - * ```typescript - * // get the cells of the third selected row - * let selectedRowCells = this.grid.selectedRows[2].cells; - * ``` */ public get cells() { const res = new QueryList(); @@ -362,10 +331,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy { * A row in the grid is identified either by: * - primaryKey data value, * - the whole data, if the primaryKey is omitted. - * - * ```typescript - * let rowID = this.grid.selectedRows[2].key; - * ``` */ public get key() { const primaryKey = this.grid.primaryKey; @@ -378,11 +343,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy { /** * The native DOM element representing the row. Could be null in certain environments. - * - * ```typescript - * // get the nativeElement of the second selected row - * let selectedRowNativeElement = this.grid.selectedRows[1].nativeElement; - * ``` */ public get nativeElement() { return this.element.nativeElement; @@ -521,12 +481,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy { /** * Updates the specified row object and the data source record with the passed value. - * - * ```typescript - * // update the second selected row's value - * let newValue = "Apple"; - * this.grid.selectedRows[1].update(newValue); - * ``` */ public update(value: any) { const crudService = this.grid.crudService; @@ -541,11 +495,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy { /** * Removes the specified row from the grid's data source. * This method emits `rowDeleted` event. - * - * ```typescript - * // delete the third selected row from the grid - * this.grid.selectedRows[2].delete(); - * ``` */ public delete() { this.grid.deleteRowById(this.key); @@ -565,11 +514,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy { /** * Pins the specified row. * This method emits `rowPinning`\`rowPinned` event. - * - * ```typescript - * // pin the selected row from the grid - * this.grid.selectedRows[0].pin(); - * ``` */ public pin() { return this.grid.pinRow(this.key); @@ -578,11 +522,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy { /** * Unpins the specified row. * This method emits `rowPinning`\`rowPinned` event. - * - * ```typescript - * // unpin the selected row from the grid - * this.grid.selectedRows[0].unpin(); - * ``` */ public unpin() { return this.grid.unpinRow(this.key); @@ -613,12 +552,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy { /** * Spawns the add row UI for the specific row. - * - * @example - * ```typescript - * const row = this.grid1.getRowByIndex(1); - * row.beginAddRow(); - * ``` */ public beginAddRow() { this.grid.crudService.enterAddRowMode(this); diff --git a/projects/igniteui-angular/grids/core/src/selection/selection.service.ts b/projects/igniteui-angular/grids/core/src/selection/selection.service.ts index db318ff7c91..5ebcc7a0d89 100644 --- a/projects/igniteui-angular/grids/core/src/selection/selection.service.ts +++ b/projects/igniteui-angular/grids/core/src/selection/selection.service.ts @@ -202,7 +202,6 @@ export class IgxGridSelectionService { } /** - * */ public keyboardStateOnKeydown(node: ISelectionNode, shift: boolean, shiftTab: boolean): void { this.keyboardState.active = true; diff --git a/projects/igniteui-angular/grids/core/src/services/csv/csv-exporter-options.ts b/projects/igniteui-angular/grids/core/src/services/csv/csv-exporter-options.ts index 8cfd793da4d..82b33542e9b 100644 --- a/projects/igniteui-angular/grids/core/src/services/csv/csv-exporter-options.ts +++ b/projects/igniteui-angular/grids/core/src/services/csv/csv-exporter-options.ts @@ -34,9 +34,6 @@ export class IgxCsvExporterOptions extends IgxExporterOptionsBase { /** * Gets the value delimiter which will be used for the exporting operation. - * ```typescript - * let delimiter = this.exportOptions.valueDelimiter; - * ``` * * @memberof IgxCsvExporterOptions */ @@ -46,9 +43,6 @@ export class IgxCsvExporterOptions extends IgxExporterOptionsBase { /** * Sets a value delimiter which will overwrite the default delimiter of the selected export format. - * ```typescript - * this.exportOptions.valueDelimiter = '|'; - * ``` * * @memberof IgxCsvExporterOptions */ @@ -58,9 +52,6 @@ export class IgxCsvExporterOptions extends IgxExporterOptionsBase { /** * Gets the CSV export format. - * ```typescript - * let filetype = this.exportOptions.fileType; - * ``` * * @memberof IgxCsvExporterOptions */ @@ -70,9 +61,6 @@ export class IgxCsvExporterOptions extends IgxExporterOptionsBase { /** * Sets the CSV export format. - * ```typescript - * this.exportOptions.fileType = CsvFileTypes.TAB; - * ``` * * @memberof IgxCsvExporterOptions */ diff --git a/projects/igniteui-angular/grids/core/src/services/csv/csv-exporter.ts b/projects/igniteui-angular/grids/core/src/services/csv/csv-exporter.ts index 7f6f99b6eb4..160dbcc895f 100644 --- a/projects/igniteui-angular/grids/core/src/services/csv/csv-exporter.ts +++ b/projects/igniteui-angular/grids/core/src/services/csv/csv-exporter.ts @@ -17,19 +17,6 @@ export interface ICsvExportEndedEventArgs extends IBaseEventArgs { * both raw data (array) or from an `IgxGrid`. * * Example: - * ```typescript - * public localData = [ - * { Name: "Eric Ridley", Age: "26" }, - * { Name: "Alanis Brook", Age: "22" }, - * { Name: "Jonathan Morris", Age: "23" } - * ]; - * - * constructor(private csvExportService: IgxCsvExporterService) { - * } - * - * const opt: IgxCsvExporterOptions = new IgxCsvExporterOptions("FileName", CsvFileTypes.CSV); - * this.csvExportService.exportData(this.localData, opt); - * ``` */ @Injectable({ providedIn: 'root', @@ -37,11 +24,6 @@ export interface ICsvExportEndedEventArgs extends IBaseEventArgs { export class IgxCsvExporterService extends IgxBaseExporter { /** * This event is emitted when the export process finishes. - * ```typescript - * this.exporterService.exportEnded.subscribe((args: ICsvExportEndedEventArgs) => { - * // put event handler code here - * }); - * ``` * * @memberof IgxCsvExporterService */ diff --git a/projects/igniteui-angular/grids/core/src/services/excel/excel-exporter-options.ts b/projects/igniteui-angular/grids/core/src/services/excel/excel-exporter-options.ts index 0dc941ad668..ae83906da49 100644 --- a/projects/igniteui-angular/grids/core/src/services/excel/excel-exporter-options.ts +++ b/projects/igniteui-angular/grids/core/src/services/excel/excel-exporter-options.ts @@ -7,10 +7,6 @@ export class IgxExcelExporterOptions extends IgxExporterOptionsBase { /** * Specifies if column pinning should be ignored. If ignoreColumnsOrder is set to true, * this option will always be considered as set to true. - * ```typescript - * let ignorePinning = this.exportOptions.ignorePinning; - * this.exportOptions.ignorePinning = true; - * ``` * * @memberof IgxExcelExporterOptions */ @@ -18,10 +14,6 @@ export class IgxExcelExporterOptions extends IgxExporterOptionsBase { /** * Specifies whether the exported data should be formatted as Excel table. (True by default) - * ```typescript - * let exportAsTable = this.exportOptions.exportAsTable; - * this.exportOptions.exportAsTable = false; - * ``` * * @memberof IgxExcelExporterOptions */ @@ -37,9 +29,6 @@ export class IgxExcelExporterOptions extends IgxExporterOptionsBase { /** * Gets the width of the columns in the exported excel file. - * ```typescript - * let width = this.exportOptions.columnWidth; - * ``` * * @memberof IgxExcelExporterOptions */ @@ -50,9 +39,6 @@ export class IgxExcelExporterOptions extends IgxExporterOptionsBase { /** * Sets the width of the columns in the exported excel file. If left unspecified, * the width of the column or the default width of the excel columns will be used. - * ```typescript - * this.exportOptions.columnWidth = 55; - * ``` * * @memberof IgxExcelExporterOptions */ @@ -66,9 +52,6 @@ export class IgxExcelExporterOptions extends IgxExporterOptionsBase { /** * Gets the height of the rows in the exported excel file. - * ```typescript - * let height = this.exportOptions.rowHeight; - * ``` * * @memberof IgxExcelExporterOptions */ @@ -79,9 +62,6 @@ export class IgxExcelExporterOptions extends IgxExporterOptionsBase { /** * Sets the height of the rows in the exported excel file. If left unspecified or 0, * the default height of the excel rows will be used. - * ```typescript - * this.exportOptions.rowHeight = 25; - * ``` * * @memberof IgxExcelExporterOptions */ @@ -95,9 +75,6 @@ export class IgxExcelExporterOptions extends IgxExporterOptionsBase { /** * Gets the name of the worksheet in the exported excel file. - * ```typescript - * let worksheetName = this.exportOptions.worksheetName; - * ``` * * @memberof IgxExcelExporterOptions */ @@ -111,9 +88,6 @@ export class IgxExcelExporterOptions extends IgxExporterOptionsBase { /** * Sets the name of the worksheet in the exported excel file. - * ```typescript - * this.exportOptions.worksheetName = "Worksheet"; - * ``` * * @memberof IgxExcelExporterOptions */ diff --git a/projects/igniteui-angular/grids/core/src/services/excel/excel-exporter.ts b/projects/igniteui-angular/grids/core/src/services/excel/excel-exporter.ts index 8061064328a..6a9c36ca36e 100644 --- a/projects/igniteui-angular/grids/core/src/services/excel/excel-exporter.ts +++ b/projects/igniteui-angular/grids/core/src/services/excel/excel-exporter.ts @@ -26,18 +26,6 @@ const EXCEL_MAX_COLS = 16384; * (array) or from an `IgxGrid`. * * Example: - * ```typescript - * public localData = [ - * { Name: "Eric Ridley", Age: "26" }, - * { Name: "Alanis Brook", Age: "22" }, - * { Name: "Jonathan Morris", Age: "23" } - * ]; - * - * constructor(private excelExportService: IgxExcelExporterService) { - * } - * - * this.excelExportService.exportData(this.localData, new IgxExcelExporterOptions("FileName")); - * ``` */ @Injectable({ providedIn: 'root', @@ -46,11 +34,6 @@ export class IgxExcelExporterService extends IgxBaseExporter { /** * This event is emitted when the export process finishes. - * ```typescript - * this.exporterService.exportEnded.subscribe((args: IExcelExportEndedEventArgs) => { - * // put event handler code here - * }); - * ``` * * @memberof IgxExcelExporterService */ diff --git a/projects/igniteui-angular/grids/core/src/services/exporter-common/base-export-service.ts b/projects/igniteui-angular/grids/core/src/services/exporter-common/base-export-service.ts index 3b50ee6932b..e3f101c5f0c 100644 --- a/projects/igniteui-angular/grids/core/src/services/exporter-common/base-export-service.ts +++ b/projects/igniteui-angular/grids/core/src/services/exporter-common/base-export-service.ts @@ -92,11 +92,6 @@ export interface IRowExportingEventArgs extends IBaseEventArgs { /** * columnExporting event arguments - * ```typescript - * this.exporterService.columnExporting.subscribe((args: IColumnExportingEventArgs) => { - * // set args properties here - * }); - * ``` */ export interface IColumnExportingEventArgs extends IBaseEventArgs { /** @@ -178,11 +173,6 @@ export abstract class IgxBaseExporter { /** * This event is emitted when a row is exported. - * ```typescript - * this.exporterService.rowExporting.subscribe((args: IRowExportingEventArgs) => { - * // put event handler code here - * }); - * ``` * * @memberof IgxBaseExporter */ @@ -190,11 +180,6 @@ export abstract class IgxBaseExporter { /** * This event is emitted when a column is exported. - * ```typescript - * this.exporterService.columnExporting.subscribe((args: IColumnExportingEventArgs) => { - * // put event handler code here - * }); - * ``` * * @memberof IgxBaseExporter */ @@ -219,9 +204,6 @@ export abstract class IgxBaseExporter { /* alternateName: exportGrid */ /** * Method for exporting IgxGrid component's data. - * ```typescript - * this.exporterService.export(this.igxGridForExport, this.exportOptions); - * ``` * * @memberof IgxBaseExporter */ @@ -278,9 +260,6 @@ export abstract class IgxBaseExporter { /** * Method for exporting any kind of array data. - * ```typescript - * this.exporterService.exportData(this.arrayForExport, this.exportOptions); - * ``` * * @memberof IgxBaseExporter */ diff --git a/projects/igniteui-angular/grids/core/src/services/exporter-common/exporter-options-base.ts b/projects/igniteui-angular/grids/core/src/services/exporter-common/exporter-options-base.ts index db18b6659f1..864951a41dd 100644 --- a/projects/igniteui-angular/grids/core/src/services/exporter-common/exporter-options-base.ts +++ b/projects/igniteui-angular/grids/core/src/services/exporter-common/exporter-options-base.ts @@ -1,10 +1,6 @@ export abstract class IgxExporterOptionsBase { /** * Specifies whether hidden columns should be exported. - * ```typescript - * let ignoreColumnsVisibility = this.exportOptions.ignoreColumnsVisibility; - * this.exportOptions.ignoreColumnsVisibility = true; - * ``` * * @memberof IgxExporterOptionsBase */ @@ -12,10 +8,6 @@ export abstract class IgxExporterOptionsBase { /** * Specifies whether filtered out rows should be exported. - * ```typescript - * let ignoreFiltering = this.exportOptions.ignoreFiltering; - * this.exportOptions.ignoreFiltering = true; - * ``` * * @memberof IgxExporterOptionsBase */ @@ -23,10 +15,6 @@ export abstract class IgxExporterOptionsBase { /** * Specifies if the exporter should ignore the current column order in the IgxGrid. - * ```typescript - * let ignoreColumnsOrder = this.exportOptions.ignoreColumnsOrder; - * this.exportOptions.ignoreColumnsOrder = true; - * ``` * * @memberof IgxExporterOptionsBase */ @@ -36,10 +24,6 @@ export abstract class IgxExporterOptionsBase { * Specifies whether the exported data should be sorted as in the provided IgxGrid. * When you export grouped data, setting ignoreSorting to true will cause * the grouping to fail because it relies on the sorting of the records. - * ```typescript - * let ignoreSorting = this.exportOptions.ignoreSorting; - * this.exportOptions.ignoreSorting = true; - * ``` * * @memberof IgxExporterOptionsBase */ @@ -47,10 +31,6 @@ export abstract class IgxExporterOptionsBase { /** * Specifies whether the exported data should be grouped as in the provided IgxGrid. - * ```typescript - * let ignoreGrouping = this.exportOptions.ignoreGrouping; - * this.exportOptions.ignoreGrouping = true; - * ``` * * @memberof IgxExporterOptionsBase */ @@ -58,10 +38,6 @@ export abstract class IgxExporterOptionsBase { /** * Specifies whether the exported data should include multi column headers as in the provided IgxGrid. - * ```typescript - * let ignoreMultiColumnHeaders = this.exportOptions.ignoreMultiColumnHeaders; - * this.exportOptions.ignoreMultiColumnHeaders = true; - * ``` * * @memberof IgxExporterOptionsBase */ @@ -69,10 +45,6 @@ export abstract class IgxExporterOptionsBase { /** * Specifies whether the exported data should include column summaries. - * ```typescript - * let exportSummaries = this.exportOptions.exportSummaries; - * this.exportOptions.exportSummaries = true; - * ``` * * @memberof IgxExporterOptionsBase */ @@ -80,10 +52,6 @@ export abstract class IgxExporterOptionsBase { /** * Specifies whether the exported data should have frozen headers. - * ```typescript - * let freezeHeaders = this.exportOptions.freezeHeaders; - * this.exportOptions.freezeHeaders = true; - * ``` * * @memberof IgxExporterOptionsBase */ @@ -91,10 +59,6 @@ export abstract class IgxExporterOptionsBase { /** * Specifies whether the headers should be exported if there is no data. - * ```typescript - * let alwaysExportHeaders = this.exportOptions.alwaysExportHeaders; - * this.exportOptions.alwaysExportHeaders = false; - * ``` * * @memberof IgxExporterOptionsBase */ @@ -112,9 +76,6 @@ export abstract class IgxExporterOptionsBase { /** * Gets the file name which will be used for the exporting operation. - * ```typescript - * let fileName = this.exportOptions.fileName; - * ``` * * @memberof IgxExporterOptionsBase */ @@ -124,9 +85,6 @@ export abstract class IgxExporterOptionsBase { /** * Sets the file name which will be used for the exporting operation. - * ```typescript - * this.exportOptions.fileName = 'exportedData01'; - * ``` * * @memberof IgxExporterOptionsBase */ diff --git a/projects/igniteui-angular/grids/core/src/services/pdf/pdf-exporter-options.ts b/projects/igniteui-angular/grids/core/src/services/pdf/pdf-exporter-options.ts index bbc0246a6ed..342e7925d68 100644 --- a/projects/igniteui-angular/grids/core/src/services/pdf/pdf-exporter-options.ts +++ b/projects/igniteui-angular/grids/core/src/services/pdf/pdf-exporter-options.ts @@ -6,10 +6,6 @@ import { IgxExporterOptionsBase } from '../exporter-common/exporter-options-base export class IgxPdfExporterOptions extends IgxExporterOptionsBase { /** * Specifies the page orientation. (portrait or landscape, landscape by default) - * ```typescript - * let pageOrientation = this.exportOptions.pageOrientation; - * this.exportOptions.pageOrientation = 'portrait'; - * ``` * * @memberof IgxPdfExporterOptions */ @@ -17,10 +13,6 @@ export class IgxPdfExporterOptions extends IgxExporterOptionsBase { /** * Specifies the page size. (a4, a3, letter, legal, etc., a4 by default) - * ```typescript - * let pageSize = this.exportOptions.pageSize; - * this.exportOptions.pageSize = 'letter'; - * ``` * * @memberof IgxPdfExporterOptions */ @@ -28,10 +20,6 @@ export class IgxPdfExporterOptions extends IgxExporterOptionsBase { /** * Specifies whether to show table borders. (True by default) - * ```typescript - * let showTableBorders = this.exportOptions.showTableBorders; - * this.exportOptions.showTableBorders = false; - * ``` * * @memberof IgxPdfExporterOptions */ @@ -39,10 +27,6 @@ export class IgxPdfExporterOptions extends IgxExporterOptionsBase { /** * Specifies the font size for the table content. (10 by default) - * ```typescript - * let fontSize = this.exportOptions.fontSize; - * this.exportOptions.fontSize = 12; - * ``` * * @memberof IgxPdfExporterOptions */ @@ -61,51 +45,9 @@ export class IgxPdfExporterOptions extends IgxExporterOptionsBase { * * @remarks * To convert a TTF file to Base64, you can use Node.js: - * ```javascript - * const fs = require('fs'); - * const fontData = fs.readFileSync('path/to/font.ttf'); - * const base64 = fontData.toString('base64'); - * fs.writeFileSync('font-base64.ts', `export const MY_FONT = '${base64}';`); - * ``` * * Or use an online Base64 encoder tool to convert your TTF file. * - * @example - * Basic usage with a single font (used for both normal and bold text): - * ```typescript - * import { NOTO_SANS_REGULAR } from './fonts/noto-sans'; - * - * const options = new IgxPdfExporterOptions('Export'); - * options.customFont = { - * name: 'NotoSans', - * data: NOTO_SANS_REGULAR - * }; - * this.pdfExporter.export(this.grid, options); - * ``` - * - * @example - * Usage with separate normal and bold font variants: - * ```typescript - * import { NOTO_SANS_REGULAR, NOTO_SANS_BOLD } from './fonts/noto-sans'; - * - * const options = new IgxPdfExporterOptions('Export'); - * options.customFont = { - * name: 'NotoSans', - * data: NOTO_SANS_REGULAR, - * bold: { - * name: 'NotoSans-Bold', - * data: NOTO_SANS_BOLD - * } - * }; - * this.pdfExporter.export(this.grid, options); - * ``` - * - * @example - * Recommended fonts for Unicode support: - * - Noto Sans: Covers most Unicode scripts (https://fonts.google.com/noto) - * - Arial Unicode MS: Comprehensive Unicode coverage - * - Source Han Sans: Excellent CJK (Chinese, Japanese, Korean) support - * * @memberof IgxPdfExporterOptions */ public customFont?: PdfUnicodeFont; @@ -128,28 +70,6 @@ export class IgxPdfExporterOptions extends IgxExporterOptionsBase { * * If the bold variant is not provided, the normal font will be used for both * regular text and headers (which are typically rendered in bold). - * - * @example - * Minimal configuration: - * ```typescript - * const font: PdfUnicodeFont = { - * name: 'MyFont', - * data: 'AAEAAAATAQAABAAwR0...' // Base64-encoded TTF data - * }; - * ``` - * - * @example - * Full configuration with bold variant: - * ```typescript - * const font: PdfUnicodeFont = { - * name: 'MyFont-Regular', - * data: 'AAEAAAATAQAABAAwR0...', // Base64-encoded regular TTF - * bold: { - * name: 'MyFont-Bold', - * data: 'BBFAAAAUBQAACAAxS1...' // Base64-encoded bold TTF - * } - * }; - * ``` */ export interface PdfUnicodeFont { /** @@ -160,9 +80,6 @@ export interface PdfUnicodeFont { * * @remarks * To convert a TTF file to Base64 in Node.js: - * ```javascript - * const base64Data = require('fs').readFileSync('font.ttf').toString('base64'); - * ``` */ data: string; diff --git a/projects/igniteui-angular/grids/core/src/services/pdf/pdf-exporter.ts b/projects/igniteui-angular/grids/core/src/services/pdf/pdf-exporter.ts index f8d9dcb7b24..2fe6b9de571 100644 --- a/projects/igniteui-angular/grids/core/src/services/pdf/pdf-exporter.ts +++ b/projects/igniteui-angular/grids/core/src/services/pdf/pdf-exporter.ts @@ -17,18 +17,6 @@ export interface IPdfExportEndedEventArgs extends IBaseEventArgs { * (array) or from an `IgxGrid`. * * Example: - * ```typescript - * public localData = [ - * { Name: "Eric Ridley", Age: "26" }, - * { Name: "Alanis Brook", Age: "22" }, - * { Name: "Jonathan Morris", Age: "23" } - * ]; - * - * constructor(private pdfExportService: IgxPdfExporterService) { - * } - * - * this.pdfExportService.exportData(this.localData, new IgxPdfExporterOptions("FileName")); - * ``` */ @Injectable({ providedIn: 'root', @@ -37,11 +25,6 @@ export class IgxPdfExporterService extends IgxBaseExporter { /** * This event is emitted when the export process finishes. - * ```typescript - * this.exporterService.exportEnded.subscribe((args: IPdfExportEndedEventArgs) => { - * // put event handler code here - * }); - * ``` * * @memberof IgxPdfExporterService */ diff --git a/projects/igniteui-angular/grids/core/src/state-base.directive.ts b/projects/igniteui-angular/grids/core/src/state-base.directive.ts index d1e2afecf97..96bf4fd4e94 100644 --- a/projects/igniteui-angular/grids/core/src/state-base.directive.ts +++ b/projects/igniteui-angular/grids/core/src/state-base.directive.ts @@ -491,12 +491,6 @@ export class IgxGridStateBaseDirective { /** * An object with options determining if a certain feature state should be saved. - * ```html - * - * ``` - * ```typescript - * public options = {selection: false, advancedFiltering: false}; - * ``` */ @Input() public get options(): IGridStateOptions { @@ -518,14 +512,6 @@ export class IgxGridStateBaseDirective { * @param `serialize` determines whether the returned object will be serialized to JSON string. Default value is true. * @param `feature` string or array of strings determining the features to be added in the state. If skipped, all features are added. * @returns Returns the serialized to JSON string IGridState object, or the non-serialized IGridState object. - * ```html - * - * ``` - * ```typescript - * @ViewChild(IgxGridStateDirective, { static: true }) public state; - * let state = this.state.getState(); // returns string - * let state = this.state(false) // returns `IGridState` object - * ``` */ protected getStateInternal(serialize = true, features?: GridFeatures | GridFeatures[]): IGridState | string { let state: IGridState | string; @@ -543,13 +529,6 @@ export class IgxGridStateBaseDirective { * * @param IGridState object to restore state from. * @returns - * ```html - * - * ``` - * ```typescript - * @ViewChild(IgxGridStateDirective, { static: true }) public state; - * this.state.setState(gridState); - * ``` */ protected setStateInternal(state: IGridState, features?: GridFeatures | GridFeatures[]) { this.state = state; diff --git a/projects/igniteui-angular/grids/core/src/state.directive.ts b/projects/igniteui-angular/grids/core/src/state.directive.ts index 80bae4a14e7..36f6ff379a1 100644 --- a/projects/igniteui-angular/grids/core/src/state.directive.ts +++ b/projects/igniteui-angular/grids/core/src/state.directive.ts @@ -10,12 +10,6 @@ export class IgxGridStateDirective extends IgxGridStateBaseDirective { /** * An object with options determining if a certain feature state should be saved. - * ```html - * - * ``` - * ```typescript - * public options = {selection: false, advancedFiltering: false}; - * ``` */ @Input('igxGridState') public override get options(): IGridStateOptions { @@ -32,14 +26,6 @@ export class IgxGridStateDirective extends IgxGridStateBaseDirective { * @param `serialize` determines whether the returned object will be serialized to JSON string. Default value is true. * @param `feature` string or array of strings determining the features to be added in the state. If skipped, all features are added. * @returns Returns the serialized to JSON string IGridState object, or the non-serialized IGridState object. - * ```html - * - * ``` - * ```typescript - * @ViewChild(IgxGridStateDirective, { static: true }) public state; - * let state = this.state.getState(); // returns string - * let state = this.state(false) // returns `IGridState` object - * ``` */ public getState(serialize = true, features?: GridFeatures | GridFeatures[]): IGridState | string { return super.getStateInternal(serialize, features); @@ -51,13 +37,6 @@ export class IgxGridStateDirective extends IgxGridStateBaseDirective { * * @param IGridState object to restore state from. * @returns - * ```html - * - * ``` - * ```typescript - * @ViewChild(IgxGridStateDirective, { static: true }) public state; - * this.state.setState(gridState); - * ``` */ public setState(state: IGridState | string, features?: GridFeatures | GridFeatures[]) { if (typeof state === 'string') { @@ -70,9 +49,6 @@ export class IgxGridStateDirective extends IgxGridStateBaseDirective { /** * Event emitted when set state is called with a string. * Returns the parsed state object so that it can be further modified before applying to the grid. - * ```typescript - * this.state.stateParsed.subscribe(parsedState => parsedState.sorting.forEach(x => x.strategy = NoopSortingStrategy.instance()}); - * ``` */ @Output() public stateParsed = new EventEmitter(); diff --git a/projects/igniteui-angular/grids/core/src/summaries/grid-summary.ts b/projects/igniteui-angular/grids/core/src/summaries/grid-summary.ts index 6e62b803bfb..25f291147ac 100644 --- a/projects/igniteui-angular/grids/core/src/summaries/grid-summary.ts +++ b/projects/igniteui-angular/grids/core/src/summaries/grid-summary.ts @@ -9,9 +9,6 @@ export class IgxSummaryOperand { /** * Counts all the records in the data source. * If filtering is applied, counts only the filtered records. - * ```typescript - * IgxSummaryOperand.count(dataSource); - * ``` * * @memberof IgxSummaryOperand */ @@ -20,31 +17,7 @@ export class IgxSummaryOperand { } /** * Executes the static `count` method and returns `IgxSummaryResult[]`. - * ```typescript - * interface IgxSummaryResult { - * key: string; - * label: string; - * summaryResult: any; - * } - * ``` * Can be overridden in the inherited classes to provide customization for the `summary`. - * ```typescript - * class CustomSummary extends IgxSummaryOperand { - * constructor() { - * super(); - * } - * public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] { - * const result = []; - * result.push({ - * key: "test", - * label: "Test", - * summaryResult: IgxSummaryOperand.count(data) - * }); - * return result; - * } - * } - * this.grid.getColumnByName('ColumnName').summaries = CustomSummary; - * ``` * * @memberof IgxSummaryOperand */ @@ -64,9 +37,6 @@ export class IgxNumberSummaryOperand extends IgxSummaryOperand { /** * Returns the minimum numeric value in the provided data records. * If filtering is applied, returns the minimum value in the filtered data records. - * ```typescript - * IgxNumberSummaryOperand.min(data); - * ``` * * @memberof IgxNumberSummaryOperand */ @@ -76,9 +46,6 @@ export class IgxNumberSummaryOperand extends IgxSummaryOperand { /** * Returns the maximum numeric value in the provided data records. * If filtering is applied, returns the maximum value in the filtered data records. - * ```typescript - * IgxNumberSummaryOperand.max(data); - * ``` * * @memberof IgxNumberSummaryOperand */ @@ -88,9 +55,6 @@ export class IgxNumberSummaryOperand extends IgxSummaryOperand { /** * Returns the sum of the numeric values in the provided data records. * If filtering is applied, returns the sum of the numeric values in the data records. - * ```typescript - * IgxNumberSummaryOperand.sum(data); - * ``` * * @memberof IgxNumberSummaryOperand */ @@ -100,9 +64,6 @@ export class IgxNumberSummaryOperand extends IgxSummaryOperand { /** * Returns the average numeric value in the data provided data records. * If filtering is applied, returns the average numeric value in the filtered data records. - * ```typescript - * IgxSummaryOperand.average(data); - * ``` * * @memberof IgxNumberSummaryOperand */ @@ -111,36 +72,7 @@ export class IgxNumberSummaryOperand extends IgxSummaryOperand { } /** * Executes the static methods and returns `IgxSummaryResult[]`. - * ```typescript - * interface IgxSummaryResult { - * key: string; - * label: string; - * summaryResult: any; - * } - * ``` * Can be overridden in the inherited classes to provide customization for the `summary`. - * ```typescript - * class CustomNumberSummary extends IgxNumberSummaryOperand { - * constructor() { - * super(); - * } - * public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] { - * const result = super.operate(data, allData, fieldName, groupRecord); - * result.push({ - * key: "avg", - * label: "Avg", - * summaryResult: IgxNumberSummaryOperand.average(data) - * }); - * result.push({ - * key: 'mdn', - * label: 'Median', - * summaryResult: this.findMedian(data) - * }); - * return result; - * } - * } - * this.grid.getColumnByName('ColumnName').summaries = CustomNumberSummary; - * ``` * * @memberof IgxNumberSummaryOperand */ @@ -180,9 +112,6 @@ export class IgxDateSummaryOperand extends IgxSummaryOperand { /** * Returns the latest date value in the data records. * If filtering is applied, returns the latest date value in the filtered data records. - * ```typescript - * IgxDateSummaryOperand.latest(data); - * ``` * * @memberof IgxDateSummaryOperand */ @@ -193,9 +122,6 @@ export class IgxDateSummaryOperand extends IgxSummaryOperand { /** * Returns the earliest date value in the data records. * If filtering is applied, returns the latest date value in the filtered data records. - * ```typescript - * IgxDateSummaryOperand.earliest(data); - * ``` * * @memberof IgxDateSummaryOperand */ @@ -205,31 +131,7 @@ export class IgxDateSummaryOperand extends IgxSummaryOperand { } /** * Executes the static methods and returns `IgxSummaryResult[]`. - * ```typescript - * interface IgxSummaryResult { - * key: string; - * label: string; - * summaryResult: any; - * } - * ``` * Can be overridden in the inherited classes to provide customization for the `summary`. - * ```typescript - * class CustomDateSummary extends IgxDateSummaryOperand { - * constructor() { - * super(); - * } - * public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] { - * const result = super.operate(data, allData, fieldName, groupRecord); - * result.push({ - * key: "deadline", - * label: "Deadline Date", - * summaryResult: this.calculateDeadline(data); - * }); - * return result; - * } - * } - * this.grid.getColumnByName('ColumnName').summaries = CustomDateSummary; - * ``` * * @memberof IgxDateSummaryOperand */ @@ -257,9 +159,6 @@ export class IgxTimeSummaryOperand extends IgxSummaryOperand { /** * Returns the latest time value in the data records. Compare only the time part of the date. * If filtering is applied, returns the latest time value in the filtered data records. - * ```typescript - * IgxTimeSummaryOperand.latestTime(data); - * ``` * * @memberof IgxTimeSummaryOperand */ @@ -273,9 +172,6 @@ export class IgxTimeSummaryOperand extends IgxSummaryOperand { /** * Returns the earliest time value in the data records. Compare only the time part of the date. * If filtering is applied, returns the earliest time value in the filtered data records. - * ```typescript - * IgxTimeSummaryOperand.earliestTime(data); - * ``` * * @memberof IgxTimeSummaryOperand */ diff --git a/projects/igniteui-angular/grids/core/src/toolbar/common.ts b/projects/igniteui-angular/grids/core/src/toolbar/common.ts index d10096262b1..bd33b6db659 100644 --- a/projects/igniteui-angular/grids/core/src/toolbar/common.ts +++ b/projects/igniteui-angular/grids/core/src/toolbar/common.ts @@ -29,14 +29,6 @@ export class IgxPdfTextDirective { } /* singleInstanceIdentifier */ /** * Provides a way to template the title portion of the toolbar in the grid. - * - * @igxModule IgxGridToolbarModule - * @igxParent IgxGridToolbarComponent - * - * @example - * ```html - * My custom title - * ``` */ @Component({ selector: 'igx-grid-toolbar-title', template: '', @@ -60,16 +52,6 @@ export class IgxGridToolbarTitleComponent { /* singleInstanceIdentifier */ /** * Provides a way to template the action portion of the toolbar in the grid. - * - * @igxModule IgxGridToolbarModule - * @igxParent IgxGridToolbarComponent - * - * @example - * ```html - * - * - * - * ``` */ @Component({ selector: 'igx-grid-toolbar-actions', template: '', diff --git a/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-advanced-filtering.component.ts b/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-advanced-filtering.component.ts index 7de270b2214..e7def0b5d1e 100644 --- a/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-advanced-filtering.component.ts +++ b/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-advanced-filtering.component.ts @@ -12,16 +12,6 @@ import { IFilteringExpressionsTree, isTree, OverlaySettings } from 'igniteui-ang /* singleInstanceIdentifier */ /** * Provides a pre-configured button to open the advanced filtering dialog of the grid. - * - * - * @igxModule IgxGridToolbarModule - * @igxParent IgxGridToolbarComponent, IgxGridToolbarActionsComponent - * - * @example - * ```html - * - * Custom text - * ``` */ @Component({ selector: 'igx-grid-toolbar-advanced-filtering', diff --git a/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-exporter.component.ts b/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-exporter.component.ts index 910ac5054c9..2baa6e13edb 100644 --- a/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-exporter.component.ts +++ b/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-exporter.component.ts @@ -37,10 +37,6 @@ export interface IgxExporterEvent { * @remarks * This component still needs the actual exporter service(s) provided in the DI chain * in order to export something. - * - * @igxModule IgxGridToolbarModule - * @igxParent IgxGridToolbarComponent, IgxGridToolbarActionsComponent - * */ @Component({ selector: 'igx-grid-toolbar-exporter', diff --git a/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-hiding.component.ts b/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-hiding.component.ts index d68b0c2bad2..b1f1aab4189 100644 --- a/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-hiding.component.ts +++ b/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-hiding.component.ts @@ -14,15 +14,6 @@ import { IgxIconComponent } from 'igniteui-angular/icon'; /* singleInstanceIdentifier */ /** * Provides a pre-configured column hiding component for the grid. - * - * - * @igxModule IgxGridToolbarModule - * @igxParent IgxGridToolbarComponent, IgxGridToolbarActionsComponent - * - * @example - * ```html - * - * ``` */ @Component({ selector: 'igx-grid-toolbar-hiding', diff --git a/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-pinning.component.ts b/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-pinning.component.ts index 3c5ecd75a2b..6aebce04fcf 100644 --- a/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-pinning.component.ts +++ b/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar-pinning.component.ts @@ -13,15 +13,6 @@ import { IgxIconComponent } from 'igniteui-angular/icon'; /* jsonAPIManageItemInMarkup */ /** * Provides a pre-configured column pinning component for the grid. - * - * - * @igxModule IgxGridToolbarModule - * @igxParent IgxGridToolbarComponent, IgxGridToolbarActionsComponent - * - * @example - * ```html - * - * ``` */ @Component({ selector: 'igx-grid-toolbar-pinning', diff --git a/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar.component.ts b/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar.component.ts index 57ea58f5add..bb13cecc9c6 100644 --- a/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar.component.ts +++ b/projects/igniteui-angular/grids/core/src/toolbar/grid-toolbar.component.ts @@ -20,10 +20,6 @@ import { IgxIconService } from 'igniteui-angular/icon'; /* jsonAPIManageItemInMarkup */ /** * Provides a context-aware container component for UI operations for the grid components. - * - * @igxModule IgxGridToolbarModule - * @igxParent IgxGridComponent, IgxTreeGridComponent, IgxHierarchicalGridComponent, IgxPivotGridComponent - * */ @Component({ selector: 'igx-grid-toolbar', diff --git a/projects/igniteui-angular/grids/grid/src/grid-base.directive.ts b/projects/igniteui-angular/grids/grid/src/grid-base.directive.ts index b64e34ce402..fbe130e0e96 100644 --- a/projects/igniteui-angular/grids/grid/src/grid-base.directive.ts +++ b/projects/igniteui-angular/grids/grid/src/grid-base.directive.ts @@ -197,10 +197,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * The default value is false. When set to true, it will override all columns declared through code or in markup. - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public autoGenerate = false; @@ -211,37 +207,18 @@ export abstract class IgxGridBaseDirective implements GridType, * The collection is only used during initialization and changing it will not cause any changes in the generated columns at runtime * unless the grid is destroyed and recreated. To modify the columns visible in the UI at runtime, please use their * [hidden](https://www.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/classes/IgxColumnComponent.html#hidden) property. - * @example - * ```html - * - * ``` - * ```typescript - * const Data = [{ 'Id': '1', 'ProductName': 'name1', 'Description': 'description1', 'Count': 5 }] - * ``` */ @Input() public autoGenerateExclude: string[] = []; /** * Controls whether columns moving is enabled in the grid. - * */ @Input({ transform: booleanAttribute }) public moving = false; /** * Gets/Sets a custom template when empty. - * - * @example - * ```html - * - * - * - * ``` - * Or - * ```html - * - * ``` */ @Input() public get emptyGridTemplate(): TemplateRef { @@ -253,28 +230,12 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets a custom template for adding row UI when grid is empty. - * - * @example - * ```html - * - * ``` */ @Input() public addRowEmptyTemplate: TemplateRef; /** * Gets/Sets a custom template when loading. - * - * @example - * ```html - * - * - * - * ``` - * Or - * ```html - * - * ``` */ @Input() public get loadingGridTemplate(): TemplateRef { @@ -310,11 +271,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the data clone strategy of the grid when in edit mode. - * - * @example - * ```html - * - * ``` */ @Input() public get dataCloneStrategy(): IDataCloneStrategy { @@ -356,11 +312,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the filtering expressions tree of the column for which filtering was performed. - * @example - * ```html - * - * ``` */ @Output() public filteringExpressionsTreeChange = new EventEmitter(); @@ -370,23 +321,12 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the advanced filtering expressions tree. - * @example - * ```html - * - * ``` */ @Output() public advancedFilteringExpressionsTreeChange = new EventEmitter(); /** * Emitted when grid is scrolled horizontally/vertically. - * - * @example - * ```html - * - * ``` */ @Output() public gridScroll = new EventEmitter(); @@ -397,13 +337,6 @@ export abstract class IgxGridBaseDirective implements GridType, * Accepts an object literal, containing key-value pairs, * where the key is the name of the CSS class and the value is * either a callback function that returns a boolean, or boolean, like so: - * ```typescript - * callback = (row: RowType) => { return row.selected > 6; } - * rowClasses = { 'className' : this.callback }; - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -415,15 +348,6 @@ export abstract class IgxGridBaseDirective implements GridType, * Sets conditional style properties on the grid row element. * It accepts an object literal where the keys are * the style properties and the value is an expression to be evaluated. - * ```typescript - * styles = { - * background: 'yellow', - * color: (row: RowType) => row.selected : 'red': 'white' - * } - * ``` - * ```html - * - * ``` * * @memberof IgxColumnComponent */ @@ -432,11 +356,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the primary key. - * - * @example - * ```html - * - * ``` */ @WatchChanges() @Input() @@ -456,10 +375,6 @@ export abstract class IgxGridBaseDirective implements GridType, * @remarks * Provides a callback for loading unique column values on demand. * If this property is provided, the unique values it generates will be used by the Excel Style Filtering. - * @example - * ```html - * - * ``` */ @Input() public uniqueColumnValuesStrategy: (column: ColumnType, @@ -485,10 +400,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the `IgxGridCell`. - * @example - * ```html - * - * ``` */ @Output() public cellClick = new EventEmitter(); @@ -498,10 +409,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the `IgxGridRow`. - * @example - * ```html - * - * ``` */ @Output() public rowClick = new EventEmitter(); @@ -509,22 +416,12 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Emitted when formGroup is created on edit of row/cell. - * - * @example - * ```html - * - * ``` */ @Output() public formGroupCreated = new EventEmitter(); /** * Emitted when grid's validation status changes. - * - * @example - * ```html - * - * ``` */ @Output() public validationStatusChange = new EventEmitter(); @@ -534,32 +431,18 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the `IgxGridCell`. - * @example - * ```html - * - * ``` */ @Output() public selected = new EventEmitter(); /** * Emitted when `IgxGridRowComponent` is selected. - * - * @example - * ```html - * - * ``` */ @Output() public rowSelectionChanging = new EventEmitter(); /** * Emitted when `IgxColumnComponent` is selected. - * - * @example - * ```html - * - * ``` */ @Output() public columnSelectionChanging = new EventEmitter(); @@ -569,14 +452,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * The index at which to insert the column may be changed through the `insertAtIndex` property. - * @example - * ```typescript - * public columnPinning(event) { - * if (event.column.field === "Name") { - * event.insertAtIndex = 0; - * } - * } - * ``` */ @Output() public columnPin = new EventEmitter(); @@ -586,14 +461,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * The index that the column is inserted at may be changed through the `insertAtIndex` property. - * @example - * ```typescript - * public columnPinning(event) { - * if (event.column.field === "Name") { - * event.insertAtIndex = 0; - * } - * } - * ``` */ @Output() public columnPinned = new EventEmitter(); @@ -603,23 +470,12 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * This event is cancelable. - * @example - * ```html - * - * - * ``` */ @Output() public cellEditEnter = new EventEmitter(); /** * Emitted when cell exits edit mode. - * - * @example - * ```html - * - * - * ``` */ @Output() public cellEditExit = new EventEmitter(); @@ -630,11 +486,6 @@ export abstract class IgxGridBaseDirective implements GridType, * @remarks * Event is fired after editing is completed, when the cell is exiting edit mode. * This event is cancelable. - * @example - * ```html - * - * - * ``` */ @Output() public cellEdit = new EventEmitter(); @@ -642,12 +493,6 @@ export abstract class IgxGridBaseDirective implements GridType, /* blazorCSSuppress */ /** * Emitted after cell has been edited and editing has been committed. - * - * @example - * ```html - * - * - * ``` */ @Output() public cellEditDone = new EventEmitter(); @@ -658,11 +503,6 @@ export abstract class IgxGridBaseDirective implements GridType, * @remarks * Emitted when [rowEditable]="true". * This event is cancelable. - * @example - * ```html - * - * - * ``` */ @Output() public rowEditEnter = new EventEmitter(); @@ -676,11 +516,6 @@ export abstract class IgxGridBaseDirective implements GridType, * performing paging operation, column resizing, pinning, moving or hitting `Done` * button inside of the rowEditingOverlay, or hitting the `Enter` key while editing a cell. * This event is cancelable. - * @example - * ```html - * - * - * ``` */ @Output() public rowEdit = new EventEmitter(); @@ -693,11 +528,6 @@ export abstract class IgxGridBaseDirective implements GridType, * Emitted when changing rows during edit mode, selecting an un-editable cell in the edited row, * performing paging operation, column resizing, pinning, moving or hitting `Done` * button inside of the rowEditingOverlay, or hitting the `Enter` key while editing a cell. - * @example - * ```html - * - * - * ``` */ @Output() public rowEditDone = new EventEmitter(); @@ -709,11 +539,6 @@ export abstract class IgxGridBaseDirective implements GridType, * Emits when [rowEditable]="true" & `endEdit(false)` is called. * Emitted when changing hitting `Esc` key during cell editing and when click on the `Cancel` button * in the row editing overlay. - * @example - * ```html - * - * - * ``` */ @Output() public rowEditExit = new EventEmitter(); @@ -723,10 +548,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the column object. - * @example - * ```html - * - * ``` */ @Output() public columnInit = new EventEmitter(); @@ -743,10 +564,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns an `ISortingEventArgs` object. `sortingExpressions` key holds the sorting expressions. - * @example - * ```html - * - * ``` */ @Output() public sorting = new EventEmitter(); @@ -756,10 +573,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the sorting expression. - * @example - * ```html - * - * ``` */ @Output() public sortingDone = new EventEmitter(); @@ -769,10 +582,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns an `IFilteringEventArgs` object. `filteringExpressions` key holds the filtering expressions for the column. - * @example - * ```html - * - * ``` */ @Output() public filtering = new EventEmitter(); @@ -782,10 +591,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the filtering expressions tree of the column for which filtering was performed. - * @example - * ```html - * - * ``` */ @Output() public filteringDone = new EventEmitter(); @@ -796,10 +601,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the data for the new `IgxGridRowComponent` object. - * @example - * ```html - * - * ``` */ @Output() public rowAdded = new EventEmitter(); @@ -810,10 +611,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns an `IRowDataEventArgs` object. - * @example - * ```html - * - * ``` */ @Output() public rowDeleted = new EventEmitter(); @@ -824,10 +621,6 @@ export abstract class IgxGridBaseDirective implements GridType, * @remarks * This event is cancelable. * Returns an IRowDataCancellableEventArgs` object. - * @example - * ```html - * - * ``` */ @Output() public rowDelete = new EventEmitter(); @@ -838,10 +631,6 @@ export abstract class IgxGridBaseDirective implements GridType, * @remarks * This event is cancelable. * Returns an IRowDataCancellableEventArgs` object. - * @example - * ```html - * - * ``` */ @Output() public rowAdd = new EventEmitter(); @@ -851,10 +640,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the `IgxColumnComponent` object's old and new width. - * @example - * ```html - * - * ``` */ @Output() public columnResized = new EventEmitter(); @@ -864,9 +649,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the `IgxGridCell` object if the immediate context menu target is a cell or an `IgxGridRow` otherwise. - * ```html - * - * ``` */ @Output() public contextMenu = new EventEmitter(); @@ -876,10 +658,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the `IgxGridCell` object. - * @example - * ```html - * - * ``` */ @Output() public doubleClick = new EventEmitter(); @@ -889,10 +667,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Args: { column: any, newValue: boolean } - * @example - * ```html - * - * ``` */ @Output() public columnVisibilityChanging = new EventEmitter(); @@ -902,10 +676,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Args: { column: IgxColumnComponent, newValue: boolean } - * @example - * ```html - * - * ``` */ @Output() public columnVisibilityChanged = new EventEmitter(); @@ -915,10 +685,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the moved `IgxColumnComponent` object. - * @example - * ```html - * - * ``` */ @Output() public columnMovingStart = new EventEmitter(); @@ -928,10 +694,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the source and target `IgxColumnComponent` objects. This event is cancelable. - * @example - * ```html - * - * ``` */ @Output() public columnMoving = new EventEmitter(); @@ -941,10 +703,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the source and target `IgxColumnComponent` objects. - * @example - * ```html - * - * ``` */ @Output() public columnMovingEnd = new EventEmitter(); @@ -955,10 +713,6 @@ export abstract class IgxGridBaseDirective implements GridType, * @remarks * This event is fired only if the key combination is supported in the grid. * Return the target type, target object and the original event. This event is cancelable. - * @example - * ```html - * - * ``` */ @Output() public gridKeydown = new EventEmitter(); @@ -993,11 +747,6 @@ export abstract class IgxGridBaseDirective implements GridType, /* blazorCSSuppress */ /** * Emitted when the rows are expanded or collapsed. - * - * @example - * ```html - * - * ``` */ @Output() public expansionStatesChange = new EventEmitter>(); @@ -1005,55 +754,30 @@ export abstract class IgxGridBaseDirective implements GridType, /* blazorInclude */ /** * Emitted when the rows are selected or deselected. - * - * @example - * ```html - * - * ``` */ @Output() public selectedRowsChange = new EventEmitter(); /** * Emitted when the expanded state of a row gets changed. - * - * @example - * ```html - * - * ``` */ @Output() public rowToggle = new EventEmitter(); /** * Emitted when the pinned state of a row is changed. - * - * @example - * ```html - * - * ``` */ @Output() public rowPinning = new EventEmitter(); /** * Emitted when the pinned state of a row is changed. - * - * @example - * ```html - * - * ``` */ @Output() public rowPinned = new EventEmitter(); /** * Emitted when the active node is changed. - * - * @example - * ``` - * - * ``` */ @Output() public activeNodeChange = new EventEmitter(); @@ -1063,10 +787,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns the sorting expressions. - * @example - * ```html - * - * ``` */ @Output() public sortingExpressionsChange = new EventEmitter(); @@ -1074,13 +794,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Emitted when an export process is initiated by the user. - * - * @example - * ```typescript - * toolbarExporting(event: IGridToolbarExportEventArgs){ - * const toolbarExporting = event; - * } - * ``` */ @Output() public toolbarExporting = new EventEmitter(); @@ -1108,22 +821,12 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Emitted before the grid's data view is changed because of a data operation, rebinding, etc. - * - * @example - * ```typescript - * - * ``` */ @Output() public dataChanging = new EventEmitter(); /** * Emitted after the grid's data view is changed because of a data operation, rebinding, etc. - * - * @example - * ```typescript - * - * ``` */ @Output() public dataChanged = new EventEmitter(); @@ -1237,16 +940,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Sets a custom template for the row drag ghost. - *```html - * - * menu - * - * ``` - * ```typescript - * @ViewChild("'template'", {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.dragGhostCustomTemplate = this.template; - * ``` */ public set dragGhostCustomTemplate(template: TemplateRef) { this._dragGhostCustomTemplate = template; @@ -1375,16 +1068,6 @@ export abstract class IgxGridBaseDirective implements GridType, } /** * Sets the row edit text template. - *```html - * - * Changes: {{rowChangesCount}} - * - * ``` - *```typescript - * @ViewChild('template', {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.rowEditTextTemplate = this.template; - * ``` */ public set rowEditTextTemplate(template: TemplateRef) { this._rowEditTextTemplate = template; @@ -1405,16 +1088,6 @@ export abstract class IgxGridBaseDirective implements GridType, } /** * Sets the row add text template. - *```html - * - * Adding Row - * - * ``` - *```typescript - * @ViewChild('template', {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.rowAddTextTemplate = this.template; - * ``` */ public set rowAddTextTemplate(template: TemplateRef) { this._rowAddTextTemplate = template; @@ -1435,17 +1108,6 @@ export abstract class IgxGridBaseDirective implements GridType, } /** * Sets the row edit actions template. - *```html - * - * - * - * - * ``` - *```typescript - * @ViewChild('template', {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.rowEditActionsTemplate = this.template; - * ``` */ public set rowEditActionsTemplate(template: TemplateRef) { this._rowEditActionsTemplate = template; @@ -1467,16 +1129,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Sets the row expand indicator template. - *```html - * - * remove - * - * ``` - *```typescript - * @ViewChild('template', {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.rowExpandedIndicatorTemplate = this.template; - * ``` */ public set rowExpandedIndicatorTemplate(template: TemplateRef) { this._rowExpandedIndicatorTemplate = template; @@ -1498,16 +1150,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Sets the row collapse indicator template. - *```html - * - * add - * - * ``` - *```typescript - * @ViewChild('template', {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.rowCollapsedIndicatorTemplate = this.template; - * ``` */ public set rowCollapsedIndicatorTemplate(template: TemplateRef) { this._rowCollapsedIndicatorTemplate = template; @@ -1529,16 +1171,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Sets the header expand indicator template. - *```html - * - * remove - * - * ``` - *```typescript - * @ViewChild('template', {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.headerExpandedIndicatorTemplate = this.template; - * ``` */ public set headerExpandedIndicatorTemplate(template: TemplateRef) { this._headerExpandIndicatorTemplate = template; @@ -1560,16 +1192,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Sets the row collapse indicator template. - *```html - * - * add - * - * ``` - *```typescript - * @ViewChild('template', {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.headerCollapsedIndicatorTemplate = this.template; - * ``` */ public set headerCollapsedIndicatorTemplate(template: TemplateRef) { this._headerCollapseIndicatorTemplate = template; @@ -1589,16 +1211,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Sets the excel style header icon. - *```html - * - * filter_alt - * - * ``` - *```typescript - * @ViewChild('template', {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.excelStyleHeaderIconTemplate = this.template; - * ``` */ public set excelStyleHeaderIconTemplate(template: TemplateRef) { this._excelStyleHeaderIconTemplate = template; @@ -1622,16 +1234,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Sets a custom template that should be used when rendering a header sorting indicator when columns are sorted in asc order. - *```html - * - * expand_less - * - * ``` - * ```typescript - * @ViewChild("'template'", {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.sortAscendingHeaderIconTemplate = this.template; - * ``` */ public set sortAscendingHeaderIconTemplate(template: TemplateRef) { this._sortAscendingHeaderIconTemplate = template; @@ -1651,16 +1253,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Sets a custom template that should be used when rendering a header sorting indicator when columns are sorted in desc order. - *```html - * - * expand_more - * - * ``` - * ```typescript - * @ViewChild("'template'", {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.sortDescendingHeaderIconTemplate = this.template; - * ``` */ public set sortDescendingHeaderIconTemplate(template: TemplateRef) { this._sortDescendingHeaderIconTemplate = template; @@ -1683,16 +1275,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Sets a custom template that should be used when rendering a header sorting indicator when columns are not sorted. - *```html - * - * unfold_more - * - * ``` - * ```typescript - * @ViewChild("'template'", {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.sortHeaderIconTemplate = this.template; - * ``` */ public set sortHeaderIconTemplate(template: TemplateRef) { this._sortHeaderIconTemplate = template; @@ -1768,7 +1350,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * @hidden @internal - * @igxElementsAnchor */ @ViewChild('sink', { read: ViewContainerRef, static: true }) public anchor: ViewContainerRef; @@ -1843,10 +1424,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * The default is AND. - * @example - * ```html - * - * ``` */ @WatchChanges() @Input() @@ -1862,10 +1439,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the filtering state. * - * @example - * ```html - * - * ``` * @remarks * Supports two-way binding. */ @@ -1908,12 +1481,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the advanced filtering state. - * - * @example - * ```typescript - * let advancedFilteringExpressionsTree = this.grid.advancedFilteringExpressionsTree; - * this.grid.advancedFilteringExpressionsTree = logic; - * ``` */ @WatchChanges() @Input() @@ -2035,11 +1602,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets whether rows can be moved. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public get rowDraggable(): boolean { @@ -2053,11 +1615,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the trigger for validators used when editing the grid. - * - * @example - * ```html - * - * ``` */ @Input() public validationTrigger: GridValidationTrigger = 'change'; @@ -2076,10 +1633,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * By default it is set to false. - * @example - * ```html - * - * ``` */ @WatchChanges() @Input({ transform: booleanAttribute }) @@ -2097,11 +1650,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the height. - * - * @example - * ```html - * - * ``` */ @WatchChanges() @HostBinding('style.height') @@ -2128,11 +1676,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the width of the grid. - * - * @example - * ```typescript - * let gridWidth = this.grid.width; - * ``` */ @WatchChanges() @Input() @@ -2155,11 +1698,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the row height. - * - * @example - * ```html - * - * ``` */ @WatchChanges() @Input() @@ -2176,11 +1714,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the default width of the columns. - * - * @example - * ```html - * - * ``` */ @WatchChanges() @Input() @@ -2195,11 +1728,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Get/Sets the message displayed when there are no records. - * - * @example - * ```html - * - * ``` */ @Input() public set emptyGridMessage(value: string) { @@ -2211,11 +1739,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets whether the grid is going to show a loading indicator. - * - * @example - * ```html - * - * ``` */ @WatchChanges() @Input({ transform: booleanAttribute }) @@ -2243,10 +1766,6 @@ export abstract class IgxGridBaseDirective implements GridType, * This will allow to bind the grid to remote data and having auto-generated columns at the same time. * Note that after generating the columns, this property would be disabled to avoid re-creating * columns each time a new data is assigned. - * @example - * ```typescript - * this.grid.shouldGenerate = true; - * ``` * @deprecated in version 18.2.0. Column re-creation now relies on `autoGenerate` instead. */ public get shouldGenerate(): boolean { @@ -2259,11 +1778,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the message displayed when there are no records and the grid is filtered. - * - * @example - * ```html - * - * ``` */ @Input() public set emptyFilteredGridMessage(value: string) { @@ -2281,10 +1795,6 @@ export abstract class IgxGridBaseDirective implements GridType, * @remarks * Allows to apply pinning the columns to the start or the end. * Note that pinning to both sides at a time is not allowed. - * @example - * ```html - * - * ``` */ @Input() public get pinning() { @@ -2300,11 +1810,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets if the filtering is enabled. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public get allowFiltering() { @@ -2326,11 +1831,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets a value indicating whether the advanced filtering is enabled. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public get allowAdvancedFiltering() { @@ -2351,10 +1851,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the filter mode. * - * @example - * ```html - * - * ``` * @remarks * By default it's set to FilterMode.quickFilter. */ @@ -2382,10 +1878,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the summary position. * - * @example - * ```html - * - * ``` * @remarks * By default it is bottom. */ @@ -2402,10 +1894,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the summary calculation mode. * - * @example - * ```html - * - * ``` * @remarks * By default it is rootAndChildLevels which means the summaries are calculated for the root level and each child level. */ @@ -2426,10 +1914,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Controls whether the summary row is visible when groupBy/parent row is collapsed. * - * @example - * ```html - * - * ``` * @remarks * By default showSummaryOnCollapse is set to 'false' which means that the summary row is not visible * when the groupBy/parent row is collapsed. @@ -2446,11 +1930,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the filtering strategy of the grid. - * - * @example - * ```html - * - * ``` */ @Input() public get filterStrategy(): IFilteringStrategy { @@ -2463,11 +1942,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the sorting strategy of the grid. - * - * @example - * ```html - * - * ``` */ @Input() public get sortStrategy(): IGridSortingStrategy { @@ -2481,11 +1955,6 @@ export abstract class IgxGridBaseDirective implements GridType, /* csSuppress */ /** * Gets/Sets the merge strategy of the grid. - * - * @example - * ```html - * - * ``` */ @Input() public get mergeStrategy() { @@ -2498,15 +1967,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets the sorting options - single or multiple sorting. * Accepts an `ISortingOptions` object with any of the `mode` properties. - * - * @example - * ```typescript - * const _sortingOptions: ISortingOptions = { - * mode: 'single' - * } - * ```html - * - * ``` */ @Input() public set sortingOptions(value: ISortingOptions) { @@ -2530,10 +1990,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Represents the selected rows' IDs (primary key or rowData) - * @example - * ```html - * - * ``` */ @Input() public set selectedRows(rowIDs: any[]) { @@ -2576,11 +2032,6 @@ export abstract class IgxGridBaseDirective implements GridType, /* csSuppress */ /** * A list of `IgxGridRowComponent`. - * - * @example - * ```typescript - * const rowList = this.grid.rowList; - * ``` */ public get rowList() { const res = new QueryList(); @@ -2597,11 +2048,6 @@ export abstract class IgxGridBaseDirective implements GridType, /* csSuppress */ /** * A list of currently rendered `IgxGridRowComponent`'s. - * - * @example - * ```typescript - * const dataList = this.grid.dataRowList; - * ``` */ public get dataRowList(): QueryList { const res = new QueryList(); @@ -2623,16 +2069,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Sets the header row selector template. - * ```html - * - * {{ headContext.selectedCount }} / {{ headContext.totalCount }} - * - * ``` - * ```typescript - * @ViewChild("'template'", {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.headSelectorTemplate = this.template; - * ``` */ public set headSelectorTemplate(template: TemplateRef) { this._headSelectorTemplate = template; @@ -2656,16 +2092,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Sets a custom template for the row selectors. - * ```html - * - * - * - * ``` - * ```typescript - * @ViewChild("'template'", {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.rowSelectorTemplate = this.template; - * ``` */ public set rowSelectorTemplate(template: TemplateRef) { this._rowSelectorTemplate = template; @@ -2714,16 +2140,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Sets a custom template that should be used when rendering the row drag indicator icon. - *```html - * - * expand_less - * - * ``` - * ```typescript - * @ViewChild("'template'", {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.dragIndicatorIconTemplate = this.template; - * ``` */ public set dragIndicatorIconTemplate(val: TemplateRef) { this._customDragIndicatorIconTemplate = val; @@ -2777,10 +2193,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Supports two-way data binding. - * @example - * ```html - * - * ``` */ @WatchChanges() @Input() @@ -2799,11 +2211,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets the number of hidden columns. - * - * @example - * ```typescript - * const hiddenCol = this.grid.hiddenColumnsCount; - * `` */ public get hiddenColumnsCount() { return this._columns.filter((col) => col.columnGroup === false && col.hidden === true).length; @@ -2820,12 +2227,6 @@ export abstract class IgxGridBaseDirective implements GridType, * Gets/Sets whether the grid has batch editing enabled. * When batch editing is enabled, changes are not made directly to the underlying data. * Instead, they are stored as transactions, which can later be committed w/ the `commit` method. - * - * @example - * ```html - * - * - * ``` */ @Input({ transform: booleanAttribute }) public get batchEditing(): boolean { @@ -2894,7 +2295,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets/Sets cell merge mode. - * */ @WatchChanges() @Input() @@ -3350,11 +2750,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Returns an array of objects containing the filtered data. - * - * @example - * ```typescript - * let filteredData = this.grid.filteredData; - * ``` */ public get filteredData() { return this._filteredData; @@ -3362,11 +2757,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Returns an array containing the filtered sorted data. - * - * @example - * ```typescript - * const filteredSortedData = this.grid1.filteredSortedData; - * ``` */ public get filteredSortedData(): any[] | null { return this._filteredSortedData; @@ -3588,10 +2978,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Includes the start index and how many records are rendered. - * @example - * ```typescript - * const gridVirtState = this.grid1.virtualizationState; - * ``` */ public get virtualizationState() { return this.verticalScrollContainer.state; @@ -4346,14 +3732,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Toggles the specified column's visibility. - * - * @example - * ```typescript - * this.grid1.toggleColumnVisibility({ - * column: this.grid1.columns[0], - * newValue: true - * }); - * ``` */ public toggleColumnVisibility(args: IColumnVisibilityChangedEventArgs) { const col = args.column ? this._columns.find((c) => c === args.column) : undefined; @@ -4371,11 +3749,6 @@ export abstract class IgxGridBaseDirective implements GridType, * @remarks * Includes only states that differ from the default one. * Supports two-way binding. - * @example - * ```html - * - * - * ``` */ @Input() public get expansionStates() { @@ -4394,11 +3767,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Expands all rows. - * - * @example - * ```typescript - * this.grid.expandAll(); - * ``` */ public expandAll() { this._defaultExpandState = true; @@ -4407,11 +3775,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Collapses all rows. - * - * @example - * ```typescript - * this.grid.collapseAll(); - * ``` */ public collapseAll() { this._defaultExpandState = false; @@ -4423,10 +3786,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * ID is either the primaryKey value or the data record instance. - * @example - * ```typescript - * this.grid.expandRow(rowID); - * ``` * @param rowID The row id - primaryKey value or the data record instance. */ public expandRow(rowID: any) { @@ -4438,10 +3797,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * ID is either the primaryKey value or the data record instance. - * @example - * ```typescript - * this.grid.collapseRow(rowID); - * ``` * @param rowID The row id - primaryKey value or the data record instance. */ public collapseRow(rowID: any) { @@ -4454,10 +3809,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * ID is either the primaryKey value or the data record instance. - * @example - * ```typescript - * this.grid.toggleRow(rowID); - * ``` * @param rowID The row id - primaryKey value or the data record instance. */ public toggleRow(rowID: any) { @@ -4476,11 +3827,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets the native element. - * - * @example - * ```typescript - * const nativeEl = this.grid.nativeElement. - * ``` */ public get nativeElement() { return this.elementRef.nativeElement; @@ -4504,11 +3850,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets the default row height. - * - * @example - * ```typescript - * const rowHeigh = this.grid.defaultRowHeight; - * ``` */ public get defaultRowHeight(): number { return this._defaultRowHeight; @@ -4604,11 +3945,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets an array of `IgxColumnComponent`s. - * - * @example - * ```typescript - * const colums = this.grid.columns. - * ``` */ public get columns(): IgxColumnComponent[] { return this._columns || []; @@ -4616,11 +3952,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets an array of the pinned `IgxColumnComponent`s. - * - * @example - * ```typescript - * const pinnedColumns = this.grid.pinnedColumns. - * ``` */ public get pinnedColumns(): IgxColumnComponent[] { if (this._pinnedVisible.length) { @@ -4632,11 +3963,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets an array of the pinned to the left `IgxColumnComponent`s. - * - * @example - * ```typescript - * const pinnedColumns = this.grid.pinnedStartColumns. - * ``` */ public get pinnedStartColumns(): IgxColumnComponent[] { return this._pinnedStartColumns.filter(col => !col.hidden); @@ -4644,11 +3970,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets an array of the pinned to the right `IgxColumnComponent`s. - * - * @example - * ```typescript - * const pinnedColumns = this.grid.pinnedEndColumns. - * ``` */ public get pinnedEndColumns(): IgxColumnComponent[] { return this._pinnedEndColumns.filter(col => !col.hidden); @@ -4657,11 +3978,6 @@ export abstract class IgxGridBaseDirective implements GridType, /* csSuppress */ /** * Gets an array of the pinned `IgxRowComponent`s. - * - * @example - * ```typescript - * const pinnedRow = this.grid.pinnedRows; - * ``` */ public get pinnedRows(): IgxGridRowComponent[] { return this._pinnedRowList.toArray().sort((a, b) => a.index - b.index); @@ -4669,11 +3985,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets an array of unpinned `IgxColumnComponent`s. - * - * @example - * ```typescript - * const unpinnedColumns = this.grid.unpinnedColumns. - * ``` */ public get unpinnedColumns(): IgxColumnComponent[] { if (this._unpinnedVisible.length) { @@ -4695,10 +4006,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Returns the `IgxColumnComponent` by field name. * - * @example - * ```typescript - * const myCol = this.grid1.getColumnByName("ID"); - * ``` * @param name */ public getColumnByName(name: string): IgxColumnComponent { @@ -4714,11 +4021,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Recalculates all widths of columns that have size set to `auto`. - * - * @example - * ```typescript - * this.grid1.recalculateAutoSizes(); - * ``` */ public recalculateAutoSizes() { // reset auto-size and calculate it again. @@ -4732,11 +4034,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Returns an array of visible `IgxColumnComponent`s. - * - * @example - * ```typescript - * const visibleColumns = this.grid.visibleColumns. - * ``` */ public get visibleColumns(): IgxColumnComponent[] { if (this._visibleColumns.length) { @@ -4751,10 +4048,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Only functions when paging is enabled. - * @example - * ```typescript - * const totalRecords = this.grid.totalRecords; - * ``` */ @Input() public get totalRecords(): number { @@ -4840,11 +4133,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Places a column before or after the specified target column. - * - * @example - * ```typescript - * grid.moveColumn(column, target); - * ``` */ public moveColumn(column: IgxColumnComponent, target: IgxColumnComponent, pos: DropPosition = DropPosition.AfterDropTarget) { // M.A. May 11th, 2021 #9508 Make the event cancelable @@ -4901,27 +4189,6 @@ export abstract class IgxGridBaseDirective implements GridType, * Triggers change detection for the `IgxGridComponent`. * Calling markForCheck also triggers the grid pipes explicitly, resulting in all updates being processed. * May degrade performance if used when not needed, or if misused: - * ```typescript - * // DON'Ts: - * // don't call markForCheck from inside a loop - * // don't call markForCheck when a primitive has changed - * grid.data.forEach(rec => { - * rec = newValue; - * grid.markForCheck(); - * }); - * - * // DOs - * // call markForCheck after updating a nested property - * grid.data.forEach(rec => { - * rec.nestedProp1.nestedProp2 = newValue; - * }); - * grid.markForCheck(); - * ``` - * - * @example - * ```typescript - * grid.markForCheck(); - * ``` */ public markForCheck() { this.pipeTrigger++; @@ -4932,10 +4199,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Creates a new `IgxGridRowComponent` and adds the data record to the end of the data source. * - * @example - * ```typescript - * this.grid1.addRow(record); - * ``` * @param data */ public addRow(data: any): void { @@ -4955,10 +4218,6 @@ export abstract class IgxGridBaseDirective implements GridType, * @remarks * Requires that the `primaryKey` property is set. * The method accept rowSelector as a parameter, which is the rowID. - * @example - * ```typescript - * this.grid1.deleteRow(0); - * ``` * @param rowSelector */ public deleteRow(rowSelector: any): any { @@ -5005,10 +4264,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Requires that the `primaryKey` property is set. - * @example - * ```typescript - * this.gridWithPK.updateCell('Updated', 1, 'ProductName'); - * ``` * @param value the new value which is to be set. * @param rowSelector corresponds to rowID. * @param column corresponds to column field. @@ -5048,12 +4303,6 @@ export abstract class IgxGridBaseDirective implements GridType, * The row is specified by * rowSelector parameter and the data source record with the passed value. * This method will apply requested update only if primary key is specified in the grid. - * @example - * ```typescript - * grid.updateRow({ - * ProductID: 1, ProductName: 'Spearmint', InStock: true, UnitsInStock: 1, OrderDate: new Date('2005-03-21') - * }, 1); - * ``` * @param value– * @param rowSelector correspond to rowID */ @@ -5081,10 +4330,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * If the primary key is not specified the row selector match the row data. - * @example - * ```typescript - * const data = grid.getRowData(94741); - * ``` * @param rowSelector correspond to rowID */ public getRowData(rowSelector: any): any { @@ -5101,10 +4346,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Sort the `IgxGridComponent`'s `IgxColumnComponent` based on the provided array of sorting expressions. - * @example - * ```typescript - * this.grid.sort({ fieldName: name, dir: SortingDirection.Asc, ignoreCase: false }); - * ``` */ public sort(expression: ISortingExpression | Array): void { const sortingState = cloneArray(this.sortingExpressions); @@ -5143,12 +4384,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Filters a single `IgxColumnComponent`. * - * @example - * ```typescript - * public filter(term) { - * this.grid.filter("ProductName", term, IgxStringFilteringOperand.instance().condition("contains")); - * } - * ``` * @param name * @param value * @param conditionOrExpressionTree @@ -5162,10 +4397,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Filters all the `IgxColumnComponent` in the `IgxGridComponent` with the same condition. * - * @example - * ```typescript - * grid.filterGlobal('some', IgxStringFilteringOperand.instance().condition('contains')); - * ``` * @param value * @param condition * @param ignoreCase @@ -5180,15 +4411,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * If you do not provide the customSummary, then the default summary for the column data type will be applied. - * @example - * ```typescript - * grid.enableSummaries([{ fieldName: 'ProductName' }, { fieldName: 'ID' }]); - * ``` - * Enable summaries for the listed columns. - * @example - * ```typescript - * grid.enableSummaries('ProductName'); - * ``` * @param rest */ public enableSummaries(...rest) { @@ -5202,16 +4424,8 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Disable summaries for the specified column. * - * @example - * ```typescript - * grid.disableSummaries('ProductName'); - * ``` * @remarks * Disable summaries for the listed columns. - * @example - * ```typescript - * grid.disableSummaries([{ fieldName: 'ProductName' }]); - * ``` */ public disableSummaries(...rest) { if (rest.length === 1 && Array.isArray(rest[0])) { @@ -5226,10 +4440,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Otherwise clears the filtering state of all `IgxColumnComponent`s. - * @example - * ```typescript - * this.grid.clearFilter(); - * ``` * @param name */ public clearFilter(name?: string) { @@ -5241,10 +4451,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * otherwise clears the sorting state of all `IgxColumnComponent`. - * @example - * ```typescript - * this.grid.clearSort(); - * ``` * @param name */ public clearSort(name?: string) { @@ -5276,10 +4482,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns whether the operation is successful. - * @example - * ```typescript - * this.grid.pinColumn("ID"); - * ``` * @param columnName * @param index * @param pinningPosition @@ -5292,10 +4494,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Unpins a column by field name. Returns whether the operation is successful. * - * @example - * ```typescript - * this.grid.pinColumn("ID"); - * ``` * @param columnName * @param index */ @@ -5310,10 +4508,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * ID is either the primaryKey value or the data record instance. - * @example - * ```typescript - * this.grid.pinRow(rowID); - * ``` * @param rowID The row id - primaryKey value or the data record instance. * @param index The index at which to insert the row in the pinned collection. */ @@ -5346,10 +4540,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * ID is either the primaryKey value or the data record instance. - * @example - * ```typescript - * this.grid.unpinRow(rowID); - * ``` * @param rowID The row id - primaryKey value or the data record instance. */ public unpinRow(rowID: any, row?: RowType): boolean { @@ -5393,10 +4583,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Should be run when changing DOM elements dimentions manually that affect the grid's size. - * @example - * ```typescript - * this.grid.reflow(); - * ``` */ public reflow() { this.calculateGridSizes(); @@ -5407,10 +4593,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns how many times the grid contains the string. - * @example - * ```typescript - * this.grid.findNext("financial"); - * ``` * @param text the string to search. * @param caseSensitive optionally, if the search should be case sensitive (defaults to false). * @param exactMatch optionally, if the text should match the entire value (defaults to false). @@ -5424,10 +4606,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns how many times the grid contains the string. - * @example - * ```typescript - * this.grid.findPrev("financial"); - * ``` * @param text the string to search. * @param caseSensitive optionally, if the search should be case sensitive (defaults to false). * @param exactMatch optionally, if the text should match the entire value (defaults to false). @@ -5441,10 +4619,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Returns how many times the grid contains the last search. - * @example - * ```typescript - * this.grid.refreshSearch(); - * ``` * @param updateActiveInfo */ public refreshSearch(updateActiveInfo?: boolean, endEdit = true): number { @@ -5476,11 +4650,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Removes all the highlights in the cell. - * - * @example - * ```typescript - * this.grid.clearSearch(); - * ``` */ public clearSearch() { this._lastSearchInfo = { @@ -5703,10 +4872,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets calculated width of the pinned areas. * - * @example - * ```typescript - * const pinnedWidth = this.grid.getPinnedStartWidth(); - * ``` * @param takeHidden If we should take into account the hidden columns in the pinned area. */ public getPinnedStartWidth(takeHidden = false) { @@ -5726,10 +4891,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Gets calculated width of the pinned areas. * - * @example - * ```typescript - * const pinnedWidth = this.grid.getPinnedEndWidth(); - * ``` * @param takeHidden If we should take into account the hidden columns in the pinned area. */ public getPinnedEndWidth(takeHidden = false) { @@ -5800,11 +4961,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Returns the currently transformed paged/filtered/sorted/grouped/pinned/unpinned row data, displayed in the grid. - * - * @example - * ```typescript - * const dataView = this.grid.dataView; - * ``` */ public get dataView() { return this._dataView; @@ -5830,10 +4986,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Select specified rows by ID. * - * @example - * ```typescript - * this.grid.selectRows([1,2,5], true); - * ``` * @param rowIDs * @param clearCurrentSelection if true clears the current selection */ @@ -5845,10 +4997,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Deselect specified rows by ID. * - * @example - * ```typescript - * this.grid.deselectRows([1,2,5]); - * ``` * @param rowIDs */ public deselectRows(rowIDs: any[]) { @@ -5862,11 +5010,6 @@ export abstract class IgxGridBaseDirective implements GridType, * @remarks * By default if filtering is in place, selectAllRows() and deselectAllRows() select/deselect all filtered rows. * If you set the parameter onlyFilterData to false that will select all rows in the grid exept deleted rows. - * @example - * ```typescript - * this.grid.selectAllRows(); - * this.grid.selectAllRows(false); - * ``` * @param onlyFilterData */ public selectAllRows(onlyFilterData = true) { @@ -5881,10 +5024,6 @@ export abstract class IgxGridBaseDirective implements GridType, * @remarks * By default if filtering is in place, selectAllRows() and deselectAllRows() select/deselect all filtered rows. * If you set the parameter onlyFilterData to false that will deselect all rows in the grid exept deleted rows. - * @example - * ```typescript - * this.grid.deselectAllRows(); - * ``` * @param onlyFilterData */ public deselectAllRows(onlyFilterData = true) { @@ -5898,10 +5037,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Deselect selected cells. - * @example - * ```typescript - * this.grid.clearCellSelection(); - * ``` */ public clearCellSelection(): void { this.selectionService.clear(true); @@ -5990,12 +5125,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Get current selected columns. - * - * @example - * Returns an array with selected columns - * ```typescript - * const selectedColumns = this.grid.selectedColumns(); - * ``` */ public selectedColumns(): ColumnType[] { const fields = this.selectionService.getSelectedColumns(); @@ -6005,10 +5134,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Select specified columns. * - * @example - * ```typescript - * this.grid.selectColumns(['ID','Name'], true); - * ``` * @param columns * @param clearCurrentSelection if true clears the current selection */ @@ -6034,10 +5159,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Deselect specified columns by field. * - * @example - * ```typescript - * this.grid.deselectColumns(['ID','Name']); - * ``` * @param columns */ public deselectColumns(columns: string[] | ColumnType[]) { @@ -6060,11 +5181,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Deselects all columns - * - * @example - * ```typescript - * this.grid.deselectAllColumns(); - * ``` */ public deselectAllColumns() { this.selectionService.clearAllSelectedColumns(); @@ -6073,11 +5189,6 @@ export abstract class IgxGridBaseDirective implements GridType, /** * Selects all columns - * - * @example - * ```typescript - * this.grid.deselectAllColumns(); - * ``` */ public selectAllColumns() { this.selectColumns(this._columns.filter(c => !c.columnGroup)); @@ -6216,10 +5327,6 @@ export abstract class IgxGridBaseDirective implements GridType, * @remarks * Also can execute a custom logic over the target element, * through a callback function that accepts { targetType: GridKeydownTargetType, target: Object } - * @example - * ```typescript - * this.grid.navigateTo(10, 3, (args) => { args.target.nativeElement.focus(); }); - * ``` */ public navigateTo(rowIndex: number, visibleColIndex = -1, cb: (args: any) => void = null) { const totalItems = (this as any).totalItemCount ?? this.dataView.length - 1; @@ -6264,10 +5371,6 @@ export abstract class IgxGridBaseDirective implements GridType, * @remarks * You can pass callback function as a third parameter of `getPreviousCell` method. * The callback function accepts IgxColumnComponent as a param - * @example - * ```typescript - * const nextEditableCellPosition = this.grid.getNextCell(0, 3, (column) => column.editable); - * ``` */ public getNextCell(currRowIndex: number, curVisibleColIndex: number, callback: (IgxColumnComponent) => boolean = null): ICellPosition { @@ -6300,10 +5403,6 @@ export abstract class IgxGridBaseDirective implements GridType, * @remarks * You can pass callback function as a third parameter of `getPreviousCell` method. * The callback function accepts IgxColumnComponent as a param - * @example - * ```typescript - * const previousEditableCellPosition = this.grid.getPreviousCell(0, 3, (column) => column.editable); - * ``` */ public getPreviousCell(currRowIndex: number, curVisibleColIndex: number, callback: (IgxColumnComponent) => boolean = null): ICellPosition { @@ -6522,10 +5621,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * If `commit === true`, passes them from the pending state to the data (or transaction service) - * @example - * ```html - * - * ``` * @param commit */ // TODO: Facade for crud service refactoring. To be removed @@ -6558,12 +5653,6 @@ export abstract class IgxGridBaseDirective implements GridType, * If null is passed as rowID, the row adding UI is spawned as the first record in the data view * @remarks * Spawning the UI to add a child for a record only works if you provide a rowID - * @example - * ```typescript - * this.grid.beginAddRowById('ALFKI'); - * this.grid.beginAddRowById('ALFKI', true); - * this.grid.beginAddRowById(null); - * ``` * @param rowID - The rowID to spawn the add row UI for, or null to spawn it as the first record in the data view * @param asChild - Whether the record should be added as a child. Only applicable to igxTreeGrid. */ @@ -6619,10 +5708,6 @@ export abstract class IgxGridBaseDirective implements GridType, * * @remarks * Accepted values for index are integers from 0 to this.grid.dataView.length - * @example - * ```typescript - * this.grid.beginAddRowByIndex(0); - * ``` * @param index - The index to spawn the UI at. Accepts integers from 0 to this.grid.dataView.length */ public beginAddRowByIndex(index: number): void { @@ -7915,7 +7000,6 @@ export abstract class IgxGridBaseDirective implements GridType, * If record is group rec, summary rec, child rec, ghost rec. etc. it is not editable. * * @param dataViewIndex The index of that record in the data view. - * */ // TODO: Consider moving it into CRUD private isEditableDataRecordAtIndex(dataViewIndex) { diff --git a/projects/igniteui-angular/grids/grid/src/grid.component.ts b/projects/igniteui-angular/grids/grid/src/grid.component.ts index 602070787a0..f64fe7f935c 100644 --- a/projects/igniteui-angular/grids/grid/src/grid.component.ts +++ b/projects/igniteui-angular/grids/grid/src/grid.component.ts @@ -88,21 +88,9 @@ export interface IGroupingDoneEventArgs extends IBaseEventArgs { /** * Grid provides a way to present and manipulate tabular data. * - * @igxModule IgxGridModule - * @igxGroup Grids & Lists - * @igxKeywords grid, table - * @igxTheme igx-grid-theme * @remarks * The Ignite UI Grid is used for presenting and manipulating tabular data in the simplest way possible. Once data * has been bound, it can be manipulated through filtering, sorting & editing operations. - * @example - * ```html - * - * - * - * - * - * ``` */ @Component({ changeDetection: ChangeDetectionStrategy.OnPush, @@ -169,33 +157,18 @@ export interface IGroupingDoneEventArgs extends IBaseEventArgs { export class IgxGridComponent extends IgxGridBaseDirective implements GridType, OnInit, DoCheck, AfterContentInit, AfterViewInit { /** * Emitted when a new chunk of data is loaded from virtualization. - * - * @example - * ```typescript - * - * ``` */ @Output() public dataPreLoad = new EventEmitter(); /** * Emitted when grouping is performed. - * - * @example - * ```html - * - * ``` */ @Output() public groupingExpressionsChange = new EventEmitter(); /** * Emitted when groups are expanded/collapsed. - * - * @example - * ```html - * - * ``` */ @Output() public groupingExpansionStateChange = new EventEmitter(); @@ -211,10 +184,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * Please note that `groupedColumns` and `ungroupedColumns` show only the **newly** changed columns (affected by the **last** * grouping/ungrouping operation), not all columns which are currently grouped/ungrouped. * columns. - * @example - * ```html - * - * ``` */ @Output() public groupingDone = new EventEmitter(); @@ -224,10 +193,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * * @remarks * The default rendered state is expanded. - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public groupsExpanded = true; @@ -237,14 +202,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * * @remarks * The grid needs to have at least one groupable column in order the GroupBy area to be displayed. - * @example - * ```html - * - * - * - * Custom drop area! - * - * ``` */ @Input() public dropAreaTemplate: TemplateRef; @@ -258,9 +215,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, /** * Returns a reference to the master-detail template. - * ```typescript - * let detailTemplate = this.grid.detailTemplate; - * ``` * * @memberof IgxColumnComponent */ @@ -270,19 +224,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, } /** * Sets the master-detail template. - * ```html - * - *
- *
City: {{dataItem.City}}
- *
Address: {{dataItem.Address}}
- *
- *
- * ``` - * ```typescript - * @ViewChild("'detailTemplate'", {read: TemplateRef }) - * public detailTemplate: TemplateRef; - * this.grid.detailTemplate = this.detailTemplate; - * ``` * * @memberof IgxColumnComponent */ @@ -301,10 +242,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * * @remarks * If not provided it will be automatically generated. - * @example - * ```html - * - * ``` */ @HostBinding('attr.id') @Input() @@ -344,11 +281,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, private _groupsRecords: IGroupByRecord[] = []; /** * Gets the hierarchical representation of the group by records. - * - * @example - * ```typescript - * let groupRecords = this.grid.groupsRecords; - * ``` */ public get groupsRecords(): IGroupByRecord[] { return this._groupsRecords; @@ -401,11 +333,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, /** * Gets/Sets the array of data that populates the component. - * - * @example - * ```html - * - * ``` */ /* treatAsRef */ @Input() @@ -442,11 +369,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * * @remarks * This property is required for remote grid virtualization to function when it is bound to remote data. - * @example - * ```typescript - * const itemCount = this.grid1.totalItemCount; - * this.grid1.totalItemCount = 55; - * ``` */ @Input() public set totalItemCount(count) { @@ -477,17 +399,8 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, /** * Gets/Sets the group by state. * - * @example - * ```typescript - * let groupByState = this.grid.groupingExpressions; - * this.grid.groupingExpressions = [...]; - * ``` * @remarks * Supports two-way data binding. - * @example - * ```html - * - * ``` */ @Input() public get groupingExpressions(): IGroupingExpression[] { @@ -540,10 +453,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * Includes only states that differ from the default one (controlled through groupsExpanded and states that the user has changed. * Contains the expansion state (expanded: boolean) and the unique identifier for the group row (Array). * Supports two-way data binding. - * @example - * ```html - * - * ``` */ @Input() public get groupingExpansionState() { @@ -565,10 +474,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * * @remarks * The default value is "false" - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public get hideGroupedColumns() { @@ -592,11 +497,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * Gets/Sets the grouping strategy of the grid. * * @remarks The default IgxGrouping extends from IgxSorting and a custom one can be used as a `sortStrategy` as well. - * - * @example - * ```html - * - * ``` */ @Input() public get groupStrategy(): IGridGroupingStrategy { @@ -612,12 +512,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * * @remarks * The grid needs to have at least one groupable column in order the GroupBy area to be displayed. - * @example - * ```html - * - * - * - * ``` */ @Input() public set dropAreaMessage(value: string) { @@ -653,16 +547,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, /** * Sets the group by row selector template. - * ```html - * - * {{ groupByRowContext.selectedCount }} / {{ groupByRowContext.totalCount }} - * - * ``` - * ```typescript - * @ViewChild("'template'", {read: TemplateRef }) - * public template: TemplateRef; - * this.grid.groupByRowSelectorTemplate = this.template; - * ``` */ public set groupByRowSelectorTemplate(template: TemplateRef) { this._groupByRowSelectorTemplate = template; @@ -723,12 +607,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, /** * Gets/Sets the template reference for the group row. - * - * @example - * ``` - * const groupRowTemplate = this.grid.groupRowTemplate; - * this.grid.groupRowTemplate = myRowTemplate; - * ``` */ @Input() public get groupRowTemplate(): TemplateRef { @@ -749,15 +627,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * @remarks * Also allows for multiple columns to be grouped at once if an array of `ISortingExpression` is passed. * The `groupingDone` event would get raised only **once** if this method gets called multiple times with the same arguments. - * @example - * ```typescript - * this.grid.groupBy({ fieldName: name, dir: SortingDirection.Asc, ignoreCase: false }); - * this.grid.groupBy([ - * { fieldName: name1, dir: SortingDirection.Asc, ignoreCase: false }, - * { fieldName: name2, dir: SortingDirection.Desc, ignoreCase: true }, - * { fieldName: name3, dir: SortingDirection.Desc, ignoreCase: false } - * ]); - * ``` */ public groupBy(expression: IGroupingExpression | Array): void { if (this.checkIfNoColumnField(expression)) { @@ -778,12 +647,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * @remarks * Clears all grouping in the grid, if no parameter is passed. * If a parameter is provided, clears grouping for a particular column or an array of columns. - * @example - * ```typescript - * this.grid.clearGrouping(); //clears all grouping - * this.grid.clearGrouping("ID"); //ungroups a single column - * this.grid.clearGrouping(["ID", "Column1", "Column2"]); //ungroups multiple columns - * ``` * @param name Name of column or array of column names to be ungrouped. */ public clearGrouping(name?: string | Array): void { @@ -797,11 +660,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * Returns if a group is expanded or not. * * @param group The group record. - * @example - * ```typescript - * public groupRow: IGroupByRecord; - * const expandedGroup = this.grid.isExpandedGroup(this.groupRow); - * ``` */ public override isExpandedGroup(group: IGroupByRecord): boolean { const state: IGroupByExpandState = this._getStateForGroupRow(group); @@ -812,11 +670,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * Toggles the expansion state of a group. * * @param groupRow The group record to toggle. - * @example - * ```typescript - * public groupRow: IGroupByRecord; - * const toggleExpGroup = this.grid.toggleGroup(this.groupRow); - * ``` */ public toggleGroup(groupRow: IGroupByRecord) { this._toggleGroup(groupRow); @@ -828,10 +681,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * * @param groupRow: The group record which rows would be selected. * @param clearCurrentSelection if true clears the current selection - * @example - * ```typescript - * this.grid.selectRowsInGroup(this.groupRow, true); - * ``` */ public selectRowsInGroup(groupRow: IGroupByRecord, clearPrevSelection?: boolean) { this._gridAPI.groupBy_select_all_rows_in_group(groupRow, clearPrevSelection); @@ -842,11 +691,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * Deselect all rows within a group. * * @param groupRow The group record which rows would be deselected. - * @example - * ```typescript - * public groupRow: IGroupByRecord; - * this.grid.deselectRowsInGroup(this.groupRow); - * ``` */ public deselectRowsInGroup(groupRow: IGroupByRecord) { this._gridAPI.groupBy_deselect_all_rows_in_group(groupRow); @@ -857,11 +701,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * Expands the specified group and all of its parent groups. * * @param groupRow The group record to fully expand. - * @example - * ```typescript - * public groupRow: IGroupByRecord; - * this.grid.fullyExpandGroup(this.groupRow); - * ``` */ public fullyExpandGroup(groupRow: IGroupByRecord) { this._fullyExpandGroup(groupRow); @@ -879,11 +718,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, /** * Toggles the expansion state of all group rows recursively. - * - * @example - * ```typescript - * this.grid.toggleAllGroupRows; - * ``` */ public toggleAllGroupRows() { this.groupingExpansionState = []; @@ -898,16 +732,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, /** * Returns whether the `IgxGridComponent` has group area. - * - * @example - * ```typescript - * let isGroupAreaVisible = this.grid.showGroupArea; - * ``` - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public get showGroupArea(): boolean { @@ -1128,10 +952,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, /** * Returns the `IgxGridRow` by index. * - * @example - * ```typescript - * const myRow = grid.getRowByIndex(1); - * ``` * @param index */ public getRowByIndex(index: number): RowType { @@ -1158,10 +978,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * * @remarks * Requires that the `primaryKey` property is set. - * @example - * ```typescript - * const myRow = this.grid1.getRowByKey("cell5"); - * ``` * @param keyValue */ public getRowByKey(key: any): RowType { @@ -1198,11 +1014,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, /** * Returns an array of the selected `IgxGridCell`s. - * - * @example - * ```typescript - * const selectedCells = this.grid.selectedCells; - * ``` */ public get selectedCells(): CellType[] { return this.dataRows().map((row) => row.cells.filter((cell) => cell.selected)) @@ -1212,10 +1023,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, /** * Returns a `CellType` object that matches the conditions. * - * @example - * ```typescript - * const myCell = this.grid1.getCellByColumn(2, "UnitPrice"); - * ``` * @param rowIndex * @param columnField */ @@ -1235,10 +1042,6 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType, * * @remarks * Requires that the primaryKey property is set. - * @example - * ```typescript - * grid.getCellByKey(1, 'index'); - * ``` * @param rowSelector match any rowID * @param columnField */ diff --git a/projects/igniteui-angular/grids/grid/src/groupby-row.component.ts b/projects/igniteui-angular/grids/grid/src/groupby-row.component.ts index f50229f4591..4dee1cc50c8 100644 --- a/projects/igniteui-angular/grids/grid/src/groupby-row.component.ts +++ b/projects/igniteui-angular/grids/grid/src/groupby-row.component.ts @@ -66,36 +66,24 @@ export class IgxGridGroupByRowComponent implements OnDestroy { /** * Sets the index of the row. - * ```html - * - * ``` */ @Input() public index: number; /** * Sets the id of the grid the row belongs to. - * ```html - * - * ``` */ @Input() public gridID: string; /** * The group record the component renders for. - * ```typescript - * - * ``` */ @Input() public groupRow: IGroupByRecord; /** * Returns a reference of the content of the group. - * ```typescript - * const groupRowContent = this.grid1.rowList.first.groupContent; - * ``` */ @ViewChild('groupContent', { static: true }) public groupContent: ElementRef; @@ -135,9 +123,6 @@ export class IgxGridGroupByRowComponent implements OnDestroy { /** * Returns whether the row is focused. - * ``` - * let gridRowFocused = this.grid1.rowList.first.focused; - * ``` */ public get focused(): boolean { return this.isActive(); @@ -179,9 +164,6 @@ export class IgxGridGroupByRowComponent implements OnDestroy { /** * Returns whether the group row is expanded. - * ```typescript - * const groupRowExpanded = this.grid1.rowList.first.expanded; - * ``` */ @HostBinding('attr.aria-expanded') public get expanded(): boolean { @@ -204,9 +186,6 @@ export class IgxGridGroupByRowComponent implements OnDestroy { /** * Returns a reference to the underlying HTML element. - * ```typescript - * const groupRowElement = this.nativeElement; - * ``` */ public get nativeElement(): any { return this.element.nativeElement; @@ -219,9 +198,6 @@ export class IgxGridGroupByRowComponent implements OnDestroy { /** * Returns the style classes applied to the group rows. - * ```typescript - * const groupCssStyles = this.grid1.rowList.first.styleClasses; - * ``` */ @HostBinding('class') public get styleClasses(): string { @@ -257,9 +233,6 @@ export class IgxGridGroupByRowComponent implements OnDestroy { /** * Toggles the group row. - * ```typescript - * this.grid1.rowList.first.toggle() - * ``` */ public toggle() { this.grid.toggleGroup(this.groupRow); diff --git a/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid-base.directive.ts b/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid-base.directive.ts index 5acc69f1fa6..10e395e91e3 100644 --- a/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid-base.directive.ts +++ b/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid-base.directive.ts @@ -40,12 +40,6 @@ export abstract class IgxHierarchicalGridBaseDirective extends IgxGridBaseDirect public override navigation = inject(IgxHierarchicalGridNavigationService); /** * Gets/Sets the key indicating whether a row has children. If row has no children it does not render an expand indicator. - * - * @example - * ```html - * - * - * ``` */ @Input() public hasChildrenKey: string; @@ -55,23 +49,12 @@ export abstract class IgxHierarchicalGridBaseDirective extends IgxGridBaseDirect * * @remarks * The default value is false. - * @example - * ```html - * - * - * ``` */ @Input({ transform: booleanAttribute }) public showExpandAll = false; /** * Emitted when a new chunk of data is loaded from virtualization. - * - * @example - * ```typescript - * - * - * ``` */ @Output() public dataPreLoad = new EventEmitter(); diff --git a/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.component.ts b/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.component.ts index ba34f9ad9de..ffa6b6fe563 100644 --- a/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.component.ts +++ b/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.component.ts @@ -75,11 +75,6 @@ export class IgxChildGridRowComponent implements AfterViewInit, OnInit { /** * The data passed to the row component. - * - * ```typescript - * // get the row data for the first selected row - * let selectedRowData = this.grid.selectedRows[0].data; - * ``` */ @Input() public get data(): any { @@ -95,11 +90,6 @@ export class IgxChildGridRowComponent implements AfterViewInit, OnInit { /** * The index of the row. - * - * ```typescript - * // get the index of the second selected row - * let selectedRowIndex = this.grid.selectedRows[1].index; - * ``` */ @Input() public index: number; @@ -116,20 +106,6 @@ export class IgxChildGridRowComponent implements AfterViewInit, OnInit { /* blazorSuppress */ /** * Get a reference to the grid that contains the selected row. - * - * ```typescript - * handleRowSelection(event) { - * // the grid on which the rowSelected event was triggered - * const grid = event.row.grid; - * } - * ``` - * - * ```html - * - * - * ``` */ // TODO: Refactor public get parentGrid(): IgxHierarchicalGridComponent { @@ -143,11 +119,6 @@ export class IgxChildGridRowComponent implements AfterViewInit, OnInit { /** * The native DOM element representing the row. Could be null in certain environments. - * - * ```typescript - * // get the nativeElement of the second selected row - * let selectedRowNativeElement = this.grid.selectedRows[1].nativeElement; - * ``` */ public get nativeElement() { return this.element.nativeElement; @@ -155,9 +126,6 @@ export class IgxChildGridRowComponent implements AfterViewInit, OnInit { /** * Returns whether the row is expanded. - * ```typescript - * const RowExpanded = this.grid1.rowList.first.expanded; - * ``` */ public expanded = false; @@ -265,9 +233,6 @@ export class IgxChildGridRowComponent implements AfterViewInit, OnInit { /* blazorIndirectRender */ /** * Hierarchical grid - * - * @igxModule IgxHierarchicalGridModule - * */ @Component({ changeDetection: ChangeDetectionStrategy.OnPush, @@ -445,10 +410,6 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti * * @remarks * If not provided it will be automatically generated. - * @example - * ```html - * - * ``` */ @HostBinding('attr.id') @Input() @@ -462,9 +423,6 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti /* treatAsRef */ /** * Gets/Sets the array of data that populates the component. - * ```html - * - * ``` * * @memberof IgxHierarchicalGridComponent */ @@ -477,9 +435,6 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti /** * Returns an array of data set to the `IgxHierarchicalGridComponent`. - * ```typescript - * let filteredData = this.grid.filteredData; - * ``` * * @memberof IgxHierarchicalGridComponent */ @@ -506,11 +461,6 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti * * @remarks * This property is required for remote grid virtualization to function when it is bound to remote data. - * @example - * ```typescript - * const itemCount = this.grid1.totalItemCount; - * this.grid1.totalItemCount = 55; - * ``` */ @Input() public set totalItemCount(count) { @@ -524,9 +474,6 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti /** * Sets if all immediate children of the `IgxHierarchicalGridComponent` should be expanded/collapsed. * Default value is false. - * ```html - * - * ``` * * @memberof IgxHierarchicalGridComponent */ @@ -539,9 +486,6 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti /** * Gets if all immediate children of the `IgxHierarchicalGridComponent` previously have been set to be expanded/collapsed. * If previously set and some rows have been manually expanded/collapsed it will still return the last set value. - * ```typescript - * const expanded = this.grid.expandChildren; - * ``` * * @memberof IgxHierarchicalGridComponent */ @@ -557,11 +501,6 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti * @param {EntityType[]} entities - An array of EntityType objects representing the grid's schema. * @remarks * This property is required in remote data filtering scenarios. - * @example - * ```typescript - * const schema = this.grid.schema; - * this.grid.schema = [{ name: 'Products', fields: [...], childEntities: [...] }]; - * ``` */ @Input() public set schema(entities: EntityType[]) { @@ -601,9 +540,6 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti /** * Gets the unique identifier of the parent row. It may be a `string` or `number` if `primaryKey` of the * parent grid is set or an object reference of the parent record otherwise. - * ```typescript - * const foreignKey = this.grid.foreignKey; - * ``` * * @memberof IgxHierarchicalGridComponent */ @@ -746,10 +682,6 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti /** * Returns the `RowType` by index. * - * @example - * ```typescript - * const myRow = this.grid1.getRowByIndex(1); - * ``` * @param index */ public getRowByIndex(index: number): RowType { @@ -762,10 +694,6 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti /** * Returns the `RowType` by key. * - * @example - * ```typescript - * const myRow = this.grid1.getRowByKey(1); - * ``` * @param key */ public getRowByKey(key: any): RowType { @@ -799,11 +727,6 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti /** * Returns an array of the selected `IgxGridCell`s. - * - * @example - * ```typescript - * const selectedCells = this.grid.selectedCells; - * ``` */ public get selectedCells(): CellType[] { return this.dataRows().map((row) => row.cells.filter((cell) => cell.selected)) @@ -813,10 +736,6 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti /** * Returns a `CellType` object that matches the conditions. * - * @example - * ```typescript - * const myCell = this.grid1.getCellByColumn(2, "UnitPrice"); - * ``` * @param rowIndex * @param columnField */ @@ -833,10 +752,6 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti * * @remarks * Requires that the primaryKey property is set. - * @example - * ```typescript - * grid.getCellByKey(1, 'index'); - * ``` * @param rowSelector match any rowID * @param columnField */ diff --git a/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-row.component.ts b/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-row.component.ts index a5d9985ff3e..0970e742adb 100644 --- a/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-row.component.ts +++ b/projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-row.component.ts @@ -70,9 +70,6 @@ export class IgxHierarchicalRowComponent extends IgxRowDirective { /** * Returns whether the row is expanded. - * ```typescript - * const RowExpanded = this.grid1.rowList.first.expanded; - * ``` */ public override get expanded() { return this.grid.gridAPI.get_row_expansion_state(this.data); @@ -108,9 +105,6 @@ export class IgxHierarchicalRowComponent extends IgxRowDirective { /** * Toggles the hierarchical row. - * ```typescript - * this.grid1.rowList.first.toggle() - * ``` */ public toggle() { if (this.added) { diff --git a/projects/igniteui-angular/grids/hierarchical-grid/src/row-island.component.ts b/projects/igniteui-angular/grids/hierarchical-grid/src/row-island.component.ts index 9f605bf95f1..68feb3f008e 100644 --- a/projects/igniteui-angular/grids/hierarchical-grid/src/row-island.component.ts +++ b/projects/igniteui-angular/grids/hierarchical-grid/src/row-island.component.ts @@ -48,10 +48,6 @@ import { IForOfState } from 'igniteui-angular/directives'; /* contentParent: HierarchicalGrid */ /** * Row island - * - * @igxModule IgxHierarchicalGridModule - * @igxParent IgxHierarchicalGridComponent, IgxRowIslandComponent - * */ @Component({ changeDetection: ChangeDetectionStrategy.OnPush, @@ -76,13 +72,6 @@ export class IgxRowIslandComponent extends IgxHierarchicalGridBaseDirective /* blazorSuppress */ /** * Sets the key of the row island by which child data would be taken from the row data if such is provided. - * ```html - * - * - * - * - * - * ``` * * @memberof IgxRowIslandComponent */ @@ -193,13 +182,6 @@ export class IgxRowIslandComponent extends IgxHierarchicalGridBaseDirective /** * Event emitted when a grid is being created based on this row island. - * ```html - * - * - * - * - * - * ``` * * @memberof IgxRowIslandComponent */ @@ -209,13 +191,6 @@ export class IgxRowIslandComponent extends IgxHierarchicalGridBaseDirective /** * Emitted after a grid is being initialized for this row island. * The emitting is done in `ngAfterViewInit`. - * ```html - * - * - * - * - * - * ``` * * @memberof IgxRowIslandComponent */ @@ -320,13 +295,6 @@ export class IgxRowIslandComponent extends IgxHierarchicalGridBaseDirective /** * Sets if all immediate children of the grids for this `IgxRowIslandComponent` should be expanded/collapsed. - * ```html - * - * - * - * - * - * ``` * * @memberof IgxRowIslandComponent */ @@ -347,9 +315,6 @@ export class IgxRowIslandComponent extends IgxHierarchicalGridBaseDirective /** * Gets if all immediate children of the grids for this `IgxRowIslandComponent` have been set to be expanded/collapsed. - * ```typescript - * const expanded = this.rowIsland.expandChildren; - * ``` * * @memberof IgxRowIslandComponent */ diff --git a/projects/igniteui-angular/grids/lite/src/grid-lite-column.component.ts b/projects/igniteui-angular/grids/lite/src/grid-lite-column.component.ts index 4af3a883104..f66d5e0c04e 100644 --- a/projects/igniteui-angular/grids/lite/src/grid-lite-column.component.ts +++ b/projects/igniteui-angular/grids/lite/src/grid-lite-column.component.ts @@ -10,13 +10,6 @@ export type IgxGridLiteColumnSortConfiguration = ColumnS /** * Directive providing type information for header template contexts. * Use this directive on ng-template elements that render header templates. - * - * @example - * ```html - * - *
{{column.header}}
- *
- * ``` */ @Directive({ selector: '[igxGridLiteHeader]' }) export class IgxGridLiteHeaderTemplateDirective { @@ -30,13 +23,6 @@ export class IgxGridLiteHeaderTemplateDirective { /** * Directive providing type information for cell template contexts. * Use this directive on ng-template elements that render cell templates. - * - * @example - * ```html - * - *
{{value}}
- *
- * ``` */ @Directive({ selector: '[igxGridLiteCell]' }) export class IgxGridLiteCellTemplateDirective { diff --git a/projects/igniteui-angular/grids/pivot-grid/src/pivot-data-selector.component.ts b/projects/igniteui-angular/grids/pivot-grid/src/pivot-data-selector.component.ts index a8a6307ea64..bdb19e15cc6 100644 --- a/projects/igniteui-angular/grids/pivot-grid/src/pivot-data-selector.component.ts +++ b/projects/igniteui-angular/grids/pivot-grid/src/pivot-data-selector.component.ts @@ -33,20 +33,10 @@ interface IDataSelectorPanel { /** * Pivot Data Selector provides means to configure the pivot state of the Pivot Grid via a vertical panel UI * - * @igxModule IgxPivotGridModule - * @igxGroup Grids & Lists - * @igxKeywords data selector, pivot, grid - * @igxTheme pivot-data-selector-theme * @remarks * The Ignite UI Data Selector has a searchable list with the grid data columns, * there are also four expandable areas underneath for filters, rows, columns, and values * is used for grouping and aggregating simple flat data into a pivot table. - * @example - * ```html - * - * - * - * ``` */ @Component({ selector: "igx-pivot-data-selector", @@ -61,30 +51,15 @@ export class IgxPivotDataSelectorComponent { /** * Gets/sets whether the columns panel is expanded * Get - * ```typescript - * const columnsPanelState: boolean = this.dataSelector.columnsExpanded; - * ``` * Set - * ```html - * - * ``` * * Two-way data binding: - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public columnsExpanded = true; /** * Emitted when the columns panel is expanded or collapsed. - * - * @example - * ```html - * - * ``` */ @Output() public columnsExpandedChange = new EventEmitter(); @@ -92,30 +67,15 @@ export class IgxPivotDataSelectorComponent { /** * Gets/sets whether the rows panel is expanded * Get - * ```typescript - * const rowsPanelState: boolean = this.dataSelector.rowsExpanded; - * ``` * Set - * ```html - * - * ``` * * Two-way data binding: - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public rowsExpanded = true; /** * Emitted when the rows panel is expanded or collapsed. - * - * @example - * ```html - * - * ``` */ @Output() public rowsExpandedChange = new EventEmitter(); @@ -123,30 +83,15 @@ export class IgxPivotDataSelectorComponent { /** * Gets/sets whether the filters panel is expanded * Get - * ```typescript - * const filtersPanelState: boolean = this.dataSelector.filtersExpanded; - * ``` * Set - * ```html - * - * ``` * * Two-way data binding: - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public filtersExpanded = true; /** * Emitted when the filters panel is expanded or collapsed. - * - * @example - * ```html - * - * ``` */ @Output() public filtersExpandedChange = new EventEmitter(); @@ -154,30 +99,15 @@ export class IgxPivotDataSelectorComponent { /** * Gets/sets whether the values panel is expanded * Get - * ```typescript - * const valuesPanelState: boolean = this.dataSelector.valuesExpanded; - * ``` * Set - * ```html - * - * ``` * * Two-way data binding: - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public valuesExpanded = true; /** * Emitted when the values panel is expanded or collapsed. - * - * @example - * ```html - * - * ``` */ @Output() public valuesExpandedChange = new EventEmitter(); diff --git a/projects/igniteui-angular/grids/pivot-grid/src/pivot-grid-row.ts b/projects/igniteui-angular/grids/pivot-grid/src/pivot-grid-row.ts index d71208f3547..6e94907aae3 100644 --- a/projects/igniteui-angular/grids/pivot-grid/src/pivot-grid-row.ts +++ b/projects/igniteui-angular/grids/pivot-grid/src/pivot-grid-row.ts @@ -38,10 +38,6 @@ export class IgxPivotGridRow implements RowType { * A row in the grid is identified either by: * - primaryKey data value, * - the whole rowData, if the primaryKey is omitted. - * - * ```typescript - * let rowKey = row.key; - * ``` */ public get key(): any { const dimension = this.grid.visibleRowDimensions[this.grid.visibleRowDimensions.length - 1]; @@ -52,9 +48,6 @@ export class IgxPivotGridRow implements RowType { /** * Gets whether the row is selected. * Default value is `false`. - * ```typescript - * row.selected = true; - * ``` */ public get selected(): boolean { return this.grid.selectionService.isRowSelected(this.key); diff --git a/projects/igniteui-angular/grids/pivot-grid/src/pivot-grid.component.ts b/projects/igniteui-angular/grids/pivot-grid/src/pivot-grid.component.ts index afc3939de51..4764b2e850a 100644 --- a/projects/igniteui-angular/grids/pivot-grid/src/pivot-grid.component.ts +++ b/projects/igniteui-angular/grids/pivot-grid/src/pivot-grid.component.ts @@ -80,18 +80,9 @@ const MINIMUM_COLUMN_WIDTH_SUPER_COMPACT = 104; /** * Pivot Grid provides a way to present and manipulate data in a pivot table view. * - * @igxModule IgxPivotGridModule - * @igxGroup Grids & Lists - * @igxKeywords pivot, grid, table - * @igxTheme igx-grid-theme * @remarks * The Ignite UI Pivot Grid is used for grouping and aggregating simple flat data into a pivot table. Once data * has been bound and the dimensions and values configured it can be manipulated via sorting and filtering. - * @example - * ```html - * - * - * ``` */ @Component({ changeDetection: ChangeDetectionStrategy.OnPush, @@ -164,23 +155,12 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni * * @remarks * Returns the new dimension collection and its type: - * @example - * ```html - *
- * ``` */ @Output() public dimensionsChange = new EventEmitter(); /** * Emitted when any of the pivotConfiguration properties is changed via the grid chip area. - * - * @example - * ```html - *
- * ``` */ @Output() public pivotConfigurationChange = new EventEmitter(); @@ -190,11 +170,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni * Emitted when the dimension is initialized. * @remarks * Emits the dimension that is about to be initialized. - * @example - * ```html - * - * ``` */ @Output() public dimensionInit = new EventEmitter(); @@ -203,11 +178,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni * Emitted when the value is initialized. * @remarks * Emits the value that is about to be initialized. - * @example - * ```html - * - * ``` */ @Output() public valueInit = new EventEmitter(); @@ -215,12 +185,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni /** * Emitted when a dimension is sorted. - * - * @example - * ```html - * - * ``` */ @Output() public dimensionsSortingExpressionsChange = new EventEmitter(); @@ -230,11 +194,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni * * @remarks * Returns the new dimension - * @example - * ```html - *
- * ``` */ @Output() public valuesChange = new EventEmitter(); @@ -242,11 +201,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni /** * Gets the sorting expressions generated for the dimensions. - * - * @example - * ```typescript - * const expressions = this.grid.dimensionsSortingExpressions; - * ``` */ public get dimensionsSortingExpressions() { const allEnabledDimensions = this.rowDimensions.concat(this.columnDimensions); @@ -272,11 +226,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni /** * Gets/Sets a custom template for the value chips. - * - * @example - * ```html - * - * ``` */ @Input() public valueChipTemplate: TemplateRef; @@ -288,11 +237,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni /* @tsTwoWayProperty (true, "PivotConfigurationChange", "Detail.PivotConfiguration", false) */ /** * Gets/Sets the pivot configuration with all related dimensions and values. - * - * @example - * ```html - * - * ``` */ @Input() public set pivotConfiguration(value: IPivotConfiguration) { @@ -315,10 +259,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni * * @remarks * The default value is false. When set to true, it will override all dimensions and values in the pivotConfiguration. - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public autoGenerateConfig = false; @@ -328,10 +268,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni * Gets/Sets the pivot ui settings for the pivot grid - chips and their * corresponding containers for row, filter, column dimensions and values * as well as headers for the row dimensions values. - * @example - * ```html - * - * ``` */ public set pivotUI(value: IPivotUISettings) { this._pivotUI = Object.assign(this._pivotUI, value || {}); @@ -353,10 +289,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni * Enables a super compact theme for the component. * @remarks * Overrides the grid size option if one is set. - * @example - * ```html - * - * ``` */ @HostBinding('class.igx-grid__pivot--super-compact') @Input() @@ -380,10 +312,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni /** * Gets/Sets the values clone strategy of the pivot grid when assigning them to different dimensions. * - * @example - * ```html - * - * ``` * @hidden @internal */ @Input() @@ -1040,11 +968,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni /** * Gets the full list of dimensions. - * - * @example - * ```typescript - * const dimensions = this.grid.allDimensions; - * ``` */ public get allDimensions() { const config = this._pivotConfiguration; @@ -1102,10 +1025,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni * * @remarks * If not provided it will be automatically generated. - * @example - * ```html - * - * ``` */ @HostBinding('attr.id') @Input() @@ -1121,9 +1040,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni /* blazorAlternateType: object */ /** * Gets/Sets the array of data that populates the component. - * ```html - * - * ``` */ @Input() public set data(value: any[] | null) { @@ -1146,9 +1062,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni /* blazorAlternateType: object */ /** * Returns an array of data set to the component. - * ```typescript - * let data = this.grid.data; - * ``` */ public get data(): any[] | null { return this._data; @@ -1586,10 +1499,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni * * @remarks * Only sizes based on the dimension cells in view. - * @example - * ```typescript - * this.grid.autoSizeRowDimension(dimension); - * ``` * @param dimension The row dimension to size. */ public autoSizeRowDimension(dimension: IPivotDimension) { @@ -1616,10 +1525,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni /** * Inserts dimension in target collection by type at specified index or at the collection's end. * - * @example - * ```typescript - * this.grid.insertDimensionAt(dimension, PivotDimensionType.Row, 1); - * ``` * @param dimension The dimension that will be added. * @param targetCollectionType The target collection type to add to. Can be Row, Column or Filter. * @param index The index in the collection at which to add. @@ -1647,10 +1552,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni /** * Move dimension from its currently collection to the specified target collection by type at specified index or at the collection's end. * - * @example - * ```typescript - * this.grid.moveDimension(dimension, PivotDimensionType.Row, 1); - * ``` * @param dimension The dimension that will be moved. * @param targetCollectionType The target collection type to move it to. Can be Row, Column or Filter. * @param index The index in the collection at which to add. @@ -1674,10 +1575,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni * @remarks * This is different than toggleDimension that enabled/disables the dimension. * This completely removes the specified dimension from the collection. - * @example - * ```typescript - * this.grid.removeDimension(dimension); - * ``` * @param dimension The dimension to be removed. */ public removeDimension(dimension: IPivotDimension) { @@ -1697,10 +1594,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni * Toggles the dimension's enabled state on or off. * @remarks * The dimension remains in its current collection. This just changes its enabled state. - * @example - * ```typescript - * this.grid.toggleDimension(dimension); - * ``` * @param dimension The dimension to be toggled. */ public toggleDimension(dimension: IPivotDimension) { @@ -1726,10 +1619,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni /** * Inserts value at specified index or at the end. * - * @example - * ```typescript - * this.grid.insertValueAt(value, 1); - * ``` * @param value The value definition that will be added. * @param index The index in the collection at which to add. * This parameter is optional. If not set it will add it to the end of the collection. @@ -1754,10 +1643,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni /** * Move value from its currently at specified index or at the end. * - * @example - * ```typescript - * this.grid.moveValue(value, 1); - * ``` * @param value The value that will be moved. * @param index The index in the collection at which to add. * This parameter is optional. If not set it will add it to the end of the collection. @@ -1775,10 +1660,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni * @remarks * This is different than toggleValue that enabled/disables the value. * This completely removes the specified value from the collection. - * @example - * ```typescript - * this.grid.removeValue(dimension); - * ``` * @param value The value to be removed. */ public removeValue(value: IPivotValue,) { @@ -1797,10 +1678,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni * Toggles the value's enabled state on or off. * @remarks * The value remains in its current collection. This just changes its enabled state. - * @example - * ```typescript - * this.grid.toggleValue(value); - * ``` * @param value The value to be toggled. */ public toggleValue(value: IPivotValue) { @@ -1815,10 +1692,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni /** * Sort the dimension and its children in the provided direction. - * @example - * ```typescript - * this.grid.sortDimension(dimension, SortingDirection.Asc); - * ``` * @param value The value to be toggled. */ public sortDimension(dimension: IPivotDimension, sortDirection: SortingDirection) { @@ -1844,16 +1717,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni /** * Filters a single `IPivotDimension`. - * - * @example - * ```typescript - * public filter() { - * const set = new Set(); - * set.add('Value 1'); - * set.add('Value 2'); - * this.grid1.filterDimension(this.pivotConfigHierarchy.rows[0], set, IgxStringFilteringOperand.instance().condition('in')); - * } - * ``` */ public filterDimension(dimension: IPivotDimension, value: any, conditionOrExpressionTree?: IFilteringOperation | IFilteringExpressionsTree) { this.filteringService.filter(dimension.memberName, value, conditionOrExpressionTree); @@ -2428,11 +2291,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni /** * Gets/Sets a custom template when pivot grid is empty. - * - * @example - * ```html - * - * ``` */ @Input() public emptyPivotGridTemplate: TemplateRef; diff --git a/projects/igniteui-angular/grids/pivot-grid/src/pivot-row.component.ts b/projects/igniteui-angular/grids/pivot-grid/src/pivot-row.component.ts index 722f0fddc68..485cbe60a30 100644 --- a/projects/igniteui-angular/grids/pivot-grid/src/pivot-row.component.ts +++ b/projects/igniteui-angular/grids/pivot-grid/src/pivot-row.component.ts @@ -130,11 +130,6 @@ export class IgxPivotRowComponent extends IgxRowDirective { /** * The pivot record data passed to the row component. - * - * ```typescript - * // get the pivot row data for the first selected row - * let selectedRowData = this.grid.selectedRows[0].data; - * ``` */ @Input() public override get data(): IPivotGridRecord { diff --git a/projects/igniteui-angular/grids/tree-grid/src/tree-cell.component.ts b/projects/igniteui-angular/grids/tree-grid/src/tree-cell.component.ts index a704712b7a7..78d66c22f03 100644 --- a/projects/igniteui-angular/grids/tree-grid/src/tree-cell.component.ts +++ b/projects/igniteui-angular/grids/tree-grid/src/tree-cell.component.ts @@ -77,9 +77,6 @@ export class IgxTreeGridCellComponent extends IgxGridExpandableCellComponent { /** * Gets the row of the cell. - * ```typescript - * let cellRow = this.cell.row; - * ``` * * @memberof IgxGridCellComponent */ diff --git a/projects/igniteui-angular/grids/tree-grid/src/tree-grid-row.component.ts b/projects/igniteui-angular/grids/tree-grid/src/tree-grid-row.component.ts index 1a6a79bc33f..c91f0708d4e 100644 --- a/projects/igniteui-angular/grids/tree-grid/src/tree-grid-row.component.ts +++ b/projects/igniteui-angular/grids/tree-grid/src/tree-grid-row.component.ts @@ -29,11 +29,6 @@ export class IgxTreeGridRowComponent extends IgxRowDirective implements DoCheck /** * The `ITreeGridRecord` passed to the row component. - * - * ```typescript - * const row = this.grid.getRowByKey(1) as IgxTreeGridRowComponent; - * const treeRow = row.treeRow; - * ``` */ @Input() public get treeRow(): ITreeGridRecord { @@ -50,9 +45,6 @@ export class IgxTreeGridRowComponent extends IgxRowDirective implements DoCheck /** * Sets whether the row is pinned. * Default value is `false`. - * ```typescript - * this.grid.selectedRows[0].pinned = true; - * ``` */ public override set pinned(value: boolean) { if (value) { @@ -64,9 +56,6 @@ export class IgxTreeGridRowComponent extends IgxRowDirective implements DoCheck /** * Gets whether the row is pinned. - * ```typescript - * let isPinned = row.pinned; - * ``` */ public override get pinned() { return this.grid.isRecordPinned(this._treeRow); @@ -93,11 +82,6 @@ export class IgxTreeGridRowComponent extends IgxRowDirective implements DoCheck /** * Returns a value indicating whether the row component is expanded. - * - * ```typescript - * const row = this.grid.getRowByKey(1) as IgxTreeGridRowComponent; - * const expanded = row.expanded; - * ``` */ @HostBinding('attr.aria-expanded') public override get expanded(): boolean { @@ -106,11 +90,6 @@ export class IgxTreeGridRowComponent extends IgxRowDirective implements DoCheck /** * Sets a value indicating whether the row component is expanded. - * - * ```typescript - * const row = this.grid.getRowByKey(1) as IgxTreeGridRowComponent; - * row.expanded = true; - * ``` */ public override set expanded(value: boolean) { this.grid.gridAPI.set_row_expansion_state(this._treeRow.key, value); @@ -155,11 +134,6 @@ export class IgxTreeGridRowComponent extends IgxRowDirective implements DoCheck /** * Spawns the add child row UI for the specific row. * - * @example - * ```typescript - * const row = this.grid.getRowByKey(1) as IgxTreeGridRowComponent; - * row.beginAddChild(); - * ``` * @param rowID */ public beginAddChild() { diff --git a/projects/igniteui-angular/grids/tree-grid/src/tree-grid.component.ts b/projects/igniteui-angular/grids/tree-grid/src/tree-grid.component.ts index 111e589abb0..9ece6ad7b17 100644 --- a/projects/igniteui-angular/grids/tree-grid/src/tree-grid.component.ts +++ b/projects/igniteui-angular/grids/tree-grid/src/tree-grid.component.ts @@ -77,13 +77,6 @@ let NEXT_ID = 0; * provides features such as sorting, filtering, editing, column pinning, paging, column moving and hiding. * * Example: - * ```html - * - * - * - * - * - * ``` */ @Component({ changeDetection: ChangeDetectionStrategy.OnPush, @@ -150,9 +143,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /** * Sets the child data key of the `IgxTreeGridComponent`. - * ```html - * - * ``` * * @memberof IgxTreeGridComponent */ @@ -161,10 +151,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /** * Sets the foreign key of the `IgxTreeGridComponent`. - * ```html - * - * - * ``` * * @memberof IgxTreeGridComponent */ @@ -174,12 +160,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /** * Sets the key indicating whether a row has children. * This property is only used for load on demand scenarios. - * ```html - * - * - * ``` * * @memberof IgxTreeGridComponent */ @@ -189,10 +169,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /** * Sets whether child records should be deleted when their parent gets deleted. * By default it is set to true and deletes all children along with the parent. - * ```html - * - * - * ``` * * @memberof IgxTreeGridComponent */ @@ -202,15 +178,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /* csSuppress */ /** * Sets a callback for loading child rows on demand. - * ```html - * - * - * ``` - * ```typescript - * public loadChildren = (parentID: any, done: (children: any[]) => void) => { - * this.dataService.getData(parentID, children => done(children)); - * } - * ``` * * @memberof IgxTreeGridComponent */ @@ -225,9 +192,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /** * Sets the value of the `id` attribute. If not provided it will be automatically generated. - * ```html - * - * ``` * * @memberof IgxTreeGridComponent */ @@ -272,10 +236,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /** * Returns an array of the root level `ITreeGridRecord`s. - * ```typescript - * // gets the root record with index=2 - * const states = this.grid.rootRecords[2]; - * ``` * * @memberof IgxTreeGridComponent */ @@ -284,10 +244,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /* blazorSuppress */ /** * Returns a map of all `ITreeGridRecord`s. - * ```typescript - * // gets the record with primaryKey=2 - * const states = this.grid.records.get(2); - * ``` * * @memberof IgxTreeGridComponent */ @@ -295,10 +251,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /** * Returns an array of processed (filtered and sorted) root `ITreeGridRecord`s. - * ```typescript - * // gets the processed root record with index=2 - * const states = this.grid.processedRootRecords[2]; - * ``` * * @memberof IgxTreeGridComponent */ @@ -307,10 +259,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /* blazorSuppress */ /** * Returns a map of all processed (filtered and sorted) `ITreeGridRecord`s. - * ```typescript - * // gets the processed record with primaryKey=2 - * const states = this.grid.processedRecords.get(2); - * ``` * * @memberof IgxTreeGridComponent */ @@ -331,9 +279,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /* treatAsRef */ /** * Gets/Sets the array of data that populates the component. - * ```html - * - * ``` * * @memberof IgxTreeGridComponent */ @@ -377,9 +322,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /** * Sets the count of levels to be expanded in the `IgxTreeGridComponent`. By default it is * set to `Infinity` which means all levels would be expanded. - * ```html - * - * ``` * * @memberof IgxTreeGridComponent */ @@ -395,16 +337,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /** * Template for the row loading indicator when load on demand is enabled. - * ```html - * - * loop - * - * - * - * - * ``` * * @memberof IgxTreeGridComponent */ @@ -524,9 +456,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /** * Expands all rows. - * ```typescript - * this.grid.expandAll(); - * ``` * * @memberof IgxTreeGridComponent */ @@ -538,10 +467,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /** * Collapses all rows. * - * ```typescript - * this.grid.collapseAll(); - * ``` - * * @memberof IgxTreeGridComponent */ public override collapseAll() { @@ -567,13 +492,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy * Creates a new `IgxTreeGridRowComponent` with the given data. If a parentRowID is not specified, the newly created * row would be added at the root level. Otherwise, it would be added as a child of the row whose primaryKey matches * the specified parentRowID. If the parentRowID does not exist, an error would be thrown. - * ```typescript - * const record = { - * ID: this.grid.data[this.grid1.data.length - 1].ID + 1, - * Name: this.newRecord - * }; - * this.grid.addRow(record, 1); // Adds a new child row to the row with ID=1. - * ``` * * @param data * @param parentRowID @@ -604,12 +522,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy * @remarks * To spawn the UI on top, call the function with index = null or a negative number. * In this case trying to add this row as a child will result in error. - * @example - * ```typescript - * this.grid.beginAddRowByIndex(10); - * this.grid.beginAddRowByIndex(10, true); - * this.grid.beginAddRowByIndex(null); - * ``` * @param index - The index to spawn the UI at. Accepts integers from 0 to this.grid.dataView.length * @param asChild - Whether the record should be added as a child. Only applicable to igxTreeGrid. */ @@ -743,10 +655,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /** * Returns the `IgxTreeGridRow` by index. * - * @example - * ```typescript - * const myRow = treeGrid.getRowByIndex(1); - * ``` * @param index */ public getRowByIndex(index: number): RowType { @@ -759,10 +667,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /** * Returns the `RowType` object by the specified primary key. * - * @example - * ```typescript - * const myRow = this.treeGrid.getRowByIndex(1); - * ``` * @param index */ public getRowByKey(key: any): RowType { @@ -795,11 +699,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /** * Returns an array of the selected `IgxGridCell`s. - * - * @example - * ```typescript - * const selectedCells = this.grid.selectedCells; - * ``` */ public get selectedCells(): CellType[] { return this.dataRows().map((row) => row.cells.filter((cell) => cell.selected)) @@ -809,10 +708,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy /** * Returns a `CellType` object that matches the conditions. * - * @example - * ```typescript - * const myCell = this.grid1.getCellByColumn(2, "UnitPrice"); - * ``` * @param rowIndex * @param columnField */ @@ -829,10 +724,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy * * @remarks * Requires that the primaryKey property is set. - * @example - * ```typescript - * grid.getCellByKey(1, 'index'); - * ``` * @param rowSelector match any rowID * @param columnField */ diff --git a/projects/igniteui-angular/icon/src/icon/icon.component.ts b/projects/igniteui-angular/icon/src/icon/icon.component.ts index bc1ddca7ee6..b366eba771b 100644 --- a/projects/igniteui-angular/icon/src/icon/icon.component.ts +++ b/projects/igniteui-angular/icon/src/icon/icon.component.ts @@ -8,24 +8,11 @@ import { SafeHtml } from "@angular/platform-browser"; /** * Icon provides a way to include material icons to markup * - * @igxModule IgxIconModule - * - * @igxTheme igx-icon-theme - * - * @igxKeywords icon, picture - * - * @igxGroup Display - * * @remarks * * The Ignite UI Icon makes it easy for developers to include material design icons directly in their markup. The icons * support different icon families and can be marked as active or disabled using the `active` property. This will change the appearance * of the icon. - * - * @example - * ```html - * home - * ``` */ @Component({ selector: "igx-icon", @@ -60,14 +47,11 @@ export class IgxIconComponent implements OnInit, OnChanges, OnDestroy { /** * An accessor that returns inactive property. * - * @example - * ```typescript * @ViewChild("MyIcon") * public icon: IgxIconComponent; * ngAfterViewInit() { * let iconActive = this.icon.getInactive; * } - * ``` */ @HostBinding("class.igx-icon--inactive") public get getInactive(): boolean { @@ -84,33 +68,18 @@ export class IgxIconComponent implements OnInit, OnChanges, OnDestroy { /** * An @Input property that sets the value of the `family`. By default it's "material". - * - * @example - * ```html - * settings - * ``` */ @Input() public family: string; /** * Set the `name` of the icon. - * - * @example - * ```html - * - * ``` */ @Input() public name: string; /** * An @Input property that allows you to disable the `active` property. By default it's applied. - * - * @example - * ```html - * settings - * ``` */ @Input({ transform: booleanAttribute }) public active = true; @@ -165,14 +134,11 @@ export class IgxIconComponent implements OnInit, OnChanges, OnDestroy { /** * An accessor that returns the value of the family property. * - * @example - * ```typescript * @ViewChild("MyIcon") * public icon: IgxIconComponent; * ngAfterViewInit() { * let iconFamily = this.icon.getFamily; * } - * ``` */ public get getFamily(): string { return this.iconRef.family; @@ -181,14 +147,11 @@ export class IgxIconComponent implements OnInit, OnChanges, OnDestroy { /** * An accessor that returns the value of the active property. * - * @example - * ```typescript * @ViewChild("MyIcon") * public icon: IgxIconComponent; * ngAfterViewInit() { * let iconActive = this.icon.getActive; * } - * ``` */ public get getActive(): boolean { return this.active; @@ -197,14 +160,11 @@ export class IgxIconComponent implements OnInit, OnChanges, OnDestroy { /** * An accessor that returns the value of the iconName property. * - * @example - * ```typescript * @ViewChild("MyIcon") * public icon: IgxIconComponent; * ngAfterViewInit() { * let name = this.icon.getName; * } - * ``` */ public get getName(): string { return this.iconRef.name; @@ -213,14 +173,11 @@ export class IgxIconComponent implements OnInit, OnChanges, OnDestroy { /** * An accessor that returns the underlying SVG image as SafeHtml. * - * @example - * ```typescript * @ViewChild("MyIcon") * public icon: IgxIconComponent; * ngAfterViewInit() { * let svg: SafeHtml = this.icon.getSvg; * } - * ``` */ public get getSvg(): SafeHtml { const { name, family } = this.iconRef; diff --git a/projects/igniteui-angular/icon/src/icon/icon.service.ts b/projects/igniteui-angular/icon/src/icon/icon.service.ts index 1371da2a988..6f2870481ec 100644 --- a/projects/igniteui-angular/icon/src/icon/icon.service.ts +++ b/projects/igniteui-angular/icon/src/icon/icon.service.ts @@ -28,10 +28,6 @@ export interface IgxIconLoadedEvent { * In addition it could be used to associate a custom class to be applied on IgxIconComponent according to given font-family. * * Example: - * ```typescript - * this.iconService.setFamily('material', { className: 'material-icons', type: 'font' }); - * this.iconService.addSvgIcon('aruba', '/assets/svg/country_flags/aruba.svg', 'svg-flags'); - * ``` */ @Injectable({ providedIn: "root", @@ -47,11 +43,6 @@ export class IgxIconService { /** * Observable that emits when an icon is successfully loaded * through a HTTP request. - * - * @example - * ```typescript - * this.service.iconLoaded.subscribe((ev: IgxIconLoadedEvent) => ...); - * ``` */ public iconLoaded: Observable; @@ -87,9 +78,6 @@ export class IgxIconService { /** * Returns the default font-family. - * ```typescript - * const defaultFamily = this.iconService.defaultFamily; - * ``` */ public get defaultFamily(): IconFamily { return this._defaultFamily; @@ -97,9 +85,6 @@ export class IgxIconService { /** * Sets the default font-family. - * ```typescript - * this.iconService.defaultFamily = 'svg-flags'; - * ``` */ public set defaultFamily(family: IconFamily) { this._defaultFamily = family; @@ -108,9 +93,6 @@ export class IgxIconService { /** * Registers a custom class to be applied to IgxIconComponent for a given font-family. - * ```typescript - * this.iconService.registerFamilyAlias('material', 'material-icons'); - * ``` * @deprecated in version 18.1.0. Use `setFamily` instead. */ public registerFamilyAlias( @@ -124,9 +106,6 @@ export class IgxIconService { /** * Returns the custom class, if any, associated to a given font-family. - * ```typescript - * const familyClass = this.iconService.familyClassName('material'); - * ``` */ public familyClassName(alias: string): string { return this._families.get(alias)?.className || alias; @@ -160,9 +139,6 @@ export class IgxIconService { /** * Creates a family to className relationship that is applied to the IgxIconComponent * whenever that family name is used. - * ```typescript - * this.iconService.setFamily('material', { className: 'material-icons', type: 'liga' }); - * ``` */ public setFamily(name: string, meta: FamilyMeta) { this._families.set(name, meta); @@ -171,9 +147,6 @@ export class IgxIconService { /** * Adds an icon reference meta for an icon in a meta family. * Executes only if no icon reference is found. - * ```typescript - * this.iconService.addIconRef('aruba', 'default', { name: 'aruba', family: 'svg-flags' }); - * ``` */ public addIconRef(name: string, family: string, icon: IconMeta) { const iconRef = this._iconRefs.get(family)?.get(name); @@ -194,9 +167,6 @@ export class IgxIconService { /** * Similar to addIconRef, but always sets the icon reference meta for an icon in a meta family. - * ```typescript - * this.iconService.setIconRef('aruba', 'default', { name: 'aruba', family: 'svg-flags' }); - * ``` */ public setIconRef(name: string, family: string, icon: IconMeta) { let familyRef = this._iconRefs.get(family); @@ -215,9 +185,6 @@ export class IgxIconService { /** * Returns the icon reference meta for an icon in a given family. - * ```typescript - * const iconRef = this.iconService.getIconRef('aruba', 'default'); - * ``` */ public getIconRef(name: string, family: string): IconReference { const icon = this._iconRefs.get(family)?.get(name); @@ -254,9 +221,6 @@ export class IgxIconService { } /** * Adds an SVG image to the cache. SVG source is an url. - * ```typescript - * this.iconService.addSvgIcon('aruba', '/assets/svg/country_flags/aruba.svg', 'svg-flags'); - * ``` */ public addSvgIcon( name: string, @@ -300,10 +264,6 @@ export class IgxIconService { /** * Adds an SVG image to the cache. SVG source is its text. - * ```typescript - * this.iconService.addSvgIconFromText('simple', ' - * ', 'svg-flags'); - * ``` */ public addSvgIconFromText( name: string, @@ -327,9 +287,6 @@ export class IgxIconService { /** * Returns whether a given SVG image is present in the cache. - * ```typescript - * const isSvgCached = this.iconService.isSvgIconCached('aruba', 'svg-flags'); - * ``` */ public isSvgIconCached(name: string, family: string): boolean { if (this._cachedIcons.has(family)) { @@ -345,9 +302,6 @@ export class IgxIconService { /** * Returns the cached SVG image as string. - * ```typescript - * const svgIcon = this.iconService.getSvgIcon('aruba', 'svg-flags'); - * ``` */ public getSvgIcon(name: string, family: string) { return this._cachedIcons.get(family)?.get(name); diff --git a/projects/igniteui-angular/input-group/src/input-group/directives-hint/hint.directive.ts b/projects/igniteui-angular/input-group/src/input-group/directives-hint/hint.directive.ts index 18e96630656..034aac708d1 100644 --- a/projects/igniteui-angular/input-group/src/input-group/directives-hint/hint.directive.ts +++ b/projects/igniteui-angular/input-group/src/input-group/directives-hint/hint.directive.ts @@ -13,14 +13,6 @@ export class IgxHintDirective implements OnInit { /** * Sets/gets whether the hint position is at the start. * Default value is `false`. - * ```typescript - * @ViewChild('hint', {read: IgxHintDirective}) - * public igxHint: IgxHintDirective; - * this.igxHint.isPositionStart = true; - * ``` - * ```typescript - * let isHintPositionStart = this.igxHint.isPositionStart; - * ``` * * @memberof IgxHintDirective */ @@ -29,14 +21,6 @@ export class IgxHintDirective implements OnInit { /** * Sets/gets whether the hint position is at the end. * Default value is `false`. - * ```typescript - * @ViewChild('hint', {read: IgxHintDirective}) - * public igxHint: IgxHintDirective; - * this.igxHint.isPositionEnd = true; - * ``` - * ```typescript - * let isHintPositionEnd = this.igxHint.isPositionEnd; - * ``` * * @memberof IgxHintDirective */ @@ -46,12 +30,6 @@ export class IgxHintDirective implements OnInit { private _position: IgxHintPosition = IgxHintPosition.START; /** * Sets the position of the hint. - * ```html - * - * - * IgxHint displayed at the start - * - * ``` * * @memberof IgxHintDirective */ @@ -65,11 +43,6 @@ export class IgxHintDirective implements OnInit { } /** * Gets the position of the hint. - * ```typescript - * @ViewChild('hint', {read: IgxHintDirective}) - * public igxHint: IgxHintDirective; - * let hintPosition = this.igxHint.position; - * ``` * * @memberof IgxHintDirective */ diff --git a/projects/igniteui-angular/input-group/src/input-group/directives-input/input.directive.ts b/projects/igniteui-angular/input-group/src/input-group/directives-input/input.directive.ts index cb846b104a6..d7770c2d550 100644 --- a/projects/igniteui-angular/input-group/src/input-group/directives-input/input.directive.ts +++ b/projects/igniteui-angular/input-group/src/input-group/directives-input/input.directive.ts @@ -26,24 +26,6 @@ export enum IgxInputState { /** * The `igxInput` directive creates single- or multiline text elements, covering common scenarios when dealing with form inputs. - * - * @igxModule IgxInputGroupModule - * - * @igxParent Data Entry & Display - * - * @igxTheme igx-input-group-theme - * - * @igxKeywords input, input group, form, field, validation - * - * @igxGroup presentation - * - * @example - * ```html - * - * - * - * - * ``` */ @Directive({ selector: '[igxInput]', @@ -61,32 +43,12 @@ export class IgxInputDirective implements AfterViewInit, OnDestroy { /** * Sets/gets whether the `"igx-input-group__input"` class is added to the host element. * Default value is `false`. - * - * @example - * ```typescript - * this.igxInput.isInput = true; - * ``` - * - * @example - * ```typescript - * let isCLassAdded = this.igxInput.isInput; - * ``` */ @HostBinding('class.igx-input-group__input') public isInput = false; /** * Sets/gets whether the `"class.igx-input-group__textarea"` class is added to the host element. * Default value is `false`. - * - * @example - * ```typescript - * this.igxInput.isTextArea = true; - * ``` - * - * @example - * ```typescript - * let isCLassAdded = this.igxInput.isTextArea; - * ``` */ @HostBinding('class.igx-input-group__textarea') public isTextArea = false; @@ -104,13 +66,6 @@ export class IgxInputDirective implements AfterViewInit, OnDestroy { /** * Sets the `value` property. - * - * @example - * ```html - * - * - * - * ``` */ @Input() public set value(value: any) { @@ -120,25 +75,15 @@ export class IgxInputDirective implements AfterViewInit, OnDestroy { /** * Gets the `value` property. * - * @example - * ```typescript * @ViewChild('igxInput', {read: IgxInputDirective}) * public igxInput: IgxInputDirective; * let inputValue = this.igxInput.value; - * ``` */ public get value() { return this.nativeElement.value; } /** * Sets the `disabled` property. - * - * @example - * ```html - * - * - * - * ``` */ @Input({ transform: booleanAttribute }) @HostBinding('disabled') @@ -152,12 +97,9 @@ export class IgxInputDirective implements AfterViewInit, OnDestroy { /** * Gets the `disabled` property * - * @example - * ```typescript * @ViewChild('igxInput', {read: IgxInputDirective}) * public igxInput: IgxInputDirective; * let isDisabled = this.igxInput.disabled; - * ``` */ public get disabled() { return this._disabled; @@ -165,13 +107,6 @@ export class IgxInputDirective implements AfterViewInit, OnDestroy { /** * Sets the `required` property. - * - * @example - * ```html - * - * - * - * ``` */ @Input({ transform: booleanAttribute }) public set required(value: boolean) { @@ -180,11 +115,6 @@ export class IgxInputDirective implements AfterViewInit, OnDestroy { /** * Gets whether the igxInput is required. - * - * @example - * ```typescript - * let isRequired = this.igxInput.required; - * ``` */ public get required() { let validation; @@ -328,22 +258,12 @@ export class IgxInputDirective implements AfterViewInit, OnDestroy { } /** * Sets a focus on the igxInput. - * - * @example - * ```typescript - * this.igxInput.focus(); - * ``` */ public focus() { this.nativeElement.focus(); } /** * Gets the `nativeElement` of the igxInput. - * - * @example - * ```typescript - * let igxInputNativeElement = this.igxInput.nativeElement; - * ``` */ public get nativeElement() { return this.element.nativeElement; @@ -406,22 +326,12 @@ export class IgxInputDirective implements AfterViewInit, OnDestroy { /** * Gets whether the igxInput has a placeholder. - * - * @example - * ```typescript - * let hasPlaceholder = this.igxInput.hasPlaceholder; - * ``` */ public get hasPlaceholder() { return this.nativeElement.hasAttribute('placeholder'); } /** * Gets the placeholder element of the igxInput. - * - * @example - * ```typescript - * let igxInputPlaceholder = this.igxInput.placeholder; - * ``` */ public get placeholder() { return this.nativeElement.placeholder; @@ -444,22 +354,12 @@ export class IgxInputDirective implements AfterViewInit, OnDestroy { /** * Gets whether the igxInput is focused. - * - * @example - * ```typescript - * let isFocused = this.igxInput.focused; - * ``` */ public get focused() { return this.inputGroup.isFocused; } /** * Gets the state of the igxInput. - * - * @example - * ```typescript - * let igxInputState = this.igxInput.valid; - * ``` */ public get valid(): IgxInputState { return this._valid; @@ -467,11 +367,6 @@ export class IgxInputDirective implements AfterViewInit, OnDestroy { /** * Sets the state of the igxInput. - * - * @example - * ```typescript - * this.igxInput.valid = IgxInputState.INVALID; - * ``` */ public set valid(value: IgxInputState) { this._valid = value; @@ -479,11 +374,6 @@ export class IgxInputDirective implements AfterViewInit, OnDestroy { /** * Gets whether the igxInput is valid. - * - * @example - * ```typescript - * let valid = this.igxInput.isValid; - * ``` */ public get isValid(): boolean { return this.valid !== IgxInputState.INVALID; diff --git a/projects/igniteui-angular/input-group/src/input-group/input-group.component.ts b/projects/igniteui-angular/input-group/src/input-group/input-group.component.ts index a383dd82702..1ad5393561e 100644 --- a/projects/igniteui-angular/input-group/src/input-group/input-group.component.ts +++ b/projects/igniteui-angular/input-group/src/input-group/input-group.component.ts @@ -63,12 +63,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh /** * Property that enables/disables the auto-generated class of the `IgxInputGroupComponent`. * By default applied the class is applied. - * ```typescript - * @ViewChild("MyInputGroup") - * public inputGroup: IgxInputGroupComponent; - * ngAfterViewInit(){ - * this.inputGroup.defaultClass = false; - * ``` * } */ @HostBinding('class.igx-input-group') @@ -90,9 +84,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh * @hidden @internal * When truthy, disables the `IgxInputGroupComponent`. * Controlled by the underlying `IgxInputDirective`. - * ```html - * - * ``` */ @HostBinding('class.igx-input-group--disabled') public disabled = false; @@ -101,11 +92,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh * Prevents automatically focusing the input when clicking on other elements in the input group (e.g. prefix or suffix). * * @remarks Automatic focus causes software keyboard to show on mobile devices. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public suppressInputAutofocus = false; @@ -174,9 +160,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh /** * Sets how the input will be styled. * Allowed values of type IgxInputGroupType. - * ```html - * - * ``` */ @Input() public set type(value: IgxInputGroupType) { @@ -186,13 +169,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh /** * Returns the type of the `IgxInputGroupComponent`. How the input is styled. * The default is `line`. - * ```typescript - * @ViewChild("MyInputGroup") - * public inputGroup: IgxInputGroupComponent; - * ngAfterViewInit(){ - * let inputType = this.inputGroup.type; - * } - * ``` */ public get type() { return this._type || this._inputGroupType || 'line'; @@ -201,12 +177,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh /** * Sets the theme of the input. * Allowed values of type IgxInputGroupTheme. - * ```typescript - * @ViewChild("MyInputGroup") - * public inputGroup: IgxInputGroupComponent; - * ngAfterViewInit() { - * let inputTheme = 'fluent'; - * } */ @Input() public set theme(value: IgxTheme) { @@ -216,12 +186,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh /** * Returns the theme of the input. * The returned value is of type IgxInputGroupType. - * ```typescript - * @ViewChild("MyInputGroup") - * public inputGroup: IgxInputGroupComponent; - * ngAfterViewInit() { - * let inputTheme = this.inputGroup.theme; - * } */ public get theme(): IgxTheme { return this._theme; @@ -268,13 +232,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh /** * Returns whether the `IgxInputGroupComponent` has hints. - * ```typescript - * @ViewChild("MyInputGroup") - * public inputGroup: IgxInputGroupComponent; - * ngAfterViewInit(){ - * let inputHints = this.inputGroup.hasHints; - * } - * ``` */ public get hasHints() { return this.hints.length > 0; @@ -304,13 +261,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh /** * Returns whether the `IgxInputGroupComponent` has border. - * ```typescript - * @ViewChild("MyInputGroup") - * public inputGroup: IgxInputGroupComponent; - * ngAfterViewInit(){ - * let inputBorder = this.inputGroup.hasBorder; - * } - * ``` */ public get hasBorder() { return ( @@ -321,13 +271,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh /** * Returns whether the `IgxInputGroupComponent` type is line. - * ```typescript - * @ViewChild("MyInputGroup1") - * public inputGroup: IgxInputGroupComponent; - * ngAfterViewInit(){ - * let isTypeLine = this.inputGroup.isTypeLine; - * } - * ``` */ public get isTypeLine(): boolean { return this.type === 'line' && this._theme === 'material'; @@ -335,13 +278,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh /** * Returns whether the `IgxInputGroupComponent` type is box. - * ```typescript - * @ViewChild("MyInputGroup1") - * public inputGroup: IgxInputGroupComponent; - * ngAfterViewInit(){ - * let isTypeBox = this.inputGroup.isTypeBox; - * } - * ``` */ @HostBinding('class.igx-input-group--box') public get isTypeBox() { @@ -390,13 +326,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh /** * Returns whether the `IgxInputGroupComponent` type is border. - * ```typescript - * @ViewChild("MyInputGroup1") - * public inputGroup: IgxInputGroupComponent; - * ngAfterViewInit(){ - * let isTypeBorder = this.inputGroup.isTypeBorder; - * } - * ``` */ @HostBinding('class.igx-input-group--border') public get isTypeBorder() { @@ -405,13 +334,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh /** * Returns true if the `IgxInputGroupComponent` theme is Fluent. - * ```typescript - * @ViewChild("MyInputGroup1") - * public inputGroup: IgxInputGroupComponent; - * ngAfterViewInit(){ - * let isTypeFluent = this.inputGroup.isTypeFluent; - * } - * ``` */ @HostBinding('class.igx-input-group--fluent') public get isTypeFluent() { @@ -420,13 +342,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh /** * Returns true if the `IgxInputGroupComponent` theme is Bootstrap. - * ```typescript - * @ViewChild("MyInputGroup1") - * public inputGroup: IgxInputGroupComponent; - * ngAfterViewInit(){ - * let isTypeBootstrap = this.inputGroup.isTypeBootstrap; - * } - * ``` */ @HostBinding('class.igx-input-group--bootstrap') public get isTypeBootstrap() { @@ -435,13 +350,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh /** * Returns true if the `IgxInputGroupComponent` theme is Indigo. - * ```typescript - * @ViewChild("MyInputGroup1") - * public inputGroup: IgxInputGroupComponent; - * ngAfterViewInit(){ - * let isTypeIndigo = this.inputGroup.isTypeIndigo; - * } - * ``` */ @HostBinding('class.igx-input-group--indigo') public get isTypeIndigo() { @@ -450,13 +358,6 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterContentCh /** * Returns whether the `IgxInputGroupComponent` type is search. - * ```typescript - * @ViewChild("MyInputGroup1") - * public inputGroup: IgxInputGroupComponent; - * ngAfterViewInit(){ - * let isTypeSearch = this.inputGroup.isTypeSearch; - * } - * ``` */ @HostBinding('class.igx-input-group--search') public get isTypeSearch() { diff --git a/projects/igniteui-angular/list/src/list/list-item.component.ts b/projects/igniteui-angular/list/src/list/list-item.component.ts index 2616f6c47b8..b41105c0bb8 100644 --- a/projects/igniteui-angular/list/src/list/list-item.component.ts +++ b/projects/igniteui-angular/list/src/list/list-item.component.ts @@ -14,15 +14,6 @@ import { NgTemplateOutlet } from '@angular/common'; * The Ignite UI List Item component is a container intended for row items in the Ignite UI for Angular List component. * * Example: - * ```html - * - * Contacts - * - * {{ contact.name }} - * {{ contact.phone }} - * - * - * ``` */ @Component({ providers: [HammerGesturesManager], @@ -38,30 +29,18 @@ export class IgxListItemComponent implements IListChild { /** * Provides a reference to the template's base element shown when left panning a list item. - * ```typescript - * const leftPanTmpl = this.listItem.leftPanningTemplateElement; - * ``` */ @ViewChild('leftPanningTmpl') public leftPanningTemplateElement; /** * Provides a reference to the template's base element shown when right panning a list item. - * ```typescript - * const rightPanTmpl = this.listItem.rightPanningTemplateElement; - * ``` */ @ViewChild('rightPanningTmpl') public rightPanningTemplateElement; /** * Sets/gets whether the `list item` is a header. - * ```html - * Header - * ``` - * ```typescript - * let isHeader = this.listItem.isHeader; - * ``` * * @memberof IgxListItemComponent */ @@ -71,12 +50,6 @@ export class IgxListItemComponent implements IListChild { /** * Sets/gets whether the `list item` is hidden. * By default the `hidden` value is `false`. - * ```html - * Hidden Item - * ``` - * ```typescript - * let isHidden = this.listItem.hidden; - * ``` * * @memberof IgxListItemComponent */ @@ -85,12 +58,6 @@ export class IgxListItemComponent implements IListChild { /** * Sets/gets the `aria-label` attribute of the `list item`. - * ```typescript - * this.listItem.ariaLabel = "Item1"; - * ``` - * ```typescript - * let itemAriaLabel = this.listItem.ariaLabel; - * ``` * * @memberof IgxListItemComponent */ @@ -99,9 +66,6 @@ export class IgxListItemComponent implements IListChild { /** * Gets the `touch-action` style of the `list item`. - * ```typescript - * let touchAction = this.listItem.touchAction; - * ``` */ @HostBinding('style.touch-action') public touchAction = 'pan-y'; @@ -131,9 +95,6 @@ export class IgxListItemComponent implements IListChild { /** * Gets the `panState` of a `list item`. - * ```typescript - * let itemPanState = this.listItem.panState; - * ``` * * @memberof IgxListItemComponent */ @@ -143,9 +104,6 @@ export class IgxListItemComponent implements IListChild { /** * Gets the `index` of a `list item`. - * ```typescript - * let itemIndex = this.listItem.index; - * ``` * * @memberof IgxListItemComponent */ @@ -156,9 +114,6 @@ export class IgxListItemComponent implements IListChild { /** * Sets the `index` of the `list item`. - * ```typescript - * this.listItem.index = index; - * ``` * * @memberof IgxListItemComponent */ @@ -168,9 +123,6 @@ export class IgxListItemComponent implements IListChild { /** * Returns an element reference to the list item. - * ```typescript - * let listItemElement = this.listItem.element. - * ``` * * @memberof IgxListItemComponent */ @@ -180,9 +132,6 @@ export class IgxListItemComponent implements IListChild { /** * Returns a reference container which contains the list item's content. - * ```typescript - * let listItemContainer = this.listItem.contentElement. - * ``` * * @memberof IgxListItemComponent */ @@ -194,9 +143,6 @@ export class IgxListItemComponent implements IListChild { /** * Returns the `context` object which represents the `template context` binding into the `list item container` * by providing the `$implicit` declaration which is the `IgxListItemComponent` itself. - * ```typescript - * let listItemComponent = this.listItem.context; - * ``` */ public get context(): any { return { @@ -206,9 +152,6 @@ export class IgxListItemComponent implements IListChild { /** * Gets the width of a `list item`. - * ```typescript - * let itemWidth = this.listItem.width; - * ``` * * @memberof IgxListItemComponent */ @@ -220,9 +163,6 @@ export class IgxListItemComponent implements IListChild { /** * Gets the maximum left position of the `list item`. - * ```typescript - * let maxLeft = this.listItem.maxLeft; - * ``` * * @memberof IgxListItemComponent */ @@ -232,9 +172,6 @@ export class IgxListItemComponent implements IListChild { /** * Gets the maximum right position of the `list item`. - * ```typescript - * let maxRight = this.listItem.maxRight; - * ``` * * @memberof IgxListItemComponent */ @@ -254,9 +191,6 @@ export class IgxListItemComponent implements IListChild { /** * Gets/Sets the `role` attribute of the `list item`. - * ```typescript - * let itemRole = this.listItem.role; - * ``` * * @memberof IgxListItemComponent */ @@ -274,13 +208,6 @@ export class IgxListItemComponent implements IListChild { * Sets/gets whether the `list item` is selected. * Selection is only applied to non-header items. * When selected, the CSS class 'igx-list__item-base--selected' is added to the item. - * ```html - * Selected Item - * ``` - * ```typescript - * let isSelected = this.listItem.selected; - * this.listItem.selected = true; - * ``` * * @memberof IgxListItemComponent */ @@ -296,9 +223,6 @@ export class IgxListItemComponent implements IListChild { /** * Indicates whether `list item` should have header style. - * ```typescript - * let headerStyle = this.listItem.headerStyle; - * ``` * * @memberof IgxListItemComponent */ @@ -309,9 +233,6 @@ export class IgxListItemComponent implements IListChild { /** * Applies the inner style of the `list item` if the item is not counted as header. - * ```typescript - * let innerStyle = this.listItem.innerStyle; - * ``` * * @memberof IgxListItemComponent */ @@ -322,9 +243,6 @@ export class IgxListItemComponent implements IListChild { /** * Returns string value which describes the display mode of the `list item`. - * ```typescript - * let isHidden = this.listItem.display; - * ``` * * @memberof IgxListItemComponent */ diff --git a/projects/igniteui-angular/list/src/list/list.component.ts b/projects/igniteui-angular/list/src/list/list.component.ts index 6a32ac34d52..1d31f333168 100644 --- a/projects/igniteui-angular/list/src/list/list.component.ts +++ b/projects/igniteui-angular/list/src/list/list.component.ts @@ -121,28 +121,9 @@ export class IgxListLineSubTitleDirective { /** * Displays a collection of data items in a templatable list format * - * @igxModule IgxListModule - * - * @igxTheme igx-list-theme - * - * @igxKeywords list, data - * - * @igxGroup Grids & Lists - * * @remarks * The Ignite UI List displays rows of items and supports one or more header items as well as search and filtering * of list items. Each list item is completely templatable and will support any valid HTML or Angular component. - * - * @example - * ```html - * - * Contacts - * - * {{ contact.name }} - * {{ contact.phone }} - * - * - * ``` */ @Component({ selector: 'igx-list', @@ -156,11 +137,6 @@ export class IgxListComponent extends IgxListBaseDirective { /** * Returns a collection of all items and headers in the list. - * - * @example - * ```typescript - * let listChildren: QueryList = this.list.children; - * ``` */ @ContentChildren(forwardRef(() => IgxListItemComponent), { descendants: true }) public override children: QueryList; @@ -171,18 +147,6 @@ export class IgxListComponent extends IgxListBaseDirective { * @remarks * This template is used by IgxList in case there are no list items * defined and `isLoading` is set to `false`. - * - * @example - * ```html - * - * - *

No contacts! :(

- *
- *
- * ``` - * ```typescript - * let emptyTemplate = this.list.emptyListTemplate; - * ``` */ @ContentChild(IgxEmptyListTemplateDirective, { read: IgxEmptyListTemplateDirective }) public emptyListTemplate: IgxEmptyListTemplateDirective; @@ -192,18 +156,6 @@ export class IgxListComponent extends IgxListBaseDirective { * * @remarks * This template is used by IgxList in case there are no list items defined and `isLoading` is set to `true`. - * - * @example - * ```html - * - * - *

Patience, we are currently loading your data...

- *
- *
- * ``` - * ```typescript - * let loadingTemplate = this.list.dataLoadingTemplate; - * ``` */ @ContentChild(IgxDataLoadingTemplateDirective, { read: IgxDataLoadingTemplateDirective }) public dataLoadingTemplate: IgxDataLoadingTemplateDirective; @@ -213,18 +165,6 @@ export class IgxListComponent extends IgxListBaseDirective { * * @remarks * Default value is `null`. - * - * @example - * ```html - * - * - * deleteDelete - * - * - * ``` - * ```typescript - * let itemLeftPanTmpl = this.list.listItemLeftPanningTemplate; - * ``` */ @ContentChild(IgxListItemLeftPanningTemplateDirective, { read: IgxListItemLeftPanningTemplateDirective }) public override listItemLeftPanningTemplate: IgxListItemLeftPanningTemplateDirective; @@ -234,18 +174,6 @@ export class IgxListComponent extends IgxListBaseDirective { * * @remarks * Default value is `null`. - * - * @example - * ```html - * - * - * callDial - * - * - * ``` - * ```typescript - * let itemRightPanTmpl = this.list.listItemRightPanningTemplate; - * ``` */ @ContentChild(IgxListItemRightPanningTemplateDirective, { read: IgxListItemRightPanningTemplateDirective }) public override listItemRightPanningTemplate: IgxListItemRightPanningTemplateDirective; @@ -255,11 +183,6 @@ export class IgxListComponent extends IgxListBaseDirective { * * @remarks * By default this property is set to 0.5 which is 50% of the list item's width. - * - * @example - * ```html - * - * ``` */ @Input() public override panEndTriggeringThreshold = 0.5; @@ -269,14 +192,6 @@ export class IgxListComponent extends IgxListBaseDirective { * * @remarks * If not set, the `id` of the first list component will be `"igx-list-0"`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let listId = this.list.id; - * ``` */ @HostBinding('attr.id') @Input() @@ -287,14 +202,6 @@ export class IgxListComponent extends IgxListBaseDirective { * * @remarks * Default value is `false`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let isLeftPanningAllowed = this.list.allowLeftPanning; - * ``` */ @Input({ transform: booleanAttribute }) public override allowLeftPanning = false; @@ -304,14 +211,6 @@ export class IgxListComponent extends IgxListBaseDirective { * * @remarks * Default value is `false`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let isRightPanningAllowed = this.list.allowRightPanning; - * ``` */ @Input({ transform: booleanAttribute }) public override allowRightPanning = false; @@ -322,14 +221,6 @@ export class IgxListComponent extends IgxListBaseDirective { * @remarks * Set it to display the dataLoadingTemplate while data is being retrieved. * Default value is `false`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let isLoading = this.list.isLoading; - * ``` */ @Input({ transform: booleanAttribute }) public isLoading = false; @@ -339,11 +230,6 @@ export class IgxListComponent extends IgxListBaseDirective { * * @remarks * Provides a reference to an object of type `IListItemPanningEventArgs` as an event argument. - * - * @example - * ```html - * - * ``` */ @Output() public override leftPan = new EventEmitter(); @@ -353,11 +239,6 @@ export class IgxListComponent extends IgxListBaseDirective { * * @remarks * Provides a reference to an object of type `IListItemPanningEventArgs` as an event argument. - * - * @example - * ```html - * - * ``` */ @Output() public override rightPan = new EventEmitter(); @@ -367,11 +248,6 @@ export class IgxListComponent extends IgxListBaseDirective { * * @remarks * Provides a reference to an object of type `IListItemPanningEventArgs` as an event argument. - * - * @example - * ```html - * - * ``` */ @Output() public override startPan = new EventEmitter(); @@ -381,11 +257,6 @@ export class IgxListComponent extends IgxListBaseDirective { * * @remarks * Provides a reference to an object of type `IListItemPanningEventArgs` as an event argument. - * - * @example - * ```html - * - * ``` */ @Output() public override endPan = new EventEmitter(); @@ -395,11 +266,6 @@ export class IgxListComponent extends IgxListBaseDirective { * * @remarks * Provides a reference to an object of type `IgxListComponent` as an event argument. - * - * @example - * ```html - * - * ``` */ @Output() public override resetPan = new EventEmitter(); @@ -410,11 +276,6 @@ export class IgxListComponent extends IgxListBaseDirective { * * @remarks * Provides references to the `IgxListItemComponent` and `IgxListPanState` as event arguments. - * - * @example - * ```html - * - * ``` */ @Output() public override panStateChange = new EventEmitter(); @@ -424,11 +285,6 @@ export class IgxListComponent extends IgxListBaseDirective { * * @remarks * Provides references to the `IgxListItemComponent` and `Event` as event arguments. - * - * @example - * ```html - * - * ``` */ @Output() public override itemClicked = new EventEmitter(); @@ -489,11 +345,6 @@ export class IgxListComponent extends IgxListBaseDirective { /** * Gets/Sets the `role` attribute value. - * - * @example - * ```typescript - * let listRole = this.list.role; - * ``` */ @HostBinding('attr.role') @Input() @@ -507,11 +358,6 @@ export class IgxListComponent extends IgxListBaseDirective { /** * Gets a boolean indicating if the list is empty. - * - * @example - * ```typescript - * let isEmpty = this.list.isListEmpty; - * ``` */ @HostBinding('class.igx-list--empty') public get isListEmpty(): boolean { @@ -529,11 +375,6 @@ export class IgxListComponent extends IgxListBaseDirective { /** * Gets the list `items` excluding the header ones. - * - * @example - * ```typescript - * let listItems: IgxListItemComponent[] = this.list.items; - * ``` */ public get items(): IgxListItemComponent[] { const items: IgxListItemComponent[] = []; @@ -549,11 +390,6 @@ export class IgxListComponent extends IgxListBaseDirective { /** * Gets the header list `items`. - * - * @example - * ```typescript - * let listHeaders: IgxListItemComponent[] = this.list.headers; - * ``` */ public get headers(): IgxListItemComponent[] { const headers: IgxListItemComponent[] = []; @@ -573,11 +409,6 @@ export class IgxListComponent extends IgxListBaseDirective { * @remarks * Gets the `context` object which represents the `template context` binding into the `list container` * by providing the `$implicit` declaration which is the `IgxListComponent` itself. - * - * @example - * ```typescript - * let listComponent = this.list.context; - * ``` */ public get context(): any { return { @@ -587,11 +418,6 @@ export class IgxListComponent extends IgxListBaseDirective { /** * Gets a `TemplateRef` to the currently used template. - * - * @example - * ```typescript - * let listTemplate = this.list.template; - * ``` */ public get template(): TemplateRef { if (this.isLoading) { diff --git a/projects/igniteui-angular/migrations/common/UpdateChanges.ts b/projects/igniteui-angular/migrations/common/UpdateChanges.ts index 2336340453a..7980e3e6ea8 100644 --- a/projects/igniteui-angular/migrations/common/UpdateChanges.ts +++ b/projects/igniteui-angular/migrations/common/UpdateChanges.ts @@ -730,10 +730,6 @@ export class UpdateChanges { /** * Safe split by `','`, considering possible inner function calls. E.g.: - * ``` - * prop: inner-func(), - * prop2: inner2(inner-param: 3, inner-param: inner-func(..)) - * ``` */ private splitFunctionProps(body: string): string[] { const parts = []; diff --git a/projects/igniteui-angular/migrations/common/util.ts b/projects/igniteui-angular/migrations/common/util.ts index 9b65508f879..76b50beb1de 100644 --- a/projects/igniteui-angular/migrations/common/util.ts +++ b/projects/igniteui-angular/migrations/common/util.ts @@ -248,7 +248,6 @@ export const flatten = (list: Node[]) => { class SerializerVisitor implements Visitor { /** - * */ constructor(private getHtmlTagDefinition: (tagName: string) => HtmlTagDefinition) { } diff --git a/projects/igniteui-angular/navbar/src/navbar/navbar.component.ts b/projects/igniteui-angular/navbar/src/navbar/navbar.component.ts index a77b55962a6..c581860bd58 100644 --- a/projects/igniteui-angular/navbar/src/navbar/navbar.component.ts +++ b/projects/igniteui-angular/navbar/src/navbar/navbar.component.ts @@ -35,13 +35,6 @@ let NEXT_ID = 0; * state such as a "Go Back" button. It also supports other actions represented by icons. * * Example: - * ```html - * - * search - * favorite - * more_vert - * - * ``` */ @Component({ @@ -60,9 +53,6 @@ let NEXT_ID = 0; export class IgxNavbarComponent { /** * Sets the value of the `id` attribute. If not provided it will be automatically generated. - * ```html - * - * ``` */ @HostBinding('attr.id') @Input() @@ -70,40 +60,22 @@ export class IgxNavbarComponent { /** * Sets the icon of the `IgxNavbarComponent`. - * ```html - * - * ``` */ @Input() public actionButtonIcon: string; /** * Sets the title of the `IgxNavbarComponent`. - * ```html - * - * ``` */ @Input() public title: string; /** * The event that will be thrown when the action is executed, * provides reference to the `IgxNavbar` component as argument - * ```typescript - * public actionExc(event){ - * alert("Action Execute!"); - * } - * //.. - * ``` - * ```html - * - * ``` */ @Output() public action = new EventEmitter(); /** * Sets the titleId of the `IgxNavbarComponent`. If not set it will be automatically generated. - * ```html - * - * ``` */ @Input() public titleId = `igx-navbar-title-${NEXT_ID++}`; @@ -124,9 +96,6 @@ export class IgxNavbarComponent { /** * Sets whether the action button of the `IgxNavbarComponent` is visible. - * ```html - * - * ``` */ public set isActionButtonVisible(value: boolean) { this.isVisible = value; @@ -134,13 +103,6 @@ export class IgxNavbarComponent { /** * Returns whether the `IgxNavbarComponent` action button is visible, true/false. - * ```typescript - * @ViewChild("MyChild") - * public navBar: IgxNavbarComponent; - * ngAfterViewInit(){ - * let actionButtonVisibile = this.navBar.isActionButtonVisible; - * } - * ``` */ @Input({ transform: booleanAttribute }) public get isActionButtonVisible(): boolean { diff --git a/projects/igniteui-angular/navigation-drawer/src/navigation-drawer/navigation-drawer.component.ts b/projects/igniteui-angular/navigation-drawer/src/navigation-drawer/navigation-drawer.component.ts index 6a9803e4574..28222302884 100644 --- a/projects/igniteui-angular/navigation-drawer/src/navigation-drawer/navigation-drawer.component.ts +++ b/projects/igniteui-angular/navigation-drawer/src/navigation-drawer/navigation-drawer.component.ts @@ -16,18 +16,6 @@ let NEXT_ID = 0; * The Ignite UI Navigation Drawer is a collapsible side navigation container commonly used in combination with the Navbar. * * Example: - * ```html - * - * - * - * - * - * ``` */ @Component({ providers: [HammerGesturesManager], @@ -68,48 +56,18 @@ export class IgxNavigationDrawerComponent implements /** * ID of the component - * - * ```typescript - * // get - * let myNavDrawerId = this.navdrawer.id; - * ``` - * - * ```html - * - * - * ``` */ @HostBinding('attr.id') @Input() public id = `igx-nav-drawer-${NEXT_ID++}`; /** * Position of the Navigation Drawer. Can be "left"(default) or "right". - * - * ```typescript - * // get - * let myNavDrawerPosition = this.navdrawer.position; - * ``` - * - * ```html - * - * - * ``` */ @Input() public position = 'left'; /** * Enables the use of touch gestures to manipulate the drawer: * - swipe/pan from edge to open, swipe-toggle and pan-drag. - * - * ```typescript - * // get - * let gesturesEnabled = this.navdrawer.enableGestures; - * ``` - * - * ```html - * - * - * ``` */ @Input({ transform: booleanAttribute }) public enableGestures = true; @@ -121,32 +79,12 @@ export class IgxNavigationDrawerComponent implements /** * Minimum device width required for automatic pin to be toggled. * Default is 1024, can be set to a falsy value to disable this behavior. - * - * ```typescript - * // get - * let navDrawerPinThreshold = this.navdrawer.pinThreshold; - * ``` - * - * ```html - * - * - * ``` */ @Input() public pinThreshold = 1024; /** * When pinned the drawer is relatively positioned instead of sitting above content. * May require additional layout styling. - * - * ```typescript - * // get - * let navDrawerIsPinned = this.navdrawer.pin; - * ``` - * - * ```html - * - * - * ``` */ @Input({ transform: booleanAttribute }) public get pin(): boolean { @@ -159,16 +97,6 @@ export class IgxNavigationDrawerComponent implements /** * Width of the drawer in its open state. - * - * ```typescript - * // get - * let navDrawerWidth = this.navdrawer.width; - * ``` - * - * ```html - * - * - * ``` */ private _width: string; @@ -183,66 +111,33 @@ export class IgxNavigationDrawerComponent implements /** * Enables/disables the animation, when toggling the drawer. Set to `false` by default. - * ````html - * - * ```` */ @HostBinding('class.igx-nav-drawer--disable-animation') @Input({ transform: booleanAttribute }) public disableAnimation = false; /** * Width of the drawer in its mini state. - * - * ```typescript - * // get - * let navDrawerMiniWidth = this.navdrawer.miniWidth; - * ``` - * - * ```html - * - * - * ``` */ @Input() public miniWidth: string; /** * Pinned state change output for two-way binding. - * - * ```html - * - * ``` */ @Output() public pinChange = new EventEmitter(true); /** * Event fired as the Navigation Drawer is about to open. - * - * ```html - * - * ``` */ @Output() public opening = new EventEmitter(); /** * Event fired when the Navigation Drawer has opened. - * - * ```html - * - * ``` */ @Output() public opened = new EventEmitter(); /** * Event fired as the Navigation Drawer is about to close. - * - * ```html - * - * ``` */ @Output() public closing = new EventEmitter(); /** * Event fired when the Navigation Drawer has closed. - * - * ```html - * - * ``` */ @Output() public closed = new EventEmitter(); @@ -259,21 +154,7 @@ export class IgxNavigationDrawerComponent implements /** * State of the drawer. * - * ```typescript - * // get - * let navDrawerIsOpen = this.navdrawer.isOpen; - * ``` - * - * ```html - * - * - * ``` - * * Two-way data binding. - * ```html - * - * - * ``` */ @Input({ transform: booleanAttribute }) public get isOpen() { @@ -418,7 +299,6 @@ export class IgxNavigationDrawerComponent implements * Gets the Drawer width for specific state. * Will attempt to evaluate requested state and cache. * - * * @hidden */ public get expectedWidth() { @@ -528,10 +408,6 @@ export class IgxNavigationDrawerComponent implements /** * Toggle the open state of the Navigation Drawer. - * - * ```typescript - * this.navdrawer.toggle(); - * ``` */ public toggle() { if (this.isOpen) { @@ -543,10 +419,6 @@ export class IgxNavigationDrawerComponent implements /** * Open the Navigation Drawer. Has no effect if already opened. - * - * ```typescript - * this.navdrawer.open(); - * ``` */ public open() { if (this._panning) { @@ -574,10 +446,6 @@ export class IgxNavigationDrawerComponent implements /** * Close the Navigation Drawer. Has no effect if already closed. - * - * ```typescript - * this.navdrawer.close(); - * ``` */ public close() { if (this._panning) { diff --git a/projects/igniteui-angular/navigation-drawer/src/navigation-drawer/navigation-drawer.directives.ts b/projects/igniteui-angular/navigation-drawer/src/navigation-drawer/navigation-drawer.directives.ts index 373f15cb487..49c06e47e47 100644 --- a/projects/igniteui-angular/navigation-drawer/src/navigation-drawer/navigation-drawer.directives.ts +++ b/projects/igniteui-angular/navigation-drawer/src/navigation-drawer/navigation-drawer.directives.ts @@ -10,33 +10,18 @@ export class IgxNavDrawerItemDirective { /** * Styles a navigation drawer item as selected. * If not set, `active` will have default value `false`. - * - * @example - * ```html - * Active Item - * ``` */ @Input({ transform: booleanAttribute }) public active = false; /** * Disables a navigation drawer item. * If not set, `disabled` will have default value `false`. - * - * @example - * ```html - * Disabled Item - * ``` */ @Input({ transform: booleanAttribute }) public disabled = false; /** * Styles a navigation drawer item as a group header. * If not set, `isHeader` will have default value `false`. - * - * @example - * ```html - * Header - * ``` */ @Input({ transform: booleanAttribute }) public isHeader = false; diff --git a/projects/igniteui-angular/paginator/src/paginator/paginator.component.ts b/projects/igniteui-angular/paginator/src/paginator/paginator.component.ts index ea384e6f111..c411f98a673 100644 --- a/projects/igniteui-angular/paginator/src/paginator/paginator.component.ts +++ b/projects/igniteui-angular/paginator/src/paginator/paginator.component.ts @@ -37,7 +37,6 @@ export class IgxPaginatorContentDirective { /* jsonAPIManageCollectionInMarkup */ /** * Paginator component description - * @igxParent IgxGridComponent, IgxTreeGridComponent, IgxHierarchicalGridComponent, IgxPivotGridComponent, * */ @Component({ selector: 'igx-paginator', @@ -62,32 +61,12 @@ export class IgxPaginatorComponent implements IgxPaginatorToken { /** * Emitted when `perPage` property value of the paginator is changed. - * - * @example - * ```html - * - * ``` - * ```typescript - * public onPerPageChange(perPage: number) { - * this.perPage = perPage; - * } - * ``` */ @Output() public perPageChange = new EventEmitter(); /** * Emitted after the current page is changed. - * - * @example - * ```html - * - * ``` - * ```typescript - * public onPageChange(page: number) { - * this.currentPage = page; - * } - * ``` */ @Output() public pageChange = new EventEmitter(); @@ -97,10 +76,6 @@ export class IgxPaginatorComponent implements IgxPaginatorToken { * * @remarks * Returns an object consisting of the current and next pages. - * @example - * ```html - * - * ``` */ @Output() public paging = new EventEmitter(); @@ -110,10 +85,6 @@ export class IgxPaginatorComponent implements IgxPaginatorToken { * * @remarks * Returns an object consisting of the previous and current pages. - * @example - * ```html - * - * ``` */ @Output() public pagingDone = new EventEmitter(); @@ -139,9 +110,6 @@ export class IgxPaginatorComponent implements IgxPaginatorToken { /** * Gets/Sets the current page of the paginator. * The default is 0. - * ```typescript - * let page = this.paginator.page; - * ``` * * @memberof IgxPaginatorComponent */ @@ -170,9 +138,6 @@ export class IgxPaginatorComponent implements IgxPaginatorToken { /** * Gets/Sets the number of visible items per page in the paginator. * The default is 15. - * ```typescript - * let itemsPerPage = this.paginator.perPage; - * ``` * * @memberof IgxPaginatorComponent */ @@ -196,9 +161,6 @@ export class IgxPaginatorComponent implements IgxPaginatorToken { /** * Sets the total records. - * ```typescript - * let totalRecords = this.paginator.totalRecords; - * ``` * * @memberof IgxPaginatorComponent */ @@ -218,9 +180,6 @@ export class IgxPaginatorComponent implements IgxPaginatorToken { /** * Sets custom options in the select of the paginator - * ```typescript - * let options = this.paginator.selectOptions; - * ``` * * @memberof IgxPaginatorComponent */ @@ -236,9 +195,6 @@ export class IgxPaginatorComponent implements IgxPaginatorToken { /** * Sets custom OverlaySettings. - * ```html - * - * ``` */ @Input() public get overlaySettings(): OverlaySettings { @@ -274,9 +230,6 @@ export class IgxPaginatorComponent implements IgxPaginatorToken { /** * Returns if the current page is the last page. - * ```typescript - * const lastPage = this.paginator.isLastPage; - * ``` */ public get isLastPage(): boolean { return this.page + 1 >= this.totalPages; @@ -284,9 +237,6 @@ export class IgxPaginatorComponent implements IgxPaginatorToken { /** * Returns if the current page is the first page. - * ```typescript - * const lastPage = this.paginator.isFirstPage; - * ``` */ public get isFirstPage(): boolean { return this.page === 0; @@ -317,9 +267,6 @@ export class IgxPaginatorComponent implements IgxPaginatorToken { /** * Goes to the next page of the `IgxPaginatorComponent`, if the paginator is not already at the last page. - * ```typescript - * this.paginator.nextPage(); - * ``` * * @memberof IgxPaginatorComponent */ @@ -330,9 +277,6 @@ export class IgxPaginatorComponent implements IgxPaginatorToken { } /** * Goes to the previous page of the `IgxPaginatorComponent`, if the paginator is not already at the first page. - * ```typescript - * this.paginator.previousPage(); - * ``` * * @memberof IgxPaginatorComponent */ @@ -343,9 +287,6 @@ export class IgxPaginatorComponent implements IgxPaginatorToken { } /** * Goes to the desired page index. - * ```typescript - * this.paginator.paginate(1); - * ``` * * @param val * @memberof IgxPaginatorComponent diff --git a/projects/igniteui-angular/progressbar/src/progressbar/progressbar.component.ts b/projects/igniteui-angular/progressbar/src/progressbar/progressbar.component.ts index 18aad18850c..b1f8c9b5619 100644 --- a/projects/igniteui-angular/progressbar/src/progressbar/progressbar.component.ts +++ b/projects/igniteui-angular/progressbar/src/progressbar/progressbar.component.ts @@ -52,26 +52,12 @@ export const valueInRange = (value: number, max: number, min = 0): number => Mat export abstract class BaseProgressDirective { /** * An event, which is triggered after progress is changed. - * ```typescript - * public progressChange(event) { - * alert("Progress made!"); - * } - * //... - * ``` - * ```html - * - * - * ``` */ @Output() public progressChanged = new EventEmitter(); /** * Sets/Gets progressbar animation duration. By default, it is 2000ms. - * ```html - * - * - * ``` */ @Input() public animationDuration = 2000; @@ -90,10 +76,6 @@ export abstract class BaseProgressDirective { /** * Sets progressbar in indeterminate. By default, it is set to false. - * ```html - * - * - * ``` */ @Input({ transform: booleanAttribute }) public set indeterminate(isIndeterminate: boolean) { @@ -105,10 +87,6 @@ export abstract class BaseProgressDirective { * Gets the current state of the progress bar: * - `true` if in the indeterminate state (no progress value displayed), * - `false` if the progress bar shows the actual progress. - * - * ```typescript - * const isIndeterminate = progressBar.indeterminate; - * ``` */ public get indeterminate(): boolean { return this._indeterminate; @@ -116,14 +94,6 @@ export abstract class BaseProgressDirective { /** * Returns the value which update the progress indicator of the `progress bar`. - * ```typescript - * @ViewChild("MyProgressBar") - * public progressBar: IgxLinearProgressBarComponent | IgxCircularBarComponent; - * public stepValue(event) { - * let step = this.progressBar.step; - * alert(step); - * } - * ``` */ @Input() public get step(): number { @@ -135,10 +105,6 @@ export abstract class BaseProgressDirective { /** * Sets the value by which progress indicator is updated. By default, it is 1. - * ```html - * - * - * ``` */ public set step(val: number) { const step = Number(val); @@ -152,9 +118,6 @@ export abstract class BaseProgressDirective { /** * Set a custom text. This will hide the counter value. - * ```html - * - * ``` */ @Input() public set text(value: string) { @@ -164,9 +127,6 @@ export abstract class BaseProgressDirective { /** * Gets a custom text. - * ```typescript - * let text = this.circularBar.text; - * ``` */ public get text(): string { return this._text; @@ -174,10 +134,6 @@ export abstract class BaseProgressDirective { /** * Animating the progress. By default, it is set to true. - * ```html - * - * - * ``` */ @Input({ transform: booleanAttribute }) public set animate(animate: boolean) { @@ -186,14 +142,6 @@ export abstract class BaseProgressDirective { /** * Returns whether the `progress bar` has animation true/false. - * ```typescript - * @ViewChild("MyProgressBar") - * public progressBar: IgxLinearProgressBarComponent | IgxCircularBarComponent; - * public animationStatus(event) { - * let animationStatus = this.progressBar.animate; - * alert(animationStatus); - * } - * ``` */ public get animate(): boolean { return this._animate; @@ -201,10 +149,6 @@ export abstract class BaseProgressDirective { /** * Set maximum value that can be passed. By default it is set to 100. - * ```html - * - * - * ``` */ @HostBinding('attr.aria-valuemax') @Input() @@ -225,14 +169,6 @@ export abstract class BaseProgressDirective { /** * Returns the maximum progress value of the `progress bar`. - * ```typescript - * @ViewChild("MyProgressBar") - * public progressBar: IgxLinearProgressBarComponent | IgxCircularBarComponent; - * public maxValue(event) { - * let max = this.progressBar.max; - * alert(max); - * } - * ``` */ public get max() { return this._max; @@ -271,14 +207,6 @@ export abstract class BaseProgressDirective { /** * Returns the `IgxLinearProgressBarComponent`/`IgxCircularProgressBarComponent` value in percentage. - * ```typescript - * @ViewChild("MyProgressBar") - * public progressBar: IgxLinearProgressBarComponent / IgxCircularProgressBarComponent - * public valuePercent(event){ - * let percentValue = this.progressBar.valueInPercent; - * alert(percentValue); - * } - * ``` */ public get valueInPercent(): number { const result = this.max > 0 ? (this._value / this.max) * 100 : 0; @@ -287,14 +215,6 @@ export abstract class BaseProgressDirective { /** * Returns value that indicates the current `IgxLinearProgressBarComponent`/`IgxCircularProgressBarComponent` position. - * ```typescript - * @ViewChild("MyProgressBar") - * public progressBar: IgxLinearProgressBarComponent / IgxCircularProgressBarComponent; - * public getValue(event) { - * let value = this.progressBar.value; - * alert(value); - * } - * ``` */ @HostBinding('attr.aria-valuenow') @Input() @@ -330,10 +250,6 @@ export abstract class BaseProgressDirective { /** * Set value that indicates the current `IgxLinearProgressBarComponent / IgxCircularProgressBarComponent` position. - * ```html - * - * - * ``` */ public set value(val) { const valInRange = valueInRange(val, this.max); // Ensure value is in range @@ -379,9 +295,6 @@ export class IgxLinearProgressBarComponent extends BaseProgressDirective impleme /** * Set `IgxLinearProgressBarComponent` to have striped style. By default it is set to false. - * ```html - * - * ``` */ @HostBinding('class.igx-linear-bar--striped') @Input({ transform: booleanAttribute }) @@ -389,7 +302,6 @@ export class IgxLinearProgressBarComponent extends BaseProgressDirective impleme /** * @hidden - * ``` */ @HostBinding('class.igx-linear-bar--indeterminate') public get isIndeterminate() { @@ -398,9 +310,6 @@ export class IgxLinearProgressBarComponent extends BaseProgressDirective impleme /** * Sets the value of the `role` attribute. If not provided it will be automatically set to `progressbar`. - * ```html - * - * ``` */ @HostBinding('attr.role') @Input() @@ -408,9 +317,6 @@ export class IgxLinearProgressBarComponent extends BaseProgressDirective impleme /** * Sets the value of `id` attribute. If not provided it will be automatically generated. - * ```html - * - * ``` */ @HostBinding('attr.id') @Input() @@ -435,43 +341,24 @@ export class IgxLinearProgressBarComponent extends BaseProgressDirective impleme /** * Set the position that defines where the text is aligned. * Possible options - `IgxTextAlign.START` (default), `IgxTextAlign.CENTER`, `IgxTextAlign.END`. - * ```typescript - * public positionCenter: IgxTextAlign; - * public ngOnInit() { - * this.positionCenter = IgxTextAlign.CENTER; - * } - * //... - * ``` - * ```html - * - * ``` */ @Input() public textAlign: IgxTextAlign = IgxTextAlign.START; /** * Set the text to be visible. By default, it is set to true. - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public textVisibility = true; /** * Set the position that defines if the text should be aligned above the progress line. By default, is set to false. - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public textTop = false; /** * Set type of the `IgxLinearProgressBarComponent`. Possible options - `default`, `success`, `info`, `warning`, and `error`. - * ```html - * - * ``` */ @Input() public type = 'default'; @@ -529,9 +416,6 @@ export class IgxCircularProgressBarComponent extends BaseProgressDirective imple /** * Sets the value of `id` attribute. If not provided it will be automatically generated. - * ```html - * - * ``` */ @HostBinding('attr.id') @Input() @@ -563,9 +447,6 @@ export class IgxCircularProgressBarComponent extends BaseProgressDirective imple /** * Sets the text visibility. By default, it is set to true. - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public textVisibility = true; @@ -602,9 +483,6 @@ export class IgxCircularProgressBarComponent extends BaseProgressDirective imple /** * Set type of the `IgxCircularProgressBarComponent`. Possible options - `default`, `success`, `info`, `warning`, and `error`. - * ```html - * - * ``` */ @Input() public type = 'default'; diff --git a/projects/igniteui-angular/query-builder/src/query-builder/query-builder-drag.service.ts b/projects/igniteui-angular/query-builder/src/query-builder/query-builder-drag.service.ts index 72755e724fb..45a3cb5f4a7 100644 --- a/projects/igniteui-angular/query-builder/src/query-builder/query-builder-drag.service.ts +++ b/projects/igniteui-angular/query-builder/src/query-builder/query-builder-drag.service.ts @@ -55,7 +55,6 @@ export class IgxQueryBuilderDragService { * @param sourceDragElement The HTML element of the chip that's been dragged * @param sourceExpressionItem The expressionItem of the chip that's been dragged * @param isKeyboardDrag If it's a mouse drag or keyboard reorder - * */ public onMoveStart(sourceDragElement: HTMLElement, sourceExpressionItem: ExpressionItem, isKeyboardDrag: boolean): void { this.resetDragAndDrop(true); @@ -236,7 +235,6 @@ export class IgxQueryBuilderDragService { * * @param sourceDragElement The HTML element of the chip that's been dragged * @param sourceExpressionItem The expressionItem of the chip that's been dragged - * */ public onChipDragIndicatorFocus(sourceDragElement: HTMLElement, sourceExpressionItem: ExpressionItem) { //if drag is not underway, already diff --git a/projects/igniteui-angular/query-builder/src/query-builder/query-builder-header.component.ts b/projects/igniteui-angular/query-builder/src/query-builder/query-builder-header.component.ts index 70fb8580b42..5586a116f7d 100644 --- a/projects/igniteui-angular/query-builder/src/query-builder/query-builder-header.component.ts +++ b/projects/igniteui-angular/query-builder/src/query-builder/query-builder-header.component.ts @@ -10,7 +10,6 @@ import { getCurrentResourceStrings, onResourceChangeHandle } from 'igniteui-angu /* singleInstanceIdentifier */ /* contentParent: QueryBuilder */ /** -* @igxParent IgxQueryBuilderComponent */ @Component({ selector: 'igx-query-builder-header', @@ -31,11 +30,6 @@ export class IgxQueryBuilderHeaderComponent { /** * Sets the title of the `IgxQueryBuilderHeaderComponent`. - * - * @example - * ```html - * - * ``` */ @Input() public title: string; @@ -43,10 +37,6 @@ export class IgxQueryBuilderHeaderComponent { /** * Show/hide the legend. * - * @example - * ```html - * - * ``` * @deprecated in version 19.1.0. */ @Input() diff --git a/projects/igniteui-angular/query-builder/src/query-builder/query-builder.component.ts b/projects/igniteui-angular/query-builder/src/query-builder/query-builder.component.ts index 37e9aa1a898..29f55618488 100644 --- a/projects/igniteui-angular/query-builder/src/query-builder/query-builder.component.ts +++ b/projects/igniteui-angular/query-builder/src/query-builder/query-builder.component.ts @@ -27,12 +27,6 @@ import { IgxQueryBuilderHeaderComponent } from './query-builder-header.component * A component used for operating with complex filters by creating or editing conditions * and grouping them using AND/OR logic. * It is used internally in the Advanced Filtering of the Grid. - * - * @example - * ```html - * - * - * ``` */ @Component({ selector: 'igx-query-builder', @@ -80,20 +74,6 @@ export class IgxQueryBuilderComponent implements OnDestroy { * Each entity should be an {@link EntityType} object describing the fields and optionally child entities. * * Example: - * ```ts - * [ - * { - * name: 'Orders', - * fields: [{ field: 'OrderID', dataType: 'number' }], - * childEntities: [ - * { - * name: 'OrderDetails', - * fields: [{ field: 'ProductID', dataType: 'number' }] - * } - * ] - * } - * ] - * ``` * * @param entities - The array of entities to set. */ @@ -208,10 +188,6 @@ export class IgxQueryBuilderComponent implements OnDestroy { /** * Event fired as the expression tree is changed. - * - * ```html - * - * ``` */ @Output() public expressionTreeChange = new EventEmitter(); diff --git a/projects/igniteui-angular/query-builder/src/query-builder/query-builder.directives.ts b/projects/igniteui-angular/query-builder/src/query-builder/query-builder.directives.ts index 89d6f9431c7..41c18249374 100644 --- a/projects/igniteui-angular/query-builder/src/query-builder/query-builder.directives.ts +++ b/projects/igniteui-angular/query-builder/src/query-builder/query-builder.directives.ts @@ -3,17 +3,6 @@ import { IgxQueryBuilderSearchValueContext } from './query-builder.common'; /** * Defines the custom template that will be used for the search value input of condition in edit mode - * - * @igxModule IgxQueryBuilderModule - * @igxKeywords query builder, query builder search value - * @igxGroup Data entry and display - * - * @example - * - * - * - * - * */ @Directive({ selector: '[igxQueryBuilderSearchValue]', diff --git a/projects/igniteui-angular/radio/src/radio/radio-group/radio-group.directive.ts b/projects/igniteui-angular/radio/src/radio/radio-group/radio-group.directive.ts index 8fb9c40cc14..6f27b761984 100644 --- a/projects/igniteui-angular/radio/src/radio/radio-group/radio-group.directive.ts +++ b/projects/igniteui-angular/radio/src/radio/radio-group/radio-group.directive.ts @@ -33,25 +33,8 @@ let nextId = 0; /** * Radio group directive renders set of radio buttons. * - * @igxModule IgxRadioModule - * - * @igxTheme igx-radio-theme - * - * @igxKeywords radiogroup, radio, button, input - * - * @igxGroup Data Entry & Display - * * @remarks * The Ignite UI Radio Group allows the user to select a single option from an available set of options that are listed side by side. - * - * @example: - * ```html - * - * - * {{item}} - * - * - * ``` */ @Directive({ exportAs: 'igxRadioGroup', @@ -68,11 +51,6 @@ export class IgxRadioGroupDirective implements ControlValueAccessor, OnDestroy, /** * Returns reference to the child radio buttons. - * - * @example - * ```typescript - * let radioButtons = this.radioGroup.radioButtons; - * ``` */ public get radioButtons(): QueryList { this._radioButtonsList.reset(this._radioButtons()); @@ -81,11 +59,6 @@ export class IgxRadioGroupDirective implements ControlValueAccessor, OnDestroy, /** * Sets/gets the `value` attribute. - * - * @example - * ```html - * - * ``` */ @Input() public get value(): any { @@ -101,11 +74,6 @@ export class IgxRadioGroupDirective implements ControlValueAccessor, OnDestroy, /** * Sets/gets the `name` attribute of the radio group component. All child radio buttons inherits this name. - * - * @example - * ```html - * - * ``` */ @Input() public get name(): string { @@ -123,11 +91,6 @@ export class IgxRadioGroupDirective implements ControlValueAccessor, OnDestroy, * * @remarks * If not set, `required` will have value `false`. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public get required(): boolean { @@ -141,12 +104,6 @@ export class IgxRadioGroupDirective implements ControlValueAccessor, OnDestroy, /** * Sets/gets the selected child radio button. - * - * @example - * ```typescript - * let selectedButton = this.radioGroup.selected; - * this.radioGroup.selected = selectedButton; - * ``` */ @Input() public get selected() { @@ -165,11 +122,6 @@ export class IgxRadioGroupDirective implements ControlValueAccessor, OnDestroy, * * @remarks * If not set, `invalid` will have value `false`. - * - * @example - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public get invalid(): boolean { @@ -186,11 +138,6 @@ export class IgxRadioGroupDirective implements ControlValueAccessor, OnDestroy, * * @remarks * Provides references to the selected `IgxRadioComponent` and the `value` property as event arguments. - * - * @example - * ```html - * - * ``` */ // eslint-disable-next-line @angular-eslint/no-output-native @Output() public readonly change: EventEmitter = new EventEmitter(); @@ -209,11 +156,6 @@ export class IgxRadioGroupDirective implements ControlValueAccessor, OnDestroy, * @internal * Sets vertical alignment to the radio group, if `alignment` is set to `vertical`. * By default the alignment is horizontal. - * - * @example - * ```html - * - * ``` */ @HostBinding('class.igx-radio-group--vertical') protected vertical = false; @@ -300,13 +242,6 @@ export class IgxRadioGroupDirective implements ControlValueAccessor, OnDestroy, /** * Returns the alignment of the `igx-radio-group`. - * ```typescript - * @ViewChild("MyRadioGroup") - * public radioGroup: IgxRadioGroupDirective; - * ngAfterViewInit(){ - * let radioAlignment = this.radioGroup.alignment; - * } - * ``` */ @Input() public get alignment(): RadioGroupAlignment { @@ -315,13 +250,6 @@ export class IgxRadioGroupDirective implements ControlValueAccessor, OnDestroy, /** * Allows you to set the radio group alignment. * Available options are `RadioGroupAlignment.horizontal` (default) and `RadioGroupAlignment.vertical`. - * ```typescript - * public alignment = RadioGroupAlignment.vertical; - * //.. - * ``` - * ```html - * - * ``` */ public set alignment(value: RadioGroupAlignment) { this.vertical = value === RadioGroupAlignment.vertical; @@ -440,11 +368,6 @@ export class IgxRadioGroupDirective implements ControlValueAccessor, OnDestroy, * @remarks * Checks whether the provided value is consistent to the current radio button. * If it is, the checked attribute will have value `true` and selected property will contain the selected `IgxRadioComponent`. - * - * @example - * ```typescript - * this.radioGroup.writeValue('radioButtonValue'); - * ``` */ public writeValue(value: any) { this.value = value; diff --git a/projects/igniteui-angular/radio/src/radio/radio.component.ts b/projects/igniteui-angular/radio/src/radio/radio.component.ts index 69b725fead3..3cbd12f9e6b 100644 --- a/projects/igniteui-angular/radio/src/radio/radio.component.ts +++ b/projects/igniteui-angular/radio/src/radio/radio.component.ts @@ -21,11 +21,6 @@ import { IgxRadioGroupDirective } from './radio-group/radio-group.directive'; * The Ignite UI Radio Button allows the user to select a single option from an available set of options that are listed side by side. * * Example: - * ```html - * - * Simple radio button - * - * ``` */ @Component({ selector: 'igx-radio', @@ -47,9 +42,6 @@ export class IgxRadioComponent /** * Returns the class of the radio component. - * ```typescript - * let radioClass = this.radio.cssClass; - * ``` * * @memberof IgxRadioComponent */ @@ -59,12 +51,6 @@ export class IgxRadioComponent /** * Sets/gets the `checked` attribute. * Default value is `false`. - * ```html - * - * ``` - * ```typescript - * let isChecked = this.radio.checked; - * ``` * * @memberof IgxRadioComponent */ @@ -80,12 +66,6 @@ export class IgxRadioComponent /** * Sets/gets the `disabled` attribute. * Default value is `false`. - * ```html - * - * ``` - * ```typescript - * let isDisabled = this.radio.disabled; - * ``` * * @memberof IgxRadioComponent */ @@ -96,12 +76,6 @@ export class IgxRadioComponent /** * Sets/gets whether the radio button is invalid. * Default value is `false`. - * ```html - * - * ``` - * ```typescript - * let isInvalid = this.radio.invalid; - * ``` * * @memberof IgxRadioComponent */ @@ -112,12 +86,6 @@ export class IgxRadioComponent /** * Sets/gets whether the radio component is on focus. * Default value is `false`. - * ```typescript - * this.radio.focus = true; - * ``` - * ```typescript - * let isFocused = this.radio.focused; - * ``` * * @memberof IgxRadioComponent */ @@ -145,9 +113,6 @@ export class IgxRadioComponent /** * Selects the current radio button. - * ```typescript - * this.radio.select(); - * ``` * * @memberof IgxRadioComponent */ @@ -165,9 +130,6 @@ export class IgxRadioComponent /** * Deselects the current radio button. - * ```typescript - * this.radio.deselect(); - * ``` * * @memberof IgxRadioComponent */ @@ -180,9 +142,6 @@ export class IgxRadioComponent /** * Checks whether the provided value is consistent to the current radio button. * If it is, the checked attribute will have value `true`; - * ```typescript - * this.radio.writeValue('radioButtonValue'); - * ``` */ public override writeValue(value: any) { this.value = this.value ?? value; diff --git a/projects/igniteui-angular/select/src/select/select-group.component.ts b/projects/igniteui-angular/select/src/select/select-group.component.ts index e6445486747..c3dfdb89a65 100644 --- a/projects/igniteui-angular/select/src/select/select-group.component.ts +++ b/projects/igniteui-angular/select/src/select/select-group.component.ts @@ -2,8 +2,8 @@ import { Component } from '@angular/core'; import { IgxDropDownGroupComponent } from 'igniteui-angular/drop-down'; /** - * The `` is a container intended for row items in - * a `` container. + * The select item group is a container intended for row items in + * a select container. */ @Component({ selector: 'igx-select-item-group', diff --git a/projects/igniteui-angular/select/src/select/select-item.component.ts b/projects/igniteui-angular/select/src/select/select-item.component.ts index ea85e176f47..2f3fff2e297 100644 --- a/projects/igniteui-angular/select/src/select/select-item.component.ts +++ b/projects/igniteui-angular/select/src/select/select-item.component.ts @@ -14,17 +14,6 @@ export class IgxSelectItemComponent extends IgxDropDownItemComponent { /** * Gets/Sets the item's text to be displayed in the select component's input when the item is selected. - * - * ```typescript - * //get - * let mySelectedItem = this.dropDown.selectedItem; - * let selectedItemText = mySelectedItem.text; - * ``` - * - * ```html - * // set - * - * ``` */ @Input() public get text(): string { @@ -46,11 +35,6 @@ export class IgxSelectItemComponent extends IgxDropDownItemComponent { /** * Sets/Gets if the item is the currently selected one in the select - * - * ```typescript - * let mySelectedItem = this.select.selectedItem; - * let isMyItemSelected = mySelectedItem.selected; // true - * ``` */ public override get selected() { return !this.isHeader && !this.disabled && this.selection.is_item_selected(this.dropDown.id, this); diff --git a/projects/igniteui-angular/select/src/select/select-positioning-strategy.ts b/projects/igniteui-angular/select/src/select/select-positioning-strategy.ts index 8faa5e08f88..76c161c7edc 100644 --- a/projects/igniteui-angular/select/src/select/select-positioning-strategy.ts +++ b/projects/igniteui-angular/select/src/select/select-positioning-strategy.ts @@ -35,9 +35,6 @@ export class SelectPositioningStrategy extends BaseFitPositionStrategy implement * @param document reference to the Document object * @param initialCall should be true if this is the initial call to the method * @param target attaching target for the component to show - * ```typescript - * settings.positionStrategy.position(content, size, document, true); - * ``` */ public override position(contentElement: HTMLElement, size: Size, diff --git a/projects/igniteui-angular/select/src/select/select.component.ts b/projects/igniteui-angular/select/src/select/select.component.ts index ef1ea836949..6dd991ec468 100644 --- a/projects/igniteui-angular/select/src/select/select.component.ts +++ b/projects/igniteui-angular/select/src/select/select.component.ts @@ -52,14 +52,6 @@ export class IgxSelectFooterDirective { * The `igxSelect` provides an input with dropdown list allowing selection of a single item. * * Example: - * ```html - * - * - * - * {{ item.field }} - * - * - * ``` */ @Component({ selector: 'igx-select', @@ -106,24 +98,17 @@ export class IgxSelectComponent extends IgxDropDownComponent implements IgxSelec /** * Sets input placeholder. - * */ @Input() public placeholder; /** * Disables the component. - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public disabled = false; /** * Sets custom OverlaySettings `IgxSelectComponent`. - * ```html - * - * ``` */ @Input() public overlaySettings: OverlaySettings; @@ -134,107 +119,42 @@ export class IgxSelectComponent extends IgxDropDownComponent implements IgxSelec /** * Emitted before the dropdown is opened - * - * ```html - * - * ``` */ @Output() public override opening = new EventEmitter(); /** * Emitted after the dropdown is opened - * - * ```html - * - * ``` */ @Output() public override opened = new EventEmitter(); /** * Emitted before the dropdown is closed - * - * ```html - * - * ``` */ @Output() public override closing = new EventEmitter(); /** * Emitted after the dropdown is closed - * - * ```html - * - * ``` */ @Output() public override closed = new EventEmitter(); /** * The custom template, if any, that should be used when rendering the select TOGGLE(open/close) button - * - * ```typescript - * // Set in typescript - * const myCustomTemplate: TemplateRef = myComponent.customTemplate; - * myComponent.select.toggleIconTemplate = myCustomTemplate; - * ``` - * ```html - * - * - * ... - * - * {{ collapsed ? 'remove_circle' : 'remove_circle_outline'}} - * - * - * ``` */ @ContentChild(IgxSelectToggleIconDirective, { read: TemplateRef }) public toggleIconTemplate: TemplateRef = null; /** * The custom template, if any, that should be used when rendering the HEADER for the select items list - * - * ```typescript - * // Set in typescript - * const myCustomTemplate: TemplateRef = myComponent.customTemplate; - * myComponent.select.headerTemplate = myCustomTemplate; - * ``` - * ```html - * - * - * ... - * - *
- * This is a custom header - *
- *
- *
- * ``` */ @ContentChild(IgxSelectHeaderDirective, { read: TemplateRef, static: false }) public headerTemplate: TemplateRef = null; /** * The custom template, if any, that should be used when rendering the FOOTER for the select items list - * - * ```typescript - * // Set in typescript - * const myCustomTemplate: TemplateRef = myComponent.customTemplate; - * myComponent.select.footerTemplate = myCustomTemplate; - * ``` - * ```html - * - * - * ... - * - * - * - * - * ``` */ @ContentChild(IgxSelectFooterDirective, { read: TemplateRef, static: false }) public footerTemplate: TemplateRef = null; @@ -260,19 +180,6 @@ export class IgxSelectComponent extends IgxDropDownComponent implements IgxSelec /** * Gets/Sets the component value. - * - * ```typescript - * // get - * let selectValue = this.select.value; - * ``` - * - * ```typescript - * // set - * this.select.value = 'London'; - * ``` - * ```html - * - * ``` */ @Input() public get value(): any { @@ -289,9 +196,6 @@ export class IgxSelectComponent extends IgxDropDownComponent implements IgxSelec /** * Sets how the select will be styled. * The allowed values are `line`, `box` and `border`. The input-group default is `line`. - * ```html - * - * ``` */ @Input() public get type(): IgxInputGroupType { @@ -382,10 +286,6 @@ export class IgxSelectComponent extends IgxDropDownComponent implements IgxSelec /** * Opens the select - * - * ```typescript - * this.select.open(); - * ``` */ public override open(overlaySettings?: OverlaySettings) { if (this.disabled || this.items.length === 0) { diff --git a/projects/igniteui-angular/simple-combo/src/simple-combo/simple-combo.component.ts b/projects/igniteui-angular/simple-combo/src/simple-combo/simple-combo.component.ts index e787f9f6c7d..d39d7243002 100644 --- a/projects/igniteui-angular/simple-combo/src/simple-combo/simple-combo.component.ts +++ b/projects/igniteui-angular/simple-combo/src/simple-combo/simple-combo.component.ts @@ -33,21 +33,9 @@ export interface ISimpleComboSelectionChangingEventArgs extends ISimpleComboSele /** * Represents a drop-down list that provides filtering functionality, allowing users to choose a single option from a predefined list. * - * @igxModule IgxSimpleComboModule - * @igxTheme igx-combo-theme - * @igxKeywords combobox, single combo selection - * @igxGroup Grids & Lists - * * @remarks * It provides the ability to filter items as well as perform single selection on the provided data. * Additionally, it exposes keyboard navigation and custom styling capabilities. - * @example - * ```html - * - * - * ``` */ @Component({ selector: 'igx-simple-combo', @@ -73,20 +61,12 @@ export class IgxSimpleComboComponent extends IgxComboBaseDirective implements Co /** * Emitted when item selection is changing, before the selection completes - * - * ```html - * - * ``` */ @Output() public selectionChanging = new EventEmitter(); /** * Emitted when item selection is changed, after the selection completes - * - * ```html - * - * ``` */ @Output() public selectionChanged = new EventEmitter(); @@ -102,9 +82,6 @@ export class IgxSimpleComboComponent extends IgxComboBaseDirective implements Co * Get current selection state * * @returns The selected item, if any - * ```typescript - * let mySelection = this.combo.selection; - * ``` */ public override get selection(): any { return super.selection[0]; @@ -170,9 +147,6 @@ export class IgxSimpleComboComponent extends IgxComboBaseDirective implements Co * Select a defined item * * @param item the item to be selected - * ```typescript - * this.combo.select("New York"); - * ``` */ public select(item: any): void { if (item !== undefined) { @@ -185,9 +159,6 @@ export class IgxSimpleComboComponent extends IgxComboBaseDirective implements Co * Deselect the currently selected item * * @param item the items to be deselected - * ```typescript - * this.combo.deselect("New York"); - * ``` */ public deselect(): void { this.clearSelection(); diff --git a/projects/igniteui-angular/slider/src/slider/slider.common.ts b/projects/igniteui-angular/slider/src/slider/slider.common.ts index 49fd25f3d81..c29460e2d0f 100644 --- a/projects/igniteui-angular/slider/src/slider/slider.common.ts +++ b/projects/igniteui-angular/slider/src/slider/slider.common.ts @@ -3,12 +3,6 @@ import { Directive } from '@angular/core'; /** * Template directive that allows you to set a custom template representing the lower label value of the {@link IgxSliderComponent} * - * ```html - * - * {{value}} - * - * ``` - * * @context {@link IgxSliderComponent.context} */ @Directive({ @@ -20,12 +14,6 @@ export class IgxThumbFromTemplateDirective {} /** * Template directive that allows you to set a custom template representing the upper label value of the {@link IgxSliderComponent} * - * ```html - * - * {{value}} - * - * ``` - * * @context {@link IgxSliderComponent.context} */ @Directive({ diff --git a/projects/igniteui-angular/slider/src/slider/slider.component.ts b/projects/igniteui-angular/slider/src/slider/slider.component.ts index 9c742100f4a..0dea320ffbd 100644 --- a/projects/igniteui-angular/slider/src/slider/slider.component.ts +++ b/projects/igniteui-angular/slider/src/slider/slider.component.ts @@ -22,12 +22,6 @@ let NEXT_ID = 0; * can be defined as continuous or stepped, and you can choose between single and range slider types. * * Example: - * ```html - * - * - * ``` */ @Component({ providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: IgxSliderComponent, multi: true }], @@ -104,9 +98,6 @@ export class IgxSliderComponent implements /** * Sets the value of the `id` attribute. * If not provided it will be automatically generated. - * ```html - * - * ``` */ @HostBinding('attr.id') @Input() @@ -114,9 +105,6 @@ export class IgxSliderComponent implements /** * Sets the duration visibility of thumbs labels. The default value is 750 milliseconds. - * ```html - * - * ``` */ @Input() public thumbLabelVisibilityDuration = 750; @@ -132,12 +120,6 @@ export class IgxSliderComponent implements /** * Gets the type of the `IgxSliderComponent`. * The slider can be IgxSliderType.SLIDER(default) or IgxSliderType.RANGE. - * ```typescript - * @ViewChild("slider2") - * public slider: IgxSliderComponent; - * ngAfterViewInit(){ - * let type = this.slider.type; - * } */ @Input() public get type() { @@ -147,12 +129,6 @@ export class IgxSliderComponent implements /** * Sets the type of the `IgxSliderComponent`. * The slider can be IgxSliderType.SLIDER(default) or IgxSliderType.RANGE. - * ```typescript - * sliderType: IgxSliderType = IgxSliderType.RANGE; - * ``` - * ```html - * - * ``` */ public set type(type: IgxSliderType) { this._type = type; @@ -195,13 +171,6 @@ export class IgxSliderComponent implements /** * Returns the template context corresponding * to {@link IgxThumbFromTemplateDirective} and {@link IgxThumbToTemplateDirective} templates. - * - * ```typescript - * return { - * $implicit // returns the value of the label, - * labels // returns the labels collection the user has passed. - * } - * ``` */ public get context(): any { return { @@ -213,9 +182,6 @@ export class IgxSliderComponent implements /** * Sets the incremental/decremental step of the value when dragging the thumb. * The default step is 1, and step should not be less or equal than 0. - * ```html - * - * ``` */ @Input() public set step(step: number) { @@ -232,13 +198,6 @@ export class IgxSliderComponent implements /** * Returns the incremental/decremental dragging step of the {@link IgxSliderComponent}. - * ```typescript - * @ViewChild("slider2") - * public slider: IgxSliderComponent; - * ngAfterViewInit(){ - * let step = this.slider.step; - * } - * ``` */ public get step() { return this.labelsViewEnabled ? 1 : this._step; @@ -246,13 +205,6 @@ export class IgxSliderComponent implements /** * Returns if the {@link IgxSliderComponent} is disabled. - * ```typescript - * @ViewChild("slider2") - * public slider: IgxSliderComponent; - * ngAfterViewInit(){ - * let isDisabled = this.slider.disabled; - * } - * ``` */ @Input({ transform: booleanAttribute }) public get disabled(): boolean { @@ -261,9 +213,6 @@ export class IgxSliderComponent implements /** * Disables the component. - * ```html - * - * ``` */ public set disabled(disable: boolean) { this._disabled = disable; @@ -275,13 +224,6 @@ export class IgxSliderComponent implements /** * Returns if the {@link IgxSliderComponent} is set as continuous. - * ```typescript - * @ViewChild("slider2") - * public slider: IgxSliderComponent; - * ngAfterViewInit(){ - * let continuous = this.slider.continuous; - * } - * ``` */ @Input({ transform: booleanAttribute }) public get continuous(): boolean { @@ -293,9 +235,6 @@ export class IgxSliderComponent implements * By default is considered that the {@link IgxSliderComponent} is discrete. * Discrete {@link IgxSliderComponent} slider has step indicators over the track and visible thumb labels during interaction. * Continuous {@link IgxSliderComponent} does not have ticks and does not show bubble labels for values. - * ```html - * - * ``` */ public set continuous(continuous: boolean) { this._continuous = continuous; @@ -306,13 +245,6 @@ export class IgxSliderComponent implements /** * Returns the minimal displayed track value of the `IgxSliderComponent`. - * ```typescript - * @ViewChild("slider2") - * public slider: IgxSliderComponent; - * ngAfterViewInit(){ - * let sliderMin = this.slider.minValue; - * } - * ``` */ public get minValue(): number { if (this.labelsViewEnabled) { @@ -325,9 +257,6 @@ export class IgxSliderComponent implements /** * Sets the minimal displayed track value for the `IgxSliderComponent`. * The default minimal value is 0. - * ```html - * - * ``` */ @Input() public set minValue(value: number) { @@ -354,13 +283,6 @@ export class IgxSliderComponent implements /** * Returns the maximum displayed track value for the {@link IgxSliderComponent}. - * ```typescript - * @ViewChild("slider") - * public slider: IgxSliderComponent; - * ngAfterViewInit(){ - * let sliderMax = this.slider.maxValue; - * } - * ``` */ public get maxValue(): number { return this.labelsViewEnabled ? @@ -371,9 +293,6 @@ export class IgxSliderComponent implements /** * Sets the maximal displayed track value for the `IgxSliderComponent`. * The default maximum value is 100. - * ```html - * - * ``` */ @Input() public set maxValue(value: number) { @@ -401,13 +320,6 @@ export class IgxSliderComponent implements /** * Returns the lower boundary of settable values of the `IgxSliderComponent`. * If not set, will return `minValue`. - * ```typescript - * @ViewChild("slider") - * public slider: IgxSliderComponent; - * ngAfterViewInit(){ - * let sliderLowBound = this.slider.lowerBound; - * } - * ``` */ public get lowerBound(): number { if (!Number.isNaN(this._lowerBound) && this._lowerBound !== undefined) { @@ -420,9 +332,6 @@ export class IgxSliderComponent implements /** * Sets the lower boundary of settable values of the `IgxSliderComponent`. * If not set is the same as min value. - * ```html - * - * ``` */ @Input() public set lowerBound(value: number) { @@ -440,13 +349,6 @@ export class IgxSliderComponent implements /** * Returns the upper boundary of settable values of the `IgxSliderComponent`. * If not set, will return `maxValue` - * ```typescript - * @ViewChild("slider") - * public slider: IgxSliderComponent; - * ngAfterViewInit(){ - * let sliderUpBound = this.slider.upperBound; - * } - * ``` */ public get upperBound(): number { if (!Number.isNaN(this._upperBound) && this._upperBound !== undefined) { @@ -459,9 +361,6 @@ export class IgxSliderComponent implements /** * Sets the upper boundary of the `IgxSliderComponent`. * If not set is the same as max value. - * ```html - * - * ``` */ @Input() public set upperBound(value: number) { @@ -479,13 +378,6 @@ export class IgxSliderComponent implements * Returns the slider value. If the slider is of type {@link IgxSliderType.SLIDER} the returned value is number. * If the slider type is {@link IgxSliderType.RANGE}. * The returned value represents an object of {@link lowerValue} and {@link upperValue}. - * ```typescript - * @ViewChild("slider2") - * public slider: IgxSliderComponent; - * public sliderValue(event){ - * let sliderVal = this.slider.value; - * } - * ``` */ public get value(): number | IRangeSliderValue { if (this.isRange) { @@ -505,15 +397,6 @@ export class IgxSliderComponent implements * If the slider type is {@link IgxSliderType.RANGE} the argument * represents an object of {@link lowerValue} and {@link upperValue} properties. * By default the object is associated with the {@link lowerBound} and {@link upperBound} property values. - * ```typescript - * rangeValue = { - * lower: 30, - * upper: 60 - * }; - * ``` - * ```html - * - * ``` */ @Input() public set value(value: number | IRangeSliderValue) { @@ -527,9 +410,6 @@ export class IgxSliderComponent implements /** * Returns the number of the presented primary ticks. - * ```typescript - * const primaryTicks = this.slider.primaryTicks; - * ``` */ @Input() public get primaryTicks() { @@ -542,9 +422,6 @@ export class IgxSliderComponent implements /** * Sets the number of primary ticks. If {@link @labels} is enabled, this property won't function. * Insted enable ticks by {@link showTicks} property. - * ```typescript - * this.slider.primaryTicks = 5; - * ``` */ public set primaryTicks(val: number) { if (val <= 1) { @@ -556,9 +433,6 @@ export class IgxSliderComponent implements /** * Returns the number of the presented secondary ticks. - * ```typescript - * const secondaryTicks = this.slider.secondaryTicks; - * ``` */ @Input() public get secondaryTicks() { @@ -568,9 +442,6 @@ export class IgxSliderComponent implements /** * Sets the number of secondary ticks. The property functions even when {@link labels} is enabled, * but all secondary ticks won't present any tick labels. - * ```typescript - * this.slider.secondaryTicks = 5; - * ``` */ public set secondaryTicks(val: number) { if (val < 1) { @@ -582,27 +453,18 @@ export class IgxSliderComponent implements /** * Show/hide slider ticks - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public showTicks = false; /** * show/hide primary tick labels - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public primaryTickLabels = true; /** * show/hide secondary tick labels - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public secondaryTickLabels = true; @@ -612,9 +474,6 @@ export class IgxSliderComponent implements * bottom - The default orienation, below the slider track. * top - Above the slider track * mirror - combines top and bottom orientation. - * ```html - * - * ``` */ @Input() public ticksOrientation: TicksOrientation = TicksOrientation.Bottom; @@ -624,9 +483,6 @@ export class IgxSliderComponent implements * horizontal - The default rotation * toptobottom - Rotates tick labels vertically to 90deg * bottomtotop - Rotate tick labels vertically to -90deg - * ```html - * - * ``` */ @Input() public tickLabelsOrientation: TickLabelsOrientation = TickLabelsOrientation.Horizontal; @@ -641,56 +497,24 @@ export class IgxSliderComponent implements /** * This event is emitted every time the value is changed. - * ```typescript - * public change(event){ - * alert("The value has been changed!"); - * } - * ``` - * ```html - * - * ``` */ @Output() public valueChange = new EventEmitter(); /** * This event is emitted every time the lower value of a range slider is changed. - * ```typescript - * public change(value){ - * alert(`The lower value has been changed to ${value}`); - * } - * ``` - * ```html - * - * ``` */ @Output() public lowerValueChange = new EventEmitter(); /** * This event is emitted every time the upper value of a range slider is changed. - * ```typescript - * public change(value){ - * alert(`The upper value has been changed to ${value}`); - * } - * ``` - * ```html - * - * ``` */ @Output() public upperValueChange = new EventEmitter(); /** * This event is emitted at the end of every slide interaction. - * ```typescript - * public change(event){ - * alert("The value has been changed!"); - * } - * ``` - * ```html - * - * ``` */ @Output() public dragFinished = new EventEmitter(); @@ -769,13 +593,6 @@ export class IgxSliderComponent implements /** * Returns whether the `IgxSliderComponent` type is RANGE. - * ```typescript - * @ViewChild("slider") - * public slider: IgxSliderComponent; - * ngAfterViewInit(){ - * let sliderRange = this.slider.isRange; - * } - * ``` */ public get isRange(): boolean { return this.type === IgxSliderType.RANGE; @@ -783,13 +600,6 @@ export class IgxSliderComponent implements /** * Returns the lower value of a RANGE `IgxSliderComponent`. - * ```typescript - * @ViewChild("slider") - * public slider: IgxSliderComponent; - * public lowValue(event){ - * let sliderLowValue = this.slider.lowerValue; - * } - * ``` */ public get lowerValue(): number { if (!Number.isNaN(this._lowerValue) && this._lowerValue !== undefined && this._lowerValue >= this.lowerBound) { @@ -801,13 +611,6 @@ export class IgxSliderComponent implements /** * Sets the lower value of a RANGE `IgxSliderComponent`. - * ```typescript - * @ViewChild("slider") - * public slider: IgxSliderComponent; - * public lowValue(event){ - * this.slider.lowerValue = value; - * } - * ``` */ @Input() public set lowerValue(value: number) { @@ -822,13 +625,6 @@ export class IgxSliderComponent implements /** * Returns the upper value of a RANGE `IgxSliderComponent`. * Returns `value` of a SLIDER `IgxSliderComponent` - * ```typescript - * @ViewChild("slider2") - * public slider: IgxSliderComponent; - * public upperValue(event){ - * let upperValue = this.slider.upperValue; - * } - * ``` */ public get upperValue() { if (!Number.isNaN(this._upperValue) && this._upperValue !== undefined && this._upperValue <= this.upperBound) { @@ -840,13 +636,6 @@ export class IgxSliderComponent implements /** * Sets the upper value of a RANGE `IgxSliderComponent`. - * ```typescript - * @ViewChild("slider2") - * public slider: IgxSliderComponent; - * public upperValue(event){ - * this.slider.upperValue = value; - * } - * ``` */ @Input() public set upperValue(value: number) { @@ -860,11 +649,6 @@ export class IgxSliderComponent implements /** * Returns the value corresponding the lower label. - * ```typescript - * @ViewChild("slider") - * public slider: IgxSliderComponent; - * let label = this.slider.lowerLabel; - * ``` */ public get lowerLabel() { return this.labelsViewEnabled ? this.labels[this.lowerValue] : this.lowerValue; @@ -872,11 +656,6 @@ export class IgxSliderComponent implements /** * Returns the value corresponding the upper label. - * ```typescript - * @ViewChild("slider") - * public slider: IgxSliderComponent; - * let label = this.slider.upperLabel; - * ``` */ public get upperLabel() { return this.labelsViewEnabled ? this.labels[this.upperValue] : this.upperValue; @@ -885,11 +664,6 @@ export class IgxSliderComponent implements /** * Returns if label view is enabled. * If the {@link labels} is set, the view is automatically activated. - * ```typescript - * @ViewChild("slider") - * public slider: IgxSliderComponent; - * let labelView = this.slider.labelsViewEnabled; - * ``` */ public get labelsViewEnabled(): boolean { return !!(this.labels && this.labels.length > 1); diff --git a/projects/igniteui-angular/slider/src/slider/ticks/ticks.component.ts b/projects/igniteui-angular/slider/src/slider/ticks/ticks.component.ts index f95a509a261..fc946f22ebe 100644 --- a/projects/igniteui-angular/slider/src/slider/ticks/ticks.component.ts +++ b/projects/igniteui-angular/slider/src/slider/ticks/ticks.component.ts @@ -86,15 +86,6 @@ export class IgxTicksComponent { * Returns the template context corresponding to * {@link IgxTickLabelTemplateDirective} * - * ```typescript - * return { - * $implicit //returns the value per each tick label. - * isPrimery //returns if the tick is primary. - * labels // returns the {@link labels} collection. - * index // returns the index per each tick of the whole sequence. - * } - * ``` - * * @param idx the index per each tick label. */ public context(idx: number): any { diff --git a/projects/igniteui-angular/snackbar/src/snackbar/snackbar.component.ts b/projects/igniteui-angular/snackbar/src/snackbar/snackbar.component.ts index cd7b50468fe..393f0ad2800 100644 --- a/projects/igniteui-angular/snackbar/src/snackbar/snackbar.component.ts +++ b/projects/igniteui-angular/snackbar/src/snackbar/snackbar.component.ts @@ -22,14 +22,6 @@ let NEXT_ID = 0; * include a link to an action such as Undo. * * Example: - * ```html - * - *
- * - * Message sent - * - *
- * ``` */ @Component({ selector: 'igx-snackbar', @@ -41,12 +33,6 @@ export class IgxSnackbarComponent extends IgxNotificationsDirective /** * Sets/gets the `id` of the snackbar. * If not set, the `id` of the first snackbar component will be `"igx-snackbar-0"`; - * ```html - * - * ``` - * ```typescript - * let snackbarId = this.snackbar.id; - * ``` * * @memberof IgxSnackbarComponent */ @@ -65,18 +51,12 @@ export class IgxSnackbarComponent extends IgxNotificationsDirective /** * Sets/gets the `actionText` attribute. - * ```html - * - * ``` */ @Input() public actionText?: string; /** * An event that will be emitted when the action button is clicked. * Provides reference to the `IgxSnackbarComponent` as an argument. - * ```html - * - * ``` */ @Output() public clicked = new EventEmitter(); @@ -84,27 +64,17 @@ export class IgxSnackbarComponent extends IgxNotificationsDirective /** * An event that will be emitted when the snackbar animation starts. * Provides reference to the `ToggleViewEventArgs` interface as an argument. - * ```html - * - * ``` */ @Output() public animationStarted = new EventEmitter(); /** * An event that will be emitted when the snackbar animation ends. * Provides reference to the `ToggleViewEventArgs` interface as an argument. - * ```html - * - * ``` */ @Output() public animationDone = new EventEmitter(); /** * Get the position and animation settings used by the snackbar. - * ```typescript - * @ViewChild('snackbar', { static: true }) public snackbar: IgxSnackbarComponent; - * let currentPosition: PositionSettings = this.snackbar.positionSettings - * ``` */ @Input() public get positionSettings(): PositionSettings { @@ -113,24 +83,6 @@ export class IgxSnackbarComponent extends IgxNotificationsDirective /** * Set the position and animation settings used by the snackbar. - * ```html - * - * ``` - * ```typescript - * import { slideInTop, slideOutBottom } from 'igniteui-angular'; - * ... - * @ViewChild('snackbar', { static: true }) public snackbar: IgxSnackbarComponent; - * public newPositionSettings: PositionSettings = { - * openAnimation: useAnimation(slideInTop, { params: { duration: '1000ms', fromPosition: 'translateY(100%)'}}), - * closeAnimation: useAnimation(slideOutBottom, { params: { duration: '1000ms', fromPosition: 'translateY(0)'}}), - * horizontalDirection: HorizontalAlignment.Left, - * verticalDirection: VerticalAlignment.Middle, - * horizontalStartPoint: HorizontalAlignment.Left, - * verticalStartPoint: VerticalAlignment.Middle, - * minSize: { height: 100, width: 100 } - * }; - * this.snackbar.positionSettings = this.newPositionSettings; - * ``` */ public set positionSettings(settings: PositionSettings) { this._positionSettings = settings; @@ -147,9 +99,6 @@ export class IgxSnackbarComponent extends IgxNotificationsDirective /** * Shows the snackbar and hides it after the `displayTime` is over if `autoHide` is set to `true`. - * ```typescript - * this.snackbar.open(); - * ``` */ public override open(message?: string) { if (message !== undefined) { @@ -163,10 +112,6 @@ export class IgxSnackbarComponent extends IgxNotificationsDirective /** * Opens or closes the snackbar, depending on its current state. - * - * ```typescript - * this.snackbar.toggle(); - * ``` */ public override toggle() { if (this.collapsed || this.isClosing) { diff --git a/projects/igniteui-angular/splitter/src/splitter/splitter-pane/splitter-pane.component.ts b/projects/igniteui-angular/splitter/src/splitter/splitter-pane/splitter-pane.component.ts index 380065de59e..8727849e126 100644 --- a/projects/igniteui-angular/splitter/src/splitter/splitter-pane/splitter-pane.component.ts +++ b/projects/igniteui-angular/splitter/src/splitter/splitter-pane/splitter-pane.component.ts @@ -3,14 +3,6 @@ import { Component, HostBinding, Input, ElementRef, Output, EventEmitter, boolea /** * Represents individual resizable/collapsible panes. * - * @igxModule IgxSplitterModule - * - * @igxParent IgxSplitterComponent - * - * @igxKeywords pane - * - * @igxGroup presentation - * * @remarks * Users can control the resize behavior via the min and max size properties. */ @@ -35,13 +27,6 @@ export class IgxSplitterPaneComponent { /** * Gets/Sets the minimum allowed size of the current pane. - * - * @example - * ```html - * - * ... - * - * ``` */ @Input() public get minSize(): string { @@ -56,13 +41,6 @@ export class IgxSplitterPaneComponent { /** * Gets/Set the maximum allowed size of the current pane. - * - * @example - * ```html - * - * ... - * - * ``` */ @Input() public get maxSize(): string { @@ -78,12 +56,6 @@ export class IgxSplitterPaneComponent { /** * Gets/Sets whether pane is resizable. * - * @example - * ```html - * - * ... - * - * ``` * @remarks * If pane is not resizable its related splitter bar cannot be dragged. */ @@ -92,13 +64,6 @@ export class IgxSplitterPaneComponent { /** * Event fired when collapsed state of pane is changed. - * - * @example - * ```html - * - * ... - * - * ``` */ @Output() public collapsedChange = new EventEmitter(); @@ -152,12 +117,6 @@ export class IgxSplitterPaneComponent { /** * Gets/Sets the size of the current pane. - * * @example - * ```html - * - * ... - * - * ``` */ @Input() public get size() { @@ -205,11 +164,6 @@ export class IgxSplitterPaneComponent { /** * Gets/Sets whether current pane is collapsed. - * - * @example - * ```typescript - * const isCollapsed = pane.collapsed; - * ``` */ @Input({ transform: booleanAttribute }) public set collapsed(value) { @@ -235,11 +189,6 @@ export class IgxSplitterPaneComponent { /** * Toggles the collapsed state of the pane. - * - * @example - * ```typescript - * pane.toggle(); - * ``` */ public toggle() { this.collapsed = !this.collapsed; diff --git a/projects/igniteui-angular/splitter/src/splitter/splitter.component.ts b/projects/igniteui-angular/splitter/src/splitter/splitter.component.ts index 374ec9cfeeb..0b8fcdba0f1 100644 --- a/projects/igniteui-angular/splitter/src/splitter/splitter.component.ts +++ b/projects/igniteui-angular/splitter/src/splitter/splitter.component.ts @@ -19,28 +19,6 @@ export declare interface ISplitterBarResizeEventArgs { /** * Provides a framework for a simple layout, splitting the view horizontally or vertically * into multiple smaller resizable and collapsible areas. - * - * @igxModule IgxSplitterModule - * - * @igxParent Layouts - * - * @igxTheme igx-splitter-theme - * - * @igxKeywords splitter panes layout - * - * @igxGroup presentation - * - * @example - * ```html - * - * - * ... - * - * - * ... - * - * - * ``` */ @Component({ selector: 'igx-splitter', @@ -54,11 +32,6 @@ export class IgxSplitterComponent implements AfterContentInit { /** * Gets the list of splitter panes. - * - * @example - * ```typescript - * const panes = this.splitter.panes; - * ``` */ @ContentChildren(IgxSplitterPaneComponent, { read: IgxSplitterPaneComponent }) public panes!: QueryList; @@ -95,26 +68,12 @@ export class IgxSplitterComponent implements AfterContentInit { /** * Event fired when resizing of panes starts. - * - * @example - * ```html - * - * ... - * - * ``` */ @Output() public resizeStart = new EventEmitter(); /** * Event fired when resizing of panes is in progress. - * - * @example - * ```html - * - * ... - * - * ``` */ @Output() public resizing = new EventEmitter(); @@ -122,13 +81,6 @@ export class IgxSplitterComponent implements AfterContentInit { /** * Event fired when resizing of panes ends. - * - * @example - * ```html - * - * ... - * - * ``` */ @Output() public resizeEnd = new EventEmitter(); @@ -160,11 +112,6 @@ export class IgxSplitterComponent implements AfterContentInit { private sibling!: IgxSplitterPaneComponent; /** * Gets/Sets the splitter orientation. - * - * @example - * ```html - * ... - * ``` */ @Input() public get type() { @@ -179,12 +126,6 @@ export class IgxSplitterComponent implements AfterContentInit { /** * Sets the visibility of the handle and expanders in the splitter bar. * False by default - * - * @example - * ```html - * - * - * ``` */ @Input({ transform: booleanAttribute }) public nonCollapsible = false; // Input to toggle showing/hiding expanders diff --git a/projects/igniteui-angular/stepper/src/stepper/step/step.component.ts b/projects/igniteui-angular/stepper/src/stepper/step/step.component.ts index a2c09f9f43d..62b0f4bf53c 100644 --- a/projects/igniteui-angular/stepper/src/stepper/step/step.component.ts +++ b/projects/igniteui-angular/stepper/src/stepper/step/step.component.ts @@ -14,21 +14,6 @@ let NEXT_ID = 0; /** * The IgxStepComponent is used within the `igx-stepper` element and it holds the content of each step. * It also supports custom indicators, title and subtitle. - * - * @igxModule IgxStepperModule - * - * @igxKeywords step - * - * @example - * ```html - * - * ... - * - * ... - * - * ... - * - * ``` */ @Component({ selector: 'igx-step', @@ -51,12 +36,6 @@ export class IgxStepComponent extends ToggleAnimationPlayer implements IgxStep, /** * Get/Set the `id` of the step component. * Default value is `"igx-step-0"`; - * ```html - * - * ``` - * ```typescript - * const stepId = this.step.id; - * ``` */ @HostBinding('attr.id') @Input() @@ -64,18 +43,6 @@ export class IgxStepComponent extends ToggleAnimationPlayer implements IgxStep, /** * Get/Set whether the step is interactable. - * - * ```html - * - * ... - * - * ... - * - * ``` - * - * ```typescript - * this.stepper.steps[1].disabled = true; - * ``` */ @Input({ transform: booleanAttribute }) public set disabled(value: boolean) { @@ -94,18 +61,6 @@ export class IgxStepComponent extends ToggleAnimationPlayer implements IgxStep, * * @remarks * When set to `true` the following separator is styled `solid`. - * - * ```html - * - * ... - * - * ... - * - * ``` - * - * ```typescript - * this.stepper.steps[1].completed = true; - * ``` */ @Input({ transform: booleanAttribute }) @HostBinding('class.igx-stepper__step--completed') @@ -113,16 +68,6 @@ export class IgxStepComponent extends ToggleAnimationPlayer implements IgxStep, /** * Get/Set whether the step is valid. - *```html - * - * ... - *
- *
- * ... - *
- *
- *
- * ``` */ @Input({ transform: booleanAttribute }) public get isValid(): boolean { @@ -142,13 +87,6 @@ export class IgxStepComponent extends ToggleAnimationPlayer implements IgxStep, * @remarks * Optional steps validity does not affect the default behavior when the stepper is in linear mode i.e. * if optional step is invalid the user could still move to the next step. - * - * ```html - * - * ``` - * ```typescript - * this.stepper.steps[1].optional = true; - * ``` */ @Input({ transform: booleanAttribute }) public optional = false; @@ -156,14 +94,6 @@ export class IgxStepComponent extends ToggleAnimationPlayer implements IgxStep, /** * Get/Set the active state of the step * - * ```html - * - * ``` - * - * ```typescript - * this.stepper.steps[1].active = true; - * ``` - * * @param value: boolean */ @HostBinding('attr.aria-selected') @@ -223,16 +153,6 @@ export class IgxStepComponent extends ToggleAnimationPlayer implements IgxStep, /** * Emitted when the step's `active` property changes. Can be used for two-way binding. - * - * ```html - * - * - * ``` - * - * ```typescript - * const step: IgxStepComponent = this.stepper.step[0]; - * step.activeChange.subscribe((e: boolean) => console.log("Step active state change to ", e)) - * ``` */ @Output() public activeChange = new EventEmitter(); @@ -259,11 +179,6 @@ export class IgxStepComponent extends ToggleAnimationPlayer implements IgxStep, /** * Get the step index inside of the stepper. - * - * ```typescript - * const step = this.stepper.steps[1]; - * const stepIndex: number = step.index; - * ``` */ public get index(): number { return this._index; diff --git a/projects/igniteui-angular/stepper/src/stepper/stepper.component.ts b/projects/igniteui-angular/stepper/src/stepper/stepper.component.ts index 3763ed54010..e0e1f03cd70 100644 --- a/projects/igniteui-angular/stepper/src/stepper/stepper.component.ts +++ b/projects/igniteui-angular/stepper/src/stepper/stepper.component.ts @@ -26,39 +26,10 @@ import { ToggleAnimationSettings } from 'igniteui-angular/expansion-panel'; /** * IgxStepper provides a wizard-like workflow by dividing content into logical steps. * - * @igxModule IgxStepperModule - * - * @igxKeywords stepper - * - * @igxGroup Layouts - * * @remarks * The Ignite UI for Angular Stepper component allows the user to navigate between multiple steps. * It supports horizontal and vertical orientation as well as keyboard navigation and provides API methods to control the active step. * The component offers keyboard navigation and API to control the active step. - * - * @example - * ```html - * - * - * home - *

Home

- *
- * ... - *
- *
- * - *
- * ... - *
- *
- * - *
- * ... - *
- *
- *
- * ``` */ @Component({ selector: 'igx-stepper', @@ -79,11 +50,6 @@ export class IgxStepperComponent extends IgxCarouselComponentBase implements Igx * * @remarks * Default value is `grow`. Other possible values are `fade` and `none`. - * - * ```html - * - * - * ``` */ @Input() public get verticalAnimationType(): VerticalAnimationType { @@ -113,11 +79,6 @@ export class IgxStepperComponent extends IgxCarouselComponentBase implements Igx * * @remarks * Default value is `grow`. Other possible values are `fade` and `none`. - * - * ```html - * - * - * ``` */ @Input() public get horizontalAnimationType(): HorizontalAnimationType { @@ -132,10 +93,6 @@ export class IgxStepperComponent extends IgxCarouselComponentBase implements Igx /** * Get/Set the animation duration. - * ```html - * - * - * ``` */ @Input() public get animationDuration(): number { @@ -155,10 +112,6 @@ export class IgxStepperComponent extends IgxCarouselComponentBase implements Igx * * @remarks * If the stepper is in linear mode and if the active step is valid only then the user is able to move forward. - * - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public get linear(): boolean { @@ -179,10 +132,6 @@ export class IgxStepperComponent extends IgxCarouselComponentBase implements Igx /** * Get/Set the stepper orientation. - * - * ```typescript - * this.stepper.orientation = IgxStepperOrientation.Vertical; - * ``` */ @HostBinding('attr.aria-orientation') @Input() @@ -204,10 +153,6 @@ export class IgxStepperComponent extends IgxCarouselComponentBase implements Igx /** * Get/Set the type of the steps. - * - * ```typescript - * this.stepper.stepType = IgxStepType.Indicator; - * ``` */ @Input() public stepType: IgxStepType = IgxStepType.Full; @@ -217,10 +162,6 @@ export class IgxStepperComponent extends IgxCarouselComponentBase implements Igx * * @remarks * Default value is `false` and the content is below the steps. - * - * ```typescript - * this.stepper.contentTop = true; - * ``` */ @Input({ transform: booleanAttribute }) public contentTop = false; @@ -231,10 +172,6 @@ export class IgxStepperComponent extends IgxCarouselComponentBase implements Igx * @remarks * The default value when the stepper is horizontally orientated is `bottom`. * In vertical layout the default title position is `end`. - * - * ```typescript - * this.stepper.titlePosition = IgxStepperTitlePosition.Top; - * ``` */ @Input() public titlePosition: IgxStepperTitlePosition = null; @@ -255,30 +192,12 @@ export class IgxStepperComponent extends IgxCarouselComponentBase implements Igx /** * Emitted when the stepper's active step is changing. - * - *```html - * - * - * ``` - * - *```typescript - * public handleActiveStepChanging(event: IStepChangingEventArgs) { - * if (event.newIndex < event.oldIndex) { - * event.cancel = true; - * } - * } - *``` */ @Output() public activeStepChanging = new EventEmitter(); /** * Emitted when the active step is changed. - * - * @example - * ``` - * - * ``` */ @Output() public activeStepChanged = new EventEmitter(); @@ -301,10 +220,6 @@ export class IgxStepperComponent extends IgxCarouselComponentBase implements Igx /** * Get all steps. - * - * ```typescript - * const steps: IgxStepComponent[] = this.stepper.steps; - * ``` */ public get steps(): IgxStepComponent[] { return this._steps?.toArray() || []; @@ -386,10 +301,6 @@ export class IgxStepperComponent extends IgxCarouselComponentBase implements Igx /** * Activates the step at a given index. - * - *```typescript - * this.stepper.navigateTo(1); - *``` */ public navigateTo(index: number): void { const step = this.steps[index]; @@ -401,10 +312,6 @@ export class IgxStepperComponent extends IgxCarouselComponentBase implements Igx /** * Activates the next enabled step. - * - *```typescript - * this.stepper.next(); - *``` */ public next(): void { this.moveToNextStep(); @@ -412,10 +319,6 @@ export class IgxStepperComponent extends IgxCarouselComponentBase implements Igx /** * Activates the previous enabled step. - * - *```typescript - * this.stepper.prev(); - *``` */ public prev(): void { this.moveToNextStep(false); @@ -426,9 +329,6 @@ export class IgxStepperComponent extends IgxCarouselComponentBase implements Igx * * @remarks * The steps' content will not be automatically reset. - *```typescript - * this.stepper.reset(); - *``` */ public reset(): void { this.stepperService.visitedSteps.clear(); diff --git a/projects/igniteui-angular/stepper/src/stepper/stepper.directive.ts b/projects/igniteui-angular/stepper/src/stepper/stepper.directive.ts index 9d198e4b34c..363da857c4b 100644 --- a/projects/igniteui-angular/stepper/src/stepper/stepper.directive.ts +++ b/projects/igniteui-angular/stepper/src/stepper/stepper.directive.ts @@ -4,18 +4,6 @@ import { IgxStepperService } from './stepper.service'; /** * Allows a custom element to be added as an active step indicator. - * - * @igxModule IgxStepperModule - * @igxTheme igx-stepper-theme - * @igxKeywords stepper - * @igxGroup Layouts - * - * @example - * - * - * edit - * - * */ @Directive({ selector: '[igxStepActiveIndicator]', @@ -25,18 +13,6 @@ export class IgxStepActiveIndicatorDirective { } /** * Allows a custom element to be added as a complete step indicator. - * - * @igxModule IgxStepperModule - * @igxTheme igx-stepper-theme - * @igxKeywords stepper - * @igxGroup Layouts - * - * @example - * - * - * check - * - * */ @Directive({ selector: '[igxStepCompletedIndicator]', @@ -46,18 +22,6 @@ export class IgxStepCompletedIndicatorDirective { } /** * Allows a custom element to be added as an invalid step indicator. - * - * @igxModule IgxStepperModule - * @igxTheme igx-stepper-theme - * @igxKeywords stepper - * @igxGroup Layouts - * - * @example - * - * - * error - * - * */ @Directive({ selector: '[igxStepInvalidIndicator]', @@ -67,18 +31,6 @@ export class IgxStepInvalidIndicatorDirective { } /** * Allows a custom element to be added as a step indicator. - * - * @igxModule IgxStepperModule - * @igxTheme igx-stepper-theme - * @igxKeywords stepper - * @igxGroup Layouts - * - * @example - * - * - * home - * - * */ @Directive({ selector: '[igxStepIndicator]', @@ -88,18 +40,6 @@ export class IgxStepIndicatorDirective { } /** * Allows a custom element to be added as a step title. - * - * @igxModule IgxStepperModule - * @igxTheme igx-stepper-theme - * @igxKeywords stepper - * @igxGroup Layouts - * - * @example - * - * - *

Home

- *
- *
*/ @Directive({ selector: '[igxStepTitle]', @@ -112,18 +52,6 @@ export class IgxStepTitleDirective { /** * Allows a custom element to be added as a step subtitle. - * - * @igxModule IgxStepperModule - * @igxTheme igx-stepper-theme - * @igxKeywords stepper - * @igxGroup Layouts - * - * @example - * - * - *

Home Subtitle

- *
- *
*/ @Directive({ selector: '[igxStepSubtitle]', @@ -136,18 +64,6 @@ export class IgxStepSubtitleDirective { /** * Allows a custom element to be added as a step content. - * - * @igxModule IgxStepperModule - * @igxTheme igx-stepper-theme - * @igxKeywords stepper - * @igxGroup Layouts - * - * @example - * - * - *
...
- *
- *
*/ @Directive({ selector: '[igxStepContent]', diff --git a/projects/igniteui-angular/switch/src/switch/switch.component.ts b/projects/igniteui-angular/switch/src/switch/switch.component.ts index c60dcbf39f4..3d6bf936256 100644 --- a/projects/igniteui-angular/switch/src/switch/switch.component.ts +++ b/projects/igniteui-angular/switch/src/switch/switch.component.ts @@ -13,23 +13,9 @@ import { EditorProvider, EDITOR_PROVIDER } from 'igniteui-angular/core'; * * The Switch component is a binary choice selection component. * - * @igxModule IgxSwitchModule - * - * @igxTheme igx-switch-theme, igx-tooltip-theme - * - * @igxKeywords switch, states, tooltip - * - * @igxGroup Data Entry & Display * @remarks * * The Ignite UI Switch lets the user toggle between on/off or true/false states. - * - * @example - * ```html - * - * Simple switch - * - * ``` */ @Component({ providers: [{ @@ -46,22 +32,12 @@ export class IgxSwitchComponent implements ControlValueAccessor, EditorProvider, AfterViewInit { /** * Returns the class of the switch component. - * - * @example - * ```typescript - * let switchClass = this.switch.cssClass; - * ``` */ @HostBinding('class.igx-switch') public override cssClass = 'igx-switch'; /** * Sets/gets whether the switch is on or off. * Default value is 'false'. - * - * @example - * ```html - * - * ``` */ @HostBinding('class.igx-switch--checked') @Input() @@ -74,11 +50,6 @@ export class IgxSwitchComponent /** * Sets/gets the `disabled` attribute. * Default value is `false`. - * - * @example - * ```html - * - * ``` */ @HostBinding('class.igx-switch--disabled') @Input({ transform: booleanAttribute }) @@ -87,14 +58,6 @@ export class IgxSwitchComponent /** * Sets/gets whether the switch component is invalid. * Default value is `false`. - * - * @example - * ```html - * - * ``` - * ```typescript - * let isInvalid = this.switch.invalid; - * ``` */ @HostBinding('class.igx-switch--invalid') @Input({ transform: booleanAttribute }) @@ -103,11 +66,6 @@ export class IgxSwitchComponent /** * Sets/gets whether the switch component is on focus. * Default value is `false`. - * - * @example - * ```typescript - * this.switch.focused = true; - * ``` */ @HostBinding('class.igx-switch--focused') public override focused = false; diff --git a/projects/igniteui-angular/tabs/src/tabs/tabs/tabs.component.ts b/projects/igniteui-angular/tabs/src/tabs/tabs/tabs.component.ts index edcf617b6e9..9640aba77b2 100644 --- a/projects/igniteui-angular/tabs/src/tabs/tabs/tabs.component.ts +++ b/projects/igniteui-angular/tabs/src/tabs/tabs/tabs.component.ts @@ -28,32 +28,8 @@ let NEXT_TAB_ID = 0; /** * Tabs component is used to organize or switch between similar data sets. * - * @igxModule IgxTabsModule - * - * @igxTheme igx-tabs-theme - * - * @igxKeywords tabs - * - * @igxGroup Layouts - * * @remarks * The Ignite UI for Angular Tabs component places tabs at the top and allows for scrolling when there are multiple tab items on the screen. - * - * @example - * ```html - * - * - * - * folder - * Tab 1 - * - * - * Content 1 - * - * - * ... - * - * ``` */ @Component({ selector: 'igx-tabs', diff --git a/projects/igniteui-angular/time-picker/src/time-picker/time-picker.component.ts b/projects/igniteui-angular/time-picker/src/time-picker/time-picker.component.ts index 28b2ad29172..911dd6e7d4d 100644 --- a/projects/igniteui-angular/time-picker/src/time-picker/time-picker.component.ts +++ b/projects/igniteui-angular/time-picker/src/time-picker/time-picker.component.ts @@ -98,9 +98,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective /** * Sets the value of the `id` attribute. - * ```html - * - * ``` */ @HostBinding('attr.id') @Input() @@ -111,12 +108,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective * * @remarks * Uses Angular's `DatePipe`. - * - * @example - * ```html - * - * ``` - * */ @Input() public override set displayFormat(value: string) { @@ -132,11 +123,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective * * @remarks * Default is `hh:mm tt` - * - * @example - * ```html - * - * ``` */ @Input() public override set inputFormat(value: string) { @@ -149,11 +135,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective /** * Gets/Sets the interaction mode - dialog or drop down. - * - * @example - * ```html - * - * ``` */ @Input() public override mode: PickerInteractionMode = PickerInteractionMode.DropDown; @@ -163,11 +144,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective * * @remarks * If a `string` value is passed in, it must be in ISO format. - * - * @example - * ```html - * - * ``` */ @Input() public set minValue(value: Date | string) { @@ -188,10 +164,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective /** * Gets if the dropdown/dialog is collapsed - * - * ```typescript - * let isCollapsed = this.timePicker.collapsed; - * ``` */ public override get collapsed(): boolean { return this.toggleRef?.collapsed; @@ -202,11 +174,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective * * @remarks * If a `string` value is passed in, it must be in ISO format. - * - * @example - * ```html - * - * ``` */ @Input() public set maxValue(value: Date | string) { @@ -228,20 +195,12 @@ export class IgxTimePickerComponent extends PickerBaseDirective /** * Sets whether the seconds, minutes and hour spinning will loop back around when end value is reached. * By default it's set to true. - * ```html - * - * ``` */ @Input({ transform: booleanAttribute }) public spinLoop = true; /** * Gets/Sets a custom formatter function on the selected or passed date. - * - * @example - * ```html - * - * ``` */ @Input() public formatter: (val: Date) => string; @@ -252,11 +211,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective /** * Emitted after a selection has been done. - * - * @example - * ```html - * - * ``` */ @Output() public selected = new EventEmitter(); @@ -266,22 +220,12 @@ export class IgxTimePickerComponent extends PickerBaseDirective * * @remarks * Used for `two-way` bindings. - * - * @example - * ```html - * - * ``` */ @Output() public valueChange = new EventEmitter(); /** * Emitted when the user types/spins invalid time in the time-picker editor. - * - * @example - * ```html - * - * ``` */ @Output() public validationFailed = new EventEmitter(); @@ -489,12 +433,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective * * @remarks * The current value is of type `Date` - * - * @example - * ```typescript - * const newValue: Date = new Date(2000, 2, 2, 10, 15, 15); - * this.timePicker.value = newValue; - * ``` */ public get value(): Date | string { return this._value; @@ -502,11 +440,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective /** * An accessor that allows you to set a time using the `value` input. - * ```html - * public date: Date = new Date(Date.now()); - * //... - * - * ``` */ @Input() public set value(value: Date | string) { @@ -549,10 +482,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective * * @remarks * Defaults to the value from resource strings, `"OK"` for the built-in EN. - * - * ```html - * - * ``` */ @Input() public set okButtonLabel(value: string) { @@ -573,9 +502,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective * Overrides the default text of the **Cancel** button. * @remarks * Defaults to the value from resource strings, `"Cancel"` for the built-in EN. - * ```html - * - * ``` */ @Input() public set cancelButtonLabel(value: string) { @@ -596,9 +522,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective * Delta values used to increment or decrement each editor date part on spin actions and * to display time portions in the dropdown/dialog. * By default `itemsDelta` is set to `{hour: 1, minute: 1, second: 1}` - * ```html - * - * ``` */ @Input() public set itemsDelta(value: Pick) { @@ -758,10 +681,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective * Opens the picker's dialog UI. * * @param settings OverlaySettings - the overlay settings to use for positioning the drop down or dialog container according to - * ```html - * - * - * ``` */ public open(settings?: OverlaySettings): void { if (this.disabled || !this.toggleRef.collapsed || this.readOnly) { @@ -783,13 +702,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective /** * Closes the dropdown/dialog. - * ```html - * - * ``` - * ```typescript - * @ViewChild('timePicker', { read: IgxTimePickerComponent }) picker: IgxTimePickerComponent; - * picker.close(); - * ``` */ public close(): void { this.toggleRef.close(); @@ -805,11 +717,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective /** * Clears the time picker value if it is a `string` or resets the time to `00:00:00` if the value is a Date object. - * - * @example - * ```typescript - * this.timePicker.clear(); - * ``` */ public clear(): void { if (this.disabled || this.readOnly) { @@ -837,10 +744,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective /** * Selects time from the igxTimePicker. * - * @example - * ```typescript - * this.timePicker.select(date); - * * @param date Date object containing the time to be selected. */ public select(date: Date | string): void { @@ -852,10 +755,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective * * @param datePart The optional DatePart to increment. Defaults to Hour. * @param delta The optional delta to increment by. Overrides `itemsDelta`. - * @example - * ```typescript - * this.timePicker.increment(DatePart.Hours); - * ``` */ public increment(datePart?: DatePart, delta?: number): void { this.dateTimeEditor.increment(datePart, delta); @@ -866,10 +765,6 @@ export class IgxTimePickerComponent extends PickerBaseDirective * * @param datePart The optional DatePart to decrement. Defaults to Hour. * @param delta The optional delta to decrement by. Overrides `itemsDelta`. - * @example - * ```typescript - * this.timePicker.decrement(DatePart.Seconds); - * ``` */ public decrement(datePart?: DatePart, delta?: number): void { this.dateTimeEditor.decrement(datePart, delta); diff --git a/projects/igniteui-angular/toast/src/toast/toast.component.ts b/projects/igniteui-angular/toast/src/toast/toast.component.ts index 6f0ba09f023..c66c5f27420 100644 --- a/projects/igniteui-angular/toast/src/toast/toast.component.ts +++ b/projects/igniteui-angular/toast/src/toast/toast.component.ts @@ -21,12 +21,6 @@ let NEXT_ID = 0; * be dismissed by the user. Toasts can be displayed at the bottom, middle, or top of the page. * * Example: - * ```html - * - * - * Notification displayed - * - * ``` */ @Component({ selector: 'igx-toast', @@ -45,12 +39,6 @@ export class IgxToastComponent extends IgxNotificationsDirective implements OnIn /** * Sets/gets the `id` of the toast. * If not set, the `id` will have value `"igx-toast-0"`. - * ```html - * - * ``` - * ```typescript - * let toastId = this.toast.id; - * ``` */ @HostBinding('attr.id') @Input() @@ -59,12 +47,6 @@ export class IgxToastComponent extends IgxNotificationsDirective implements OnIn /** * Sets/gets the `role` attribute. * If not set, `role` will have value `"alert"`. - * ```html - * - * ``` - * ```typescript - * let toastRole = this.toast.role; - * ``` * * @memberof IgxToastComponent */ @@ -80,10 +62,6 @@ export class IgxToastComponent extends IgxNotificationsDirective implements OnIn /** * Get the position and animation settings used by the toast. - * ```typescript - * @ViewChild('toast', { static: true }) public toast: IgxToastComponent; - * let currentPosition: PositionSettings = this.toast.positionSettings - * ``` */ @Input() public get positionSettings(): PositionSettings { @@ -92,23 +70,6 @@ export class IgxToastComponent extends IgxNotificationsDirective implements OnIn /** * Set the position and animation settings used by the toast. - * ```html - * - * ``` - * ```typescript - * import { slideInTop, slideOutBottom } from 'igniteui-angular'; - * ... - * @ViewChild('toast', { static: true }) public toast: IgxToastComponent; - * public newPositionSettings: PositionSettings = { - * openAnimation: useAnimation(slideInTop, { params: { duration: '1000ms', fromPosition: 'translateY(100%)'}}), - * closeAnimation: useAnimation(slideOutBottom, { params: { duration: '1000ms', fromPosition: 'translateY(0)'}}), - * horizontalDirection: HorizontalAlignment.Left, - * verticalDirection: VerticalAlignment.Middle, - * horizontalStartPoint: HorizontalAlignment.Left, - * verticalStartPoint: VerticalAlignment.Middle - * }; - * this.toast.positionSettings = this.newPositionSettings; - * ``` */ public set positionSettings(settings: PositionSettings) { this._positionSettings = settings; @@ -123,9 +84,6 @@ export class IgxToastComponent extends IgxNotificationsDirective implements OnIn /** * Gets the nativeElement of the toast. - * ```typescript - * let nativeElement = this.toast.element; - * ``` * * @memberof IgxToastComponent */ @@ -136,10 +94,6 @@ export class IgxToastComponent extends IgxNotificationsDirective implements OnIn /** * Shows the toast. * If `autoHide` is enabled, the toast will hide after `displayTime` is over. - * - * ```typescript - * this.toast.open(); - * ``` */ public override open(message?: string, settings?: PositionSettings) { if (message !== undefined) { @@ -154,10 +108,6 @@ export class IgxToastComponent extends IgxNotificationsDirective implements OnIn /** * Opens or closes the toast, depending on its current state. - * - * ```typescript - * this.toast.toggle(); - * ``` */ public override toggle() { if (this.collapsed || this.isClosing) { diff --git a/projects/igniteui-angular/tree/src/tree/tree-node/tree-node.component.ts b/projects/igniteui-angular/tree/src/tree/tree-node/tree-node.component.ts index 880509c5d67..8909a4831a2 100644 --- a/projects/igniteui-angular/tree/src/tree/tree-node/tree-node.component.ts +++ b/projects/igniteui-angular/tree/src/tree/tree-node/tree-node.component.ts @@ -39,20 +39,6 @@ export class IgxTreeNodeLinkDirective implements OnDestroy { /** * The node's parent. Should be used only when the link is defined * in `` tag outside of its parent, as Angular DI will not properly provide a reference - * - * ```html - * - * - * - * - * - * ... - * - * - * {{ data.label }} - * - * - * ``` */ @Input('igxTreeNodeLink') public set parentNode(val: any) { @@ -111,16 +97,6 @@ export class IgxTreeNodeLinkDirective implements OnDestroy { * * The tree node component represents a child node of the tree component or another tree node. * Usage: - * - * ```html - * - * ... - * - * {{ data.FirstName }} {{ data.LastName }} - * - * ... - * - * ``` */ @Component({ selector: 'igx-tree-node', @@ -144,17 +120,6 @@ export class IgxTreeNodeComponent extends ToggleAnimationPlayer implements Ig * * @remarks * Required for searching through nodes. - * - * @example - * ```html - * - * ... - * - * {{ data.FirstName }} {{ data.LastName }} - * - * ... - * - * ``` */ @Input() public data: T; @@ -230,36 +195,12 @@ export class IgxTreeNodeComponent extends ToggleAnimationPlayer implements Ig /** * Emitted when the node's `selected` property changes. - * - * ```html - * - * - * - * - * ``` - * - * ```typescript - * const node: IgxTreeNode = this.tree.findNodes(data[0])[0]; - * node.selectedChange.pipe(takeUntil(this.destroy$)).subscribe((e: boolean) => console.log("Node selection changed to ", e)) - * ``` */ @Output() public selectedChange = new EventEmitter(); /** * Emitted when the node's `expanded` property changes. - * - * ```html - * - * - * - * - * ``` - * - * ```typescript - * const node: IgxTreeNode = this.tree.findNodes(data[0])[0]; - * node.expandedChange.pipe(takeUntil(this.destroy$)).subscribe((e: boolean) => console.log("Node expansion state changed to ", e)) - * ``` */ @Output() public expandedChange = new EventEmitter(); @@ -272,11 +213,6 @@ export class IgxTreeNodeComponent extends ToggleAnimationPlayer implements Ig /** * Retrieves the full path to the node incuding itself - * - * ```typescript - * const node: IgxTreeNode = this.tree.findNodes(data[0])[0]; - * const path: IgxTreeNode[] = node.path; - * ``` */ public get path(): IgxTreeNode[] { return this.parentNode?.path ? [...this.parentNode.path, this] : [this]; @@ -328,12 +264,6 @@ export class IgxTreeNodeComponent extends ToggleAnimationPlayer implements Ig * * @remarks * Returns `null` if node does not have children - * - * @example - * ```typescript - * const node: IgxTreeNode = this.tree.findNodes(data[0])[0]; - * const children: IgxTreeNode[] = node.children; - * ``` */ public get children(): IgxTreeNode[] { return this._children?.length ? this._children.toArray() : null; @@ -387,41 +317,12 @@ export class IgxTreeNodeComponent extends ToggleAnimationPlayer implements Ig } /** The depth of the node, relative to the root - * - * ```html - * - * ... - * - * My level is {{ node.level }} - * - * - * ``` - * - * ```typescript - * const node: IgxTreeNode = this.tree.findNodes(data[12])[0]; - * const level: number = node.level; - * ``` */ public get level(): number { return this.parentNode ? this.parentNode.level + 1 : 0; } /** Get/set whether the node is selected. Supporst two-way binding. - * - * ```html - * - * ... - * - * {{ node.label }} - * - * - * ``` - * - * ```typescript - * const node: IgxTreeNode = this.tree.findNodes(data[0])[0]; - * const selected = node.selected; - * node.selected = true; - * ``` */ @Input({ transform: booleanAttribute }) public get selected(): boolean { @@ -442,21 +343,6 @@ export class IgxTreeNodeComponent extends ToggleAnimationPlayer implements Ig } /** Get/set whether the node is expanded - * - * ```html - * - * ... - * - * {{ node.label }} - * - * - * ``` - * - * ```typescript - * const node: IgxTreeNode = this.tree.findNodes(data[0])[0]; - * const expanded = node.expanded; - * node.expanded = true; - * ``` */ @Input({ transform: booleanAttribute }) public get expanded() { @@ -478,12 +364,6 @@ export class IgxTreeNodeComponent extends ToggleAnimationPlayer implements Ig /** * The native DOM element representing the node. Could be null in certain environments. - * - * ```typescript - * // get the nativeElement of the second node - * const node: IgxTreeNode = this.tree.nodes.first(); - * const nodeElement: HTMLElement = node.nativeElement; - * ``` */ /** @hidden @internal */ public get nativeElement() { @@ -564,18 +444,6 @@ export class IgxTreeNodeComponent extends ToggleAnimationPlayer implements Ig /** * Toggles the node expansion state, triggering animation - * - * ```html - * - * My Node - * - * - * ``` - * - * ```typescript - * const myNode: IgxTreeNode = this.tree.findNodes(data[0])[0]; - * myNode.toggle(); - * ``` */ public toggle() { if (this.expanded) { @@ -614,18 +482,6 @@ export class IgxTreeNodeComponent extends ToggleAnimationPlayer implements Ig /** * Expands the node, triggering animation - * - * ```html - * - * My Node - * - * - * ``` - * - * ```typescript - * const myNode: IgxTreeNode = this.tree.findNodes(data[0])[0]; - * myNode.expand(); - * ``` */ public expand() { if (this.expanded && !this.treeService.collapsingNodes.has(this)) { @@ -649,18 +505,6 @@ export class IgxTreeNodeComponent extends ToggleAnimationPlayer implements Ig /** * Collapses the node, triggering animation - * - * ```html - * - * My Node - * - * - * ``` - * - * ```typescript - * const myNode: IgxTreeNode = this.tree.findNodes(data[0])[0]; - * myNode.collapse(); - * ``` */ public collapse() { if (!this.expanded || this.treeService.collapsingNodes.has(this)) { diff --git a/projects/igniteui-angular/tree/src/tree/tree.component.ts b/projects/igniteui-angular/tree/src/tree/tree.component.ts index d3f13fd9cdc..1d63d7b201b 100644 --- a/projects/igniteui-angular/tree/src/tree/tree.component.ts +++ b/projects/igniteui-angular/tree/src/tree/tree.component.ts @@ -40,31 +40,12 @@ export class IgxTreeExpandIndicatorDirective { /** * IgxTreeComponent allows a developer to show a set of nodes in a hierarchical fashion. * - * @igxModule IgxTreeModule - * @igxKeywords tree - * @igxTheme igx-tree-theme - * @igxGroup Grids & Lists - * * @remark * The Angular Tree Component allows users to represent hierarchical data in a tree-view structure, * maintaining parent-child relationships, as well as to define static tree-view structure without a corresponding data model. * Its primary purpose is to allow end-users to visualize and navigate within hierarchical data structures. * The Ignite UI for Angular Tree Component also provides load on demand capabilities, item activation, * bi-state and cascading selection of items through built-in checkboxes, built-in keyboard navigation and more. - * - * @example - * ```html - * - * - * I am a parent node 1 - * - * I am a child node 1 - * - * ... - * - * ... - * - * ``` */ @Component({ selector: 'igx-tree', @@ -107,53 +88,17 @@ export class IgxTreeComponent implements IgxTree, OnInit, AfterViewInit, OnDestr /** Get/Set how the tree should handle branch expansion. * If set to `true`, only a single branch can be expanded at a time, collapsing all others - * - * ```html - * - * ... - * - * ``` - * - * ```typescript - * const tree: IgxTree = this.tree; - * this.tree.singleBranchExpand = false; - * ``` */ @Input({ transform: booleanAttribute }) public singleBranchExpand = false; /** Get/Set if nodes should be expanded/collapsed when clicking over them. - * - * ```html - * - * ... - * - * ``` - * - * ```typescript - * const tree: IgxTree = this.tree; - * this.tree.toggleNodeOnClick = false; - * ``` */ @Input({ transform: booleanAttribute }) public toggleNodeOnClick = false; /** Get/Set the animation settings that branches should use when expanding/collpasing. - * - * ```html - * - * - * ``` - * - * ```typescript - * const animationSettings: ToggleAnimationSettings = { - * openAnimation: growVerIn, - * closeAnimation: growVerOut - * }; - * - * this.tree.animationSettings = animationSettings; - * ``` */ @Input() public animationSettings: ToggleAnimationSettings = { @@ -162,116 +107,38 @@ export class IgxTreeComponent implements IgxTree, OnInit, AfterViewInit, OnDestr }; /** Emitted when the node selection is changed through interaction - * - * ```html - * - * - * ``` - * - *```typescript - * public handleNodeSelection(event: ITreeNodeSelectionEvent) { - * const newSelection: IgxTreeNode[] = event.newSelection; - * const added: IgxTreeNode[] = event.added; - * console.log("New selection will be: ", newSelection); - * console.log("Added nodes: ", event.added); - * } - *``` */ @Output() public nodeSelection = new EventEmitter(); /** Emitted when a node is expanding, before it finishes - * - * ```html - * - * - * ``` - * - *```typescript - * public handleNodeExpanding(event: ITreeNodeTogglingEventArgs) { - * const expandedNode: IgxTreeNode = event.node; - * if (expandedNode.disabled) { - * event.cancel = true; - * } - * } - *``` */ @Output() public nodeExpanding = new EventEmitter(); /** Emitted when a node is expanded, after it finishes - * - * ```html - * - * - * ``` - * - *```typescript - * public handleNodeExpanded(event: ITreeNodeToggledEventArgs) { - * const expandedNode: IgxTreeNode = event.node; - * console.log("Node is expanded: ", expandedNode.data); - * } - *``` */ @Output() public nodeExpanded = new EventEmitter(); /** Emitted when a node is collapsing, before it finishes - * - * ```html - * - * - * ``` - * - *```typescript - * public handleNodeCollapsing(event: ITreeNodeTogglingEventArgs) { - * const collapsedNode: IgxTreeNode = event.node; - * if (collapsedNode.alwaysOpen) { - * event.cancel = true; - * } - * } - *``` */ @Output() public nodeCollapsing = new EventEmitter(); /** Emitted when a node is collapsed, after it finishes - * - * @example - * ```html - * - * - * ``` - * ```typescript - * public handleNodeCollapsed(event: ITreeNodeToggledEventArgs) { - * const collapsedNode: IgxTreeNode = event.node; - * console.log("Node is collapsed: ", collapsedNode.data); - * } - * ``` */ @Output() public nodeCollapsed = new EventEmitter(); /** * Emitted when the active node is changed. - * - * @example - * ``` - * - * ``` */ @Output() public activeNodeChanged = new EventEmitter>(); /** * A custom template to be used for the expand indicator of nodes - * ```html - * - * - * {{ expanded ? "close_fullscreen": "open_in_full"}} - * - * - * ``` */ @ContentChild(IgxTreeExpandIndicatorDirective, { read: TemplateRef }) public expandIndicator: TemplateRef; @@ -285,11 +152,6 @@ export class IgxTreeComponent implements IgxTree, OnInit, AfterViewInit, OnDestr /** * Returns all **root level** nodes - * - * ```typescript - * const tree: IgxTree = this.tree; - * const rootNodes: IgxTreeNodeComponent[] = tree.rootNodes; - * ``` */ public get rootNodes(): IgxTreeNodeComponent[] { return this.nodes?.filter(node => node.level === 0); @@ -328,11 +190,6 @@ export class IgxTreeComponent implements IgxTree, OnInit, AfterViewInit, OnDestr * If no nodes are passed, expands ALL nodes * * @param nodes nodes to be expanded - * - * ```typescript - * const targetNodes: IgxTreeNode = this.tree.findNodes(true, (_data: any, node: IgxTreeNode) => node.data.expandable); - * tree.expandAll(nodes); - * ``` */ public expandAll(nodes?: IgxTreeNode[]) { nodes = nodes || this.nodes.toArray(); @@ -344,11 +201,6 @@ export class IgxTreeComponent implements IgxTree, OnInit, AfterViewInit, OnDestr * If no nodes are passed, collapses ALL nodes * * @param nodes nodes to be collapsed - * - * ```typescript - * const targetNodes: IgxTreeNode = this.tree.findNodes(true, (_data: any, node: IgxTreeNode) => node.data.collapsible); - * tree.collapseAll(nodes); - * ``` */ public collapseAll(nodes?: IgxTreeNode[]) { nodes = nodes || this.nodes.toArray(); @@ -358,14 +210,6 @@ export class IgxTreeComponent implements IgxTree, OnInit, AfterViewInit, OnDestr /** * Deselect all nodes if the nodes collection is empty. Otherwise, deselect the nodes in the nodes collection. * - * @example - * ```typescript - * const arr = [ - * this.tree.nodes.toArray()[0], - * this.tree.nodes.toArray()[1] - * ]; - * this.tree.deselectAll(arr); - * ``` * @param nodes: IgxTreeNodeComponent[] */ public deselectAll(nodes?: IgxTreeNodeComponent[]) { @@ -384,29 +228,7 @@ export class IgxTreeComponent implements IgxTree, OnInit, AfterViewInit, OnDestr * @param comparer A custom comparer function that evaluates the passed `searchTerm` against all nodes. * @returns Array of nodes that match the search. `null` if no nodes are found. * - * ```html - * - * - * {{ node.label }} - * - * - * ``` - * - * ```typescript - * public data: DataEntry[] = FETCHED_DATA; - * ... - * const matchedNodes: IgxTreeNode[] = this.tree.findNodes(searchTerm: data[5]); - * ``` - * * Using a custom comparer - * ```typescript - * public data: DataEntry[] = FETCHED_DATA; - * ... - * const comparer: IgxTreeSearchResolver = (data: any, node: IgxTreeNode) { - * return node.data.index % 2 === 0; - * } - * const evenIndexNodes: IgxTreeNode[] = this.tree.findNodes(null, comparer); - * ``` */ public findNodes(searchTerm: any, comparer?: IgxTreeSearchResolver): IgxTreeNodeComponent[] | null { const compareFunc = comparer || this._comparer;