@@ -163,6 +163,22 @@ export class RadioGroup implements OnInit, AfterContentInit, ControlValueAccesso
163163 this . markRadiosForCheck ( ) ;
164164 }
165165
166+ /**
167+ * Returns the skeleton value in the `RadioGroup` if there is one.
168+ */
169+ @Input ( )
170+ get skeleton ( ) : any {
171+ return this . _skeleton ;
172+ }
173+
174+ /**
175+ * Sets the skeleton value for all `Radio` to the skeleton value of `RadioGroup`.
176+ */
177+ set skeleton ( value : any ) {
178+ this . _skeleton = value ;
179+ this . updateChildren ( ) ;
180+ }
181+
166182 /**
167183 * Binds 'radiogroup' value to the role attribute for `RadioGroup`.
168184 */
@@ -181,6 +197,10 @@ export class RadioGroup implements OnInit, AfterContentInit, ControlValueAccesso
181197 * Reflects whether or not the input is disabled and cannot be selected.
182198 */
183199 protected _disabled = false ;
200+ /**
201+ * Reflects wheather or not the dropdown is loading.
202+ */
203+ protected _skeleton = false ;
184204 /**
185205 * The value of the selected option within the `RadioGroup`.
186206 */
@@ -301,6 +321,8 @@ export class RadioGroup implements OnInit, AfterContentInit, ControlValueAccesso
301321 this . radios = updatedRadios ;
302322 this . updateFocusableRadio ( ) ;
303323 } ) ;
324+
325+ this . updateChildren ( ) ;
304326 }
305327
306328 updateFocusableRadio ( ) {
@@ -338,4 +360,10 @@ export class RadioGroup implements OnInit, AfterContentInit, ControlValueAccesso
338360 * Method set in registerOnChange to propagate changes back to the form.
339361 */
340362 propagateChange = ( _ : any ) => { } ;
363+
364+ protected updateChildren ( ) {
365+ if ( this . radios ) {
366+ this . radios . toArray ( ) . forEach ( child => child . skeleton = this . skeleton ) ;
367+ }
368+ }
341369}
0 commit comments