@@ -288,7 +288,7 @@ export class RadioButtonsModel extends SelectionModel {
288
288
tooltips : [ ] ,
289
289
icons : [ ] ,
290
290
button_style : '' ,
291
- orientation :'vertical' ,
291
+ orientation : 'vertical' ,
292
292
} ;
293
293
}
294
294
}
@@ -306,24 +306,24 @@ export class RadioButtonsView extends DescriptionView {
306
306
this . el . appendChild ( this . container ) ;
307
307
this . container . classList . add ( 'widget-radio-box' ) ;
308
308
309
- this . update ( ) ;
309
+ this . update ( ) ;
310
310
}
311
311
312
312
/**
313
313
* Update the contents of this view
314
314
*
315
- * Called when the model is changed. The model may have been
316
- * changed by another view or by a state update from the back-end.
315
+ * Called when the model is changed. The model may have been
316
+ * changed by another view or by a state update from the back-end.
317
317
*/
318
- update ( options ?: any ) : void {
319
- if ( this . model . get ( 'orientation' ) === 'vertical' ) {
320
- this . container . classList . remove ( 'widget-radio-box-horizontal' ) ;
321
- this . container . classList . add ( 'widget-radio-box-vertical' ) ;
322
- } else {
323
- this . container . classList . remove ( 'widget-radio-box-vertical' ) ;
324
- this . container . classList . add ( 'widget-radio-box-horizontal' ) ;
325
- }
326
- const items : string [ ] = this . model . get ( '_options_labels' ) ;
318
+ update ( options ?: any ) : void {
319
+ if ( this . model . get ( 'orientation' ) === 'vertical' ) {
320
+ this . container . classList . remove ( 'widget-radio-box-horizontal' ) ;
321
+ this . container . classList . add ( 'widget-radio-box-vertical' ) ;
322
+ } else {
323
+ this . container . classList . remove ( 'widget-radio-box-vertical' ) ;
324
+ this . container . classList . add ( 'widget-radio-box-horizontal' ) ;
325
+ }
326
+ const items : string [ ] = this . model . get ( '_options_labels' ) ;
327
327
const radios = Array . from (
328
328
this . container . querySelectorAll < HTMLInputElement > ( 'input[type="radio"]' )
329
329
) . map ( ( x ) => x . value ) ;
0 commit comments