Browse Source

documentation update

master
Marc Wäckerlin 7 months ago
parent
commit
a7f91232f3
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      src/commands.hxx

+ 9
- 1
src/commands.hxx View File

@@ -1915,7 +1915,15 @@ class Set: public Command {
" output, such as <do>, which returns the result of JavaScript or"
" <execute>, which returns the output of the executed command, or"
" <call>, which returns the result of the last command."
" All variables are global with regard to functions.";
" All variables are global with regard to functions.\n\n"
"To set a variable to the value of an input field, you can use:\n\n"
" "+tag()+" <variable>\n"
" do <selector>\n"
" this.value\n\n";
"To set a variable to the inner html content of an element, you can use:\n\n"
" "+tag()+" <variable>\n"
" do <selector>\n"
" this.innerHTML";
}
QString command() const {
if (_next)


Loading…
Cancel
Save