File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,9 @@ class TextRenderer(CellRenderer):
68
68
).tag (sync = True , ** widget_serialization )
69
69
text_color = Union (
70
70
(Color (), Instance (VegaExpr ), Instance (ColorScale )),
71
- default_value = Expr ("default_value" ),
72
71
).tag (sync = True , ** widget_serialization )
73
72
background_color = Union (
74
73
(Color (), Instance (VegaExpr ), Instance (ColorScale )),
75
- default_value = Expr ("default_value" ),
76
74
).tag (sync = True , ** widget_serialization )
77
75
vertical_alignment = Union (
78
76
(
@@ -98,6 +96,14 @@ class TextRenderer(CellRenderer):
98
96
)
99
97
missing = Unicode ("" ).tag (sync = True )
100
98
99
+ @default ('text_color' )
100
+ def _default_text_color (self ):
101
+ return Expr ("default_value" )
102
+
103
+ @default ('background_color' )
104
+ def _default_background_color (self ):
105
+ return Expr ("default_value" )
106
+
101
107
102
108
class BarRenderer (TextRenderer ):
103
109
_model_name = Unicode ("BarRendererModel" ).tag (sync = True )
You can’t perform that action at this time.
0 commit comments