Skip to content

Commit d93818b

Browse files
author
James Boulton
committed
Add missing device view attributes documentation.
1 parent 06c6db2 commit d93818b

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Documents/Documentation.md

+6
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ All of these attributes are config attributes.
6767
* *num_columns : int.* Number of columns for DeviceView.
6868
* *control_title_box_color : Color.* Title box color for controls.
6969
* *control_title_box_transparency : int.* Title box transparency for controls.
70+
* *control_color : Color*, Set the control color, default is Color.WHITE_SMOKE.
71+
* *control_border_color : Color.* Set the border color, default is Color.WHITE_SMOKE.
72+
* *control_background_color: Color.* Set the background color, default is Color.BLACK.
73+
* *control_title_font_size : int.* Size of the title font, default is 16.
74+
* *control_max_font_size : int.* Set the maximum font size, default is 20.
75+
* *control_background_transparency : int.* Background transparency of controls, default is 0.
7076
* *num_grid_columns : int.* The num of grid columns on the edit view.
7177
* *num_grid_rows : int.* The num of grid rows on the edit view.
7278
* *user_tappable_color : Color.* The color of user table buttons on screen in controls

dashio/iotcontrol/device_view.py

+12
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,18 @@ class DeviceView(Control):
137137
Title box color for controls
138138
control_title_box_transparency : int
139139
Title box transparency for controls
140+
control_color : Color, default is Color.WHITE_SMOKE
141+
set the control color.
142+
control_border_color : Color, default is Color.WHITE_SMOKE
143+
Set the border color.
144+
control_background_color: Color, default is Color.BLACK,
145+
Set the background color.
146+
control_title_font_size : int, default is 16
147+
Size of the title font.
148+
control_max_font_size : int, default is 20
149+
Set the maximum font size.
150+
control_background_transparency : int, default is 0
151+
Background transparency of controls.
140152
num_grid_columns : int
141153
The num of grid columns on the edit view
142154
num_grid_rows : int

0 commit comments

Comments
 (0)