Skip to content

Commit

Permalink
SDKTECHNO-271: fix client errors, add debounce to fix input UX issue
Browse files Browse the repository at this point in the history
  • Loading branch information
César Tailleur committed Oct 18, 2024
1 parent 5ae4c66 commit 9943e0e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
var dagcomponentfuncs = (window.dashAgGridComponentFunctions = window.dashAgGridComponentFunctions || {});

console.log('dagcomponentfuncs = ', dagcomponentfuncs);
dagcomponentfuncs.StockLink = function (props) {
console.log('props = ', props);
return React.createElement(
'a',
{
//href: 'https://finance.yahoo.com/quote/' + props.value,
href: props.value,
target : '_blank'
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get_body_app():
html.Div(id="sui-root", children=[
html.Div(
id="header",
style={'background-color': '#1F3046'},
style={'backgroundColor': '#1F3046'},
className="sui-g-grid as--middle sui-h-pv-md sui-h-ph-lg",
children=[
html.Div(
Expand Down Expand Up @@ -54,7 +54,6 @@ def get_body_app():
speed_multiplier=1.5,
width=50,
# type="default",
fullscreen=True,
children=[
# div contenu des onglets
html.Div(id='tabs-content', className="sui-l-layout__page"),
Expand Down Expand Up @@ -159,8 +158,10 @@ def tab_backup(list_max_dates_backup):
html.Div(className="sui-m-search-bar",
children=[
html.Span(className="sui-m-search-bar__icon",
children=[html.I(className="sui-a-icon as--fa-search")]),
dcc.Input(id="input-filter", placeholder="Filter by name, id, ...",
children=[html.I(className="sui-a-icon as--fa-search")]),
dcc.Input(id="input-filter", value="",
placeholder="Filter by name, id... and press Enter",
debounce=True,
className="sui-a-form-control"),
]
),
Expand All @@ -181,9 +182,9 @@ def tab_backup(list_max_dates_backup):
columnSize="sizeToFit",
selectedRows=[],
defaultColDef={
"filter": True,
#"filter": True,
# "filterParams": {"buttons": ["reset", "apply"],},
"sortable": True,
"sortable": False,
# "resizable": True,
},
dashGridOptions={
Expand All @@ -193,6 +194,7 @@ def tab_backup(list_max_dates_backup):
"animateRows": False,
'pagination': True,
'paginationPageSize': 10,
'quickFilterText': "",
# "paginationAutoPageSize": True,
"paginationPageSizeSelector": False
},
Expand Down

0 comments on commit 9943e0e

Please sign in to comment.