@@ -355,6 +355,7 @@ def get_numerical_input(
355355 help_str : str | None = None ,
356356 is_int : bool = False ,
357357 shape : tuple [int , ...] = (),
358+ label_style : dict | None = None ,
358359 ** kwargs ,
359360 ) -> html .Div :
360361 """For Python classes which take matrices as inputs, this will generate a corresponding Dash
@@ -370,6 +371,7 @@ def get_numerical_input(
370371 :param help_str: Text for a tooltip when hovering over label.
371372 :param is_int: if True, will use a numeric input
372373 :param shape: (3, 3) for matrix, (1, 3) for vector, (1, 1) for scalar
374+ :param label_style: the customized styling for labeling `add_label_help`
373375 :return: a Dash layout
374376 """
375377 state = state or {}
@@ -440,7 +442,7 @@ def matrix_element(idx, value=0):
440442
441443 matrix = html .Div (matrix_div_contents )
442444
443- return add_label_help (matrix , label , help_str )
445+ return add_label_help (matrix , label , help_str , label_style )
444446
445447 def get_slider_input (
446448 self ,
@@ -450,6 +452,7 @@ def get_slider_input(
450452 label : str | None = None ,
451453 help_str : str | None = None ,
452454 multiple : bool = False ,
455+ label_style : dict | None = None ,
453456 ** kwargs ,
454457 ):
455458 state = state or {}
@@ -473,7 +476,7 @@ def get_slider_input(
473476 ** slider_kwargs ,
474477 )
475478
476- return add_label_help (slider_input , label , help_str )
479+ return add_label_help (slider_input , label , help_str , label_style )
477480
478481 def get_bool_input (
479482 self ,
@@ -482,6 +485,7 @@ def get_bool_input(
482485 state : dict | None = None ,
483486 label : str | None = None ,
484487 help_str : str | None = None ,
488+ label_style : dict | None = None ,
485489 ** kwargs ,
486490 ):
487491 """For Python classes which take boolean values as inputs, this will generate a
@@ -496,6 +500,7 @@ def get_bool_input(
496500 and the default value as a value. Ignored if `default` is set. It can be useful
497501 to use `state` if you want to set defaults for multiple inputs from a single dictionary.
498502 :param help_str: Text for a tooltip when hovering over label.
503+ :param label_style: the customized styling for labeling `add_label_help`
499504 :return: a Dash layout
500505 """
501506 state = state or {}
@@ -508,7 +513,7 @@ def get_bool_input(
508513 ** kwargs ,
509514 )
510515
511- return add_label_help (bool_input , label , help_str )
516+ return add_label_help (bool_input , label , help_str , label_style )
512517
513518 def get_choice_input (
514519 self ,
@@ -519,6 +524,7 @@ def get_choice_input(
519524 help_str : str | None = None ,
520525 options : list [dict ] | None = None ,
521526 clearable : bool = False ,
527+ label_style : dict | None = None ,
522528 ** kwargs ,
523529 ):
524530 """For Python classes which take pre-defined values as inputs, this will generate a
@@ -534,6 +540,7 @@ def get_choice_input(
534540 :param help_str: Text for a tooltip when hovering over label.
535541 :param options: Options to choose from, as per dcc.Dropdown
536542 :param clearable: If True, will allow Dropdown to be cleared after a selection is made.
543+ :param label_style: the customized styling for labeling `add_label_help`
537544 :return: a Dash layout
538545 """
539546 state = state or {}
@@ -547,7 +554,7 @@ def get_choice_input(
547554 arbitraryProps = {** kwargs },
548555 )
549556
550- return add_label_help (option_input , label , help_str )
557+ return add_label_help (option_input , label , help_str , label_style )
551558
552559 def get_dict_input (
553560 self ,
@@ -559,6 +566,7 @@ def get_dict_input(
559566 dict_size : int | None = None ,
560567 key_name : str = "key" ,
561568 value_name : str = "value" ,
569+ label_style : dict | None = None ,
562570 ** kwargs ,
563571 ) -> mpc .FilterField :
564572 """For Python classes which take dictionaries as inputs. The keys are fixed and only the
@@ -575,6 +583,7 @@ def get_dict_input(
575583 :param dict_size: size of the dict. Can be specified in case there is no initial default or state.
576584 :param key_name: name describing the keys of the dictionary.
577585 :param value_name: name describing the values of the dictionary.
586+ :param label_style: the customized styling for labeling `add_label_help`
578587 :return: a Dash layout
579588 """
580589 state = state or {}
@@ -625,7 +634,7 @@ def pair_element(idx, key=None, value=None):
625634
626635 dict_input = html .Div (dict_div_contents )
627636
628- return add_label_help (dict_input , label , help_str )
637+ return add_label_help (dict_input , label , help_str , label_style )
629638
630639 def get_alarm_window (
631640 self ,
0 commit comments