Skip to content

Commit 49c5f3c

Browse files
authored
Merge pull request #8887 from IgniteUI/simeonoff/fix-8869
lint(radio-group): fix warnings
2 parents d9aa95b + 1303916 commit 49c5f3c

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

projects/igniteui-angular/src/lib/directives/radio/radio-group.directive.ts

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
7676
* ```
7777
*/
7878
@Input()
79-
get value(): any {
79+
public get value(): any {
8080
return this._value;
8181
}
82-
set value(newValue: any) {
82+
public set value(newValue: any) {
8383
if (this._value !== newValue) {
8484
this._value = newValue;
8585
this._selectRadioButton();
@@ -95,10 +95,10 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
9595
* ```
9696
*/
9797
@Input()
98-
get name(): string {
98+
public get name(): string {
9999
return this._name;
100100
}
101-
set name(newValue: string) {
101+
public set name(newValue: string) {
102102
if (this._name !== newValue) {
103103
this._name = newValue;
104104
this._setRadioButtonNames();
@@ -117,10 +117,10 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
117117
* ```
118118
*/
119119
@Input()
120-
get required(): boolean {
120+
public get required(): boolean {
121121
return this._required;
122122
}
123-
set required(newValue: boolean) {
123+
public set required(newValue: boolean) {
124124
if (this._required !== newValue) {
125125
this._required = newValue;
126126
this._setRadioButtonsRequired();
@@ -136,10 +136,10 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
136136
* ```
137137
*/
138138
@Input()
139-
get disabled(): boolean {
139+
public get disabled(): boolean {
140140
return this._disabled;
141141
}
142-
set disabled(newValue: boolean) {
142+
public set disabled(newValue: boolean) {
143143
if (this._disabled !== newValue) {
144144
this._disabled = newValue;
145145
this._disableRadioButtons();
@@ -158,10 +158,10 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
158158
* ```
159159
*/
160160
@Input()
161-
get labelPosition(): RadioLabelPosition | string {
161+
public get labelPosition(): RadioLabelPosition | string {
162162
return this._labelPosition;
163163
}
164-
set labelPosition(newValue: RadioLabelPosition | string) {
164+
public set labelPosition(newValue: RadioLabelPosition | string) {
165165
if (this._labelPosition !== newValue) {
166166
this._labelPosition = newValue === RadioLabelPosition.BEFORE ? RadioLabelPosition.BEFORE : RadioLabelPosition.AFTER;
167167
this._setRadioButtonLabelPosition();
@@ -178,10 +178,10 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
178178
* ```
179179
*/
180180
@Input()
181-
get selected() {
181+
public get selected() {
182182
return this._selected;
183183
}
184-
set selected(selected: IgxRadioComponent | null) {
184+
public set selected(selected: IgxRadioComponent | null) {
185185
if (this._selected !== selected) {
186186
this._selected = selected;
187187
this.value = selected ? selected.value : null;
@@ -201,7 +201,7 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
201201
*/
202202
// eslint-disable-next-line @angular-eslint/no-output-native
203203
@Output()
204-
readonly change: EventEmitter<IChangeRadioEventArgs> = new EventEmitter<IChangeRadioEventArgs>();
204+
public readonly change: EventEmitter<IChangeRadioEventArgs> = new EventEmitter<IChangeRadioEventArgs>();
205205

206206
/**
207207
* The css class applied to the component.
@@ -235,7 +235,7 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
235235
* ```
236236
*/
237237
@Input()
238-
get alignment(): RadioGroupAlignment {
238+
public get alignment(): RadioGroupAlignment {
239239
return this.vertical ? RadioGroupAlignment.vertical : RadioGroupAlignment.horizontal;
240240
}
241241
/**
@@ -249,7 +249,7 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
249249
* <igx-radio-group [alignment]="alignment"></igx-radio-group>
250250
* ```
251251
*/
252-
set alignment(value: RadioGroupAlignment) {
252+
public set alignment(value: RadioGroupAlignment) {
253253
this.vertical = value === RadioGroupAlignment.vertical;
254254
}
255255

@@ -299,7 +299,11 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
299299
*/
300300
private destroy$ = new Subject<boolean>();
301301

302-
ngAfterContentInit() {
302+
/**
303+
* @hidden
304+
* @internal
305+
*/
306+
public ngAfterContentInit() {
303307
// The initial value can possibly be set by NgModel and it is possible that
304308
// the OnInit of the NgModel occurs after the OnInit of this class.
305309
this._isInitialized = true;

0 commit comments

Comments
 (0)