beremiz
Clone
Summary
Browse
Changes
Graph
SVGHMI: drop useless code from gen_dnd_widget.yslt2, renamed python callback to pass messages
svghmi
2021-05-02, Edouard Tisserant
f2bfb047d0e6
SVGHMI: drop useless code from gen_dnd_widget.yslt2, renamed python callback to pass messages
// widget_back.ysl2
widget_class("Back")
||
on_click(evt) {
if(jump_history.length > 1){
jump_history.pop();
let [page_name, index] = jump_history.pop();
switch_page(page_name, index);
}
}
init() {
this.element.setAttribute("onclick", "hmi_widgets['"+this.element_id+"'].on_click(evt)");
}
||