Skip to content

Commit

Permalink
Merge pull request #62 from rvernica/patch-widget-value
Browse files Browse the repository at this point in the history
Add value to Knob Widget
  • Loading branch information
Mauricio committed Apr 8, 2016
2 parents 4a1c448 + cf8a00c commit 9576a90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dashing/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def get_context(self):

class KnobWidget(Widget):
title = ''
value = ''
data = {}
detail = ''
more_info = ''
Expand All @@ -158,12 +159,16 @@ def get_detail(self):
def get_more_info(self):
return self.more_info

def get_value(self):
return self.value

def get_updated_at(self):
return self.updated_at

def get_context(self):
return {
'title': self.get_title(),
'value': self.get_value(),
'data': self.get_data(),
'detail': self.get_detail(),
'moreInfo': self.get_more_info(),
Expand Down

0 comments on commit 9576a90

Please sign in to comment.