Skip to content

Commit 738eac2

Browse files
authored
docs(drag-drop): update drag-and-drop.py
1 parent 2bdcd24 commit 738eac2

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

examples/05_charts/Plotly/drag-and-drop.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,16 @@ def __init__(self, server=None):
9999
def select_plot(self, plot_name):
100100
self.active_plot_name = plot_name
101101

102-
def apply_placement(self, plot_name):
103-
if plot_name is not None and self.active_plot_name is not None:
104-
self.update_plot_figure(self.active_plot_name, plot_name)
102+
def apply_placement(self, slot_name):
103+
if slot_name is not None and self.active_plot_name is not None:
104+
self.update_plot_figure(self.active_plot_name, slot_name)
105105
self.active_plot_name = None
106106

107-
def update_plot_figure(self, plot_type, plot_destination):
108-
figure_data = PLOTS.get(plot_type)
107+
def update_plot_figure(self, plot_name, slot_name):
108+
figure_data = PLOTS.get(plot_name)
109109
if figure_data:
110-
self.ctx[plot_destination].update(figure_data)
111-
self.state[plot_destination] = True # show the plot
110+
self.ctx[slot_name].update(figure_data)
111+
self.state[slot_name] = True # show the plot
112112

113113
def _build_ui(self):
114114
with VAppLayout(self.server, full_height=True) as self.ui:

0 commit comments

Comments
 (0)