Skip to content

Commit

Permalink
Added extra font properties
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedamen committed May 14, 2021
1 parent 8eb3de8 commit 91933cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ In chartpy/examples you will find several demos

# Coding log

* 14 May 2021
* Added extra font properties for Dash DataTables
* 12 May 2021
* Fixed display of Dash DataTables for new Dash versions
* 06 May 2021
Expand Down
4 changes: 2 additions & 2 deletions chartpy/dashboard/sketchcomponents.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def download_file_link(self, html_tags, prefix_id, downloadplot_caption_list, do


def table(self, caption=None, id=None, prefix_id='', element_add=None, columns=None, downloadplot_caption=None,
downloadplot_tag=None, download_file=None, width=None, font_family='Open Sans Light'):
downloadplot_tag=None, download_file=None, width=None, font_size=14, font_family='Open Sans Light'):
"""
Parameters
Expand Down Expand Up @@ -432,7 +432,7 @@ def table(self, caption=None, id=None, prefix_id='', element_add=None, columns=N
sort_mode="multi",
selected_columns=[],
selected_rows=[],
style_cell={'font-family': font_family},
style_cell={'fontSize': font_size, 'font-family': font_family},
id=prefix_id + id_
)
else:
Expand Down

0 comments on commit 91933cf

Please sign in to comment.