Skip to content
Snippets Groups Projects
Commit 9c7c1c58 authored by Jacob Wikmark's avatar Jacob Wikmark
Browse files

It might be necessary to use Mux

parent 09037fe5
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ and the package should be installed.
To create a gui, use `gui = GUI()`, and to get the GUI graphics use `gui()`. The set! function sets widgets or DOM objects to the gui and add! adds them. The following example produces a hello world gui and serves it with Mux
```julia
using LabGUI
using LabGUI, Mux
gui = GUI()
set!(gui, Node(:div, "Hello world!"))
......@@ -29,7 +29,7 @@ It can now be accessed in a browser at <http://0.0.0.0:8000>.
The construct macro is a modified version of the @manipulate macro from InteractNext, which permits rearranging the ui as the designer sees fit. Example:
```julia
using LabGUI
using LabGUI, Mux
gui = GUI()
widgets, ui = @construct for x in 1:10
......@@ -69,7 +69,7 @@ The grid is a dom object, so we can use `set!(gui, grid)` to make it the layout
In the file svg_helper.jl one can find some routines used to create SVG graphics with a slightly simpler syntax.
```julia
using LabGUI, InteractNext
using LabGUI, InteractNext, Mux
gui = GUI()
widgets, ui = @construct for x in vslider(5:5:100),
......
julia 0.6
InteractNext
WebIO
Mux
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment