Skip to content

Commit

Permalink
UPDATE: Add support for setting icon in widgets python file
Browse files Browse the repository at this point in the history
  • Loading branch information
wickeym committed May 17, 2021
1 parent 62c7235 commit 83d80ce
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 @@ -55,6 +55,7 @@ class NumberWidget(Widget):
updated_at = ''
detail = ''
value = ''
icon = ''

def get_title(self):
return self.title
Expand All @@ -71,13 +72,17 @@ def get_detail(self):
def get_value(self):
return self.value

def get_icon(self):
return self.icon

def get_context(self):
return {
'title': self.get_title(),
'moreInfo': self.get_more_info(),
'updatedAt': self.get_updated_at(),
'detail': self.get_detail(),
'value': self.get_value(),
'icon': self.get_icon(),
}


Expand Down

0 comments on commit 83d80ce

Please sign in to comment.