Dash Charlotte v0.2.2
This is the changelog of version 0.2.2, aka The Table Update.
dash_charlotte.components.Table
Create a Table
instance to serve as a wrapper for the table columns.
These table columns are subclasses of the TableColumn
object.
TableButtonCol
TableCheckBoxCol
TableDropdownCol
TableInputCol
TableTextCol
Each of these TableColumn
objects is a type of column to be added to the Table
parent component.
col1 = TableDropdownCol(
header = 'Dropdown',
cell_style = {'padding': 5},
dropdown_id = dropdown_data,
dropdown_placeholder = 'Select...',
dropdown_options = [
{'label': 'Yes', 'value': 1},
{'label': 'No', 'value': 0}
]
)
col2 = TableTextCol(
header = 'Style Format',
text = text_data,
text_formatting = format_callable
)
col3 = TableInputCol(
header = 'Number Input',
cell_style = {'padding': 5},
input_id = input_ids,
input_value = input_values,
input_type = 'number',
input_min = 0,
input_max = 9
)
col4 = TableTextCol(
header = 'String Format',
text = number_data,
text_formatting = '$ {:,.2f}'.format
)
col5 = TableButtonCol(
header = 'Button',
cell_style = {'text-align': 'center'},
button_icon = 'fas fa-exclamation-triangle',
button_text = button_text,
button_id = button_ids
)
table = Table(
columns = [col1, col2, col3, col4, col5],
bordered = True,
dark = False,
hover = True,
responsive = True,
striped = True,
className = 'mb-0'
)
Check the example app or the live demo
Small changes
Drawer
hides itself on small screens- Add
dcc.Location
default attribute toLoginForm
- Change icon package dependencies of
Navbar
General Dev Stuff
- Add new CDN links to minified CSS theme files.
- Autoupload to PyPI with GitHub Actions