Skip to content

Commit 8ee895f

Browse files
committed
fix(spinner): add input mode fix #8598
1 parent 96838b9 commit 8ee895f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/components/spinner/spinner.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ export class Spinner extends Ion {
130130
this._setColor('spinner', value);
131131
}
132132

133+
/**
134+
* @input {string} The mode to apply to this component.
135+
*/
136+
@Input()
137+
set mode(val: string) {
138+
this._setMode('spinner', val);
139+
}
140+
133141
/**
134142
* @input {string} SVG spinner name.
135143
*/
@@ -163,6 +171,8 @@ export class Spinner extends Ion {
163171

164172
constructor(config: Config, elementRef: ElementRef, renderer: Renderer) {
165173
super(config, elementRef, renderer);
174+
175+
this.mode = config.get('mode');
166176
}
167177

168178
/**

0 commit comments

Comments
 (0)