Skip to content
This repository was archived by the owner on Nov 29, 2019. It is now read-only.

Fixed show_labels parameter #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions parambokeh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,9 @@ def _make_widget(self, p_name):

kw = dict(value=value)

if self.p.label_formatter is not None:
if self.p.show_labels is False:
kw['title'] = ''
elif self.p.label_formatter is not None:
kw['title'] = self.p.label_formatter(p_name)
else:
kw['title'] = p_name
Expand Down Expand Up @@ -456,10 +458,7 @@ def format_name(pname):
name = "" if issubclass(type(p),param.Action) else pname
return Div(text=name)

if self.p.show_labels:
widgets += [self.widget(pname) for pname in ordered_params]
else:
widgets += [self.widget(pname) for pname in ordered_params]
widgets += [self.widget(pname) for pname in ordered_params]

if self.p.button and not (self.p.callback is None and self.p.next_n==0):
display_button = Button(label=self.p.button_text)
Expand Down