Black Lives Matter. Please consider donating to Black Girls Code today.

[dash_dual_listbox] How can I get items in selected_box?

########################################
import dash
import dash_html_components as html
import dash_bootstrap_components as dbc
from dash_dual_listbox import DualList

external_stylesheets = [dbc.themes.BOOTSTRAP]
app = dash.Dash(name, external_stylesheets=external_stylesheets)

a = range(500)
item_list = [{‘label’: str(i), ‘value’: str(i)} for i in a]

app.layout = html.Div([
DualList(id=‘DualList’, sortable=True,
available=item_list,
selected= )
])

if name == ‘main’:
app.run_server()
#######################################

Hope things are fine with you.
I’m trying to get selected item list from dash_dual_listbox after moving some items from ‘available part’ to ‘selected part’.
I’ve tried callback function , but failed to make input components…
( [Input(‘DualList’, ‘selected’)] )
Can anyone help me to extract selected item list from dash_dual_listbox ?

image