summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/widgets.py')
-rw-r--r--bitbake/lib/toaster/toastergui/widgets.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/widgets.py b/bitbake/lib/toaster/toastergui/widgets.py
index d9328d4cdc..d2ef5d3dba 100644
--- a/bitbake/lib/toaster/toastergui/widgets.py
+++ b/bitbake/lib/toaster/toastergui/widgets.py
@@ -168,6 +168,24 @@ class ToasterTable(TemplateView):
168 'computation': computation, 168 'computation': computation,
169 }) 169 })
170 170
171 def set_column_hidden(self, title, hidden):
172 """
173 Set the hidden state of the column to the value of hidden
174 """
175 for col in self.columns:
176 if col['title'] == title:
177 col['hidden'] = hidden
178 break
179
180 def set_column_hideable(self, title, hideable):
181 """
182 Set the hideable state of the column to the value of hideable
183 """
184 for col in self.columns:
185 if col['title'] == title:
186 col['hideable'] = hideable
187 break
188
171 def render_static_data(self, template, row): 189 def render_static_data(self, template, row):
172 """Utility function to render the static data template""" 190 """Utility function to render the static data template"""
173 191