Skip to content

Commit 3cc32a1

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Update splitter pane comments.
1 parent 475119a commit 3cc32a1

File tree

1 file changed

+69
-15
lines changed

1 file changed

+69
-15
lines changed

projects/igniteui-angular/src/lib/splitter/splitter-pane/splitter-pane.component.ts

Lines changed: 69 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
import { Component, HostBinding, Input, ElementRef, Output, EventEmitter } from '@angular/core';
22

33
/**
4-
* Provides reference to `SplitPaneComponent` component.
5-
* Represents individual resizable panes. Users can control the resize behavior via the min and max size properties.
6-
* @export
7-
* @class SplitPaneComponent
4+
* Represents individual resizable/collapsible panes.
5+
* @igxModule IgxSplitterModule
6+
*
7+
* @igxParent IgxSplitterComponent
8+
*
9+
* @igxKeywords pane
10+
*
11+
* @igxGroup presentation
12+
*
13+
* @remarks
14+
* Users can control the resize behavior via the min and max size properties.
815
*/
916
@Component({
1017
selector: 'igx-splitter-pane',
@@ -14,10 +21,18 @@ export class IgxSplitterPaneComponent {
1421

1522
private _size = 'auto';
1623
private _collapsed = false;
24+
25+
/** @hidden @internal */
1726
public owner;
1827

1928
/**
20-
* Sets/gets the size of the current `IgxSplitterPaneComponent`.
29+
* Gets/Sets the size of the current pane.
30+
* * @example
31+
* ```html
32+
* <igx-splitter>
33+
* <igx-splitter-pane [size]='size'>...</igx-splitter-pane>
34+
* </igx-splitter>
35+
* ```
2136
*/
2237
@Input()
2338
get size() {
@@ -30,25 +45,51 @@ export class IgxSplitterPaneComponent {
3045
}
3146

3247
/**
33-
* Sets/gets the minimum allowable size of the current `IgxSplitterPaneComponent`.
48+
* Gets/Sets the minimum allowed size of the current pane.
49+
* @example
50+
* ```html
51+
* <igx-splitter>
52+
* <igx-splitter-pane [minSize]='minSize'>...</igx-splitter-pane>
53+
* </igx-splitter>
54+
* ```
3455
*/
3556
@Input()
3657
public minSize!: string;
3758

3859
/**
39-
* Sets/gets the maximum allowable size of the current `IgxSplitterPaneComponent`.
60+
* Gets/Set the maximum allowed size of the current pane.
61+
* @example
62+
* ```html
63+
* <igx-splitter>
64+
* <igx-splitter-pane [maxSize]='maxSize'>...</igx-splitter-pane>
65+
* </igx-splitter>
66+
* ```
4067
*/
4168
@Input()
4269
public maxSize!: string;
4370

4471
/**
45-
* Sets/Gets whether pane is resizable.
72+
* Gets/Sets whether pane is resizable.
73+
* @example
74+
* ```html
75+
* <igx-splitter>
76+
* <igx-splitter-pane [resizable]='false'>...</igx-splitter-pane>
77+
* </igx-splitter>
78+
* ```
79+
* @remarks
80+
* If pane is not resizable its related splitter bar cannot be dragged.
4681
*/
4782
@Input()
4883
public resizable = true;
4984

5085
/**
5186
* Event fired when collapsed state of pane is changed.
87+
* @example
88+
* ```html
89+
* <igx-splitter>
90+
* <igx-splitter-pane (onToggle)='onPaneToggle($event)'>...</igx-splitter-pane>
91+
* </igx-splitter>
92+
* ```
5293
*/
5394
@Output()
5495
public onToggle = new EventEmitter<IgxSplitterPaneComponent>();
@@ -59,35 +100,39 @@ export class IgxSplitterPaneComponent {
59100
public order!: number;
60101

61102
/**
103+
*
104+
* @hidden @internal
62105
* Gets the host native element.
63-
* @readonly
64-
* @type *
65106
*/
66107
public get element(): any {
67108
return this.el.nativeElement;
68109
}
69110

70111
/**
71-
* Sets/gets the `overflow` property of the current `IgxSplitterPaneComponent`.
112+
* @hidden @internal
113+
* Gets/Sets the `overflow`.
72114
*/
73115
@HostBinding('style.overflow')
74116
public overflow = 'auto';
75117

76118
/**
77-
* Sets/gets the `minHeight` and `minWidth` propertis of the current `IgxSplitterPaneComponent`.
119+
* @hidden @internal
120+
* Gets/Sets the `minHeight` and `minWidth` properties of the current pane.
78121
*/
79122
@HostBinding('style.min-height')
80123
@HostBinding('style.min-width')
81124
public minHeight = 0;
82125

83126
/**
84-
* Sets/gets the `maxHeight` and `maxWidth` propertis of the current `IgxSplitterPaneComponent`.
127+
* @hidden @internal
128+
* Gets/Sets the `maxHeight` and `maxWidth` properties of the current `IgxSplitterPaneComponent`.
85129
*/
86130
@HostBinding('style.max-height')
87131
@HostBinding('style.max-width')
88132
public maxHeight = '100%';
89133

90134
/**
135+
* @hidden @internal
91136
* Gets the `flex` property of the current `IgxSplitterPaneComponent`.
92137
*/
93138
@HostBinding('style.flex')
@@ -99,13 +144,18 @@ export class IgxSplitterPaneComponent {
99144
}
100145

101146
/**
102-
* Sets/gets the 'display' property of the current `IgxSplitterPaneComponent`
147+
* @hidden @internal
148+
* Gets/Sets the 'display' property of the current pane.
103149
*/
104150
@HostBinding('style.display')
105151
public display = 'flex';
106152

107153
/**
108-
* Sets/gets whether current pane is collapsed.
154+
* Gets/Sets whether current pane is collapsed.
155+
* @example
156+
* ```typescript
157+
* const isCollapsed = pane.collapsed;
158+
* ```
109159
*/
110160
@Input()
111161
public set collapsed(value) {
@@ -133,6 +183,10 @@ export class IgxSplitterPaneComponent {
133183

134184
/**
135185
* Toggles the collapsed state of the pane.
186+
* @example
187+
* ```typescript
188+
* pane.toggle();
189+
* ```
136190
*/
137191
public toggle() {
138192
// reset sibling sizes when pane collapse state changes.

0 commit comments

Comments
 (0)