diff -r 0e0252339e83 -r 5c983ead9db0 svghmi/analyse_widget.xslt --- a/svghmi/analyse_widget.xslt Wed Sep 14 14:59:18 2022 +0200 +++ b/svghmi/analyse_widget.xslt Wed Sep 14 15:02:43 2022 +0200 @@ -2,18 +2,18 @@ - + - + - - - + + + @@ -27,23 +27,23 @@ - + - + - - + + - + @@ -84,7 +84,7 @@ Widget id: label: - + has wrong syntax of frequency forcing @@ -93,6 +93,25 @@ + + + + + + + + + + + + + + + + + + + @@ -100,21 +119,29 @@ - + - - + + + + Widget id: + + label: + + has wrong syntax + + - - - + + + @@ -131,7 +158,7 @@ Widget id: label: - + has wrong syntax of path section @@ -157,7 +184,7 @@ Widget id: label: - + path section use min and max on non mumeric value @@ -274,8 +301,6 @@ - display = "inactive"; - state = "init"; dispatch(value) { @@ -302,19 +327,13 @@ } - animate(){ - - this.set_activation_state(this.display == "active"); - - } - init() { this.bound_onmouseup = this.onmouseup.bind(this); this.element.addEventListener("pointerdown", this.onmousedown.bind(this)); - this.set_activation_state(undefined); + this.activity_state = undefined; } @@ -604,15 +623,27 @@ - Jump widget brings focus to a different page. Mandatory single argument + Jump widget brings focus to a different page. Mandatory first argument gives name of the page. - Optional single path is used as new reference when jumping to a relative - - page, it must point to a HMI_NODE. + If first path is pointint to HMI_NODE variable is used as new reference + + when jumping to a relative page. + + + + Additional arguments are unordered options: + + + + - Absolute: force page jump to be not relative even if first path is of type HMI_NODE + + + + - name=value: Notify PLC about jump by setting variable with path having same name assigned @@ -622,9 +653,47 @@ - "disabled" labeled element, if provided, is shown instead of "active" or - - "inactive" widget when pointed HMI_NODE is null. + Exemples: + + + + Relative jump: + + + + HMI:Jump:RelativePage@/PUMP9 + + HMI:Jump:RelativePage@/PUMP9@role=.userrole#role=="admin" + + + + Absolute jump: + + + + HMI:Jump:AbsolutePage + + HMI:Jump:AbsolutePage@role=.userrole#role=="admin" + + + + Forced absolute jump: + + + + HMI:Jump:AbsolutePage:Absolute@/PUMP9 + + HMI:Jump:AbsolutePage:Absolute:notify=1@notify=/PUMP9 + + + + Jump with feedback + + + + HMI:Jump:AbsolutePage:notify=1@notify=.did_jump + + @@ -637,6 +706,10 @@ reference for relative jump + + + +