Skip to content

Commit daa2bc0

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Apply review comments.
1 parent e5ccf31 commit daa2bc0

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ export const SPLITTER_INTERACTION_KEYS = new Set('right down left up arrowright
1717
export class IgxSplitBarComponent {
1818

1919
/**
20-
* Sets/gets `IgxSplitBarComponent` orientation.
21-
* @type SplitterType
20+
* Gets/Sets the orientation.
2221
*/
2322
@Input()
24-
public type: SplitterType = SplitterType.Vertical;
23+
public type: SplitterType = SplitterType.Horizontal;
2524

2625
/**
27-
* Sets/gets `IgxSplitBarComponent` element order.
28-
* @type SplitterType
26+
* Sets/gets the element order.
2927
*/
3028
@HostBinding('style.order')
3129
@Input()
@@ -46,7 +44,7 @@ export class IgxSplitBarComponent {
4644
*/
4745
@HostBinding('attr.aria-orientation')
4846
public get orientation() {
49-
return this.type === SplitterType.Horizontal ? 'vertical' : 'horizontal';
47+
return this.type === SplitterType.Horizontal ? 'horizontal' : 'vertical';
5048
}
5149

5250
/**

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { IgxSplitterPaneComponent } from './splitter-pane/splitter-pane.componen
33

44
/**
55
* An enumeration that defines the `SplitterComponent` panes orientation.
6-
* @export
7-
* @enum {number}
86
*/
97
export enum SplitterType {
108
Horizontal,
@@ -41,7 +39,7 @@ export enum SplitterType {
4139
templateUrl: './splitter.component.html'
4240
})
4341
export class IgxSplitterComponent implements AfterContentInit {
44-
private _type: SplitterType = SplitterType.Vertical;
42+
private _type: SplitterType = SplitterType.Horizontal;
4543
/**
4644
* Gets/Sets the splitter orientation.
4745
* @example

src/app/splitter/splitter.sample.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="sample-wrapper">
22
<igx-switch (change)='changeType()' style="padding-left: 10px">Toggle Splitter Direction</igx-switch>
33
<div>Simple sample</div>
4-
<igx-splitter [type]="type" style='height: 30vh;'>
4+
<igx-splitter style='height: 30vh;'>
55
<igx-splitter-pane [resizable]='false'>
66
<div style='width:100%;'>
77
Pane 1

0 commit comments

Comments
 (0)