Complete Reference

Glimmer

Glimmer.runExampleMethod
runExample(example::String)

Run the specific example. [example] is given without extension. For example, if we have an example file named "Controls.jl" the command to run it is: Glimmer.runExample("Controls")

source

UIControls (Glimmer.UIControls])

Glimmer.UIControls.SliderType
Slider Control

Create a slider control.

    text::String = ""                   # text to apear to the left of the slider
    trailingText::String = ""           # text to apear to the right of the slider
    min::Float64 = 0.0                  # minimum value
    max::Float64 = 100.0                # maximum value
    value::Float64 = 0                  # starting value (unused if connected to a variable)
    step::Float64 = 1.0                 # tick change value
    variable::Any = nothing             # variable
source

FlexUI (Glimmer.FlexUI)

Glimmer.FlexUI.forceUpdateControls!Method
forceUpdateControls!(app::App)

Force an update of controls that are not updated during the normal execution of an application. Currently, RawHTML is the only component that behaves like that due to the time it can take to update it.

source
Glimmer.FlexUI.variableMethod
variable(app::App, name::String)

Return the variable object or nothing if variable cannot be found in app.

source

UI Variables (Glimmer.UIVariables)

Glimmer.UIVariables.emitFunction
on(func::Function, var::AbstractUIVariable, event::Symbol = :valueChanged)

Emits the specific event on a variable, calling all the listeners.

source
Glimmer.UIVariables.onFunction
on(func::Function, var::AbstractUIVariable, event::Symbol = :valueChanged)

Adds function func as listener to the variable. Whenever variables's value is set via var[] = val or one of the defined UI Controls, func is called with val. Most variables have just one type of events associated with them: valueChanged. But some, such as 'aggrid' have additional events that you can bind listeners to.

source
Glimmer.UIVariables.rawValueMethod
rawValue(var::Variable) -> string

returns the internal value of the variable. in most cases this value would be identical to using var[], but in some cases, such as aggrid type variable, this would return the internal structure of the grid definition, allowing the user to manually manipulate it for better control on the grid behevior.

source

Grid Utilities (Glimmer.GridUtils)

Glimmer.GridUtils.getTypesMethod
getTypes(m::Any, arr::Vector{Any})

This function has no place in this package and is just a utility function that fills an array with information of types in the given module. The function is here in order to test the agGrid tree view capabilities but it has nothing to do with UI or Visualization.

source
Glimmer.GridUtils.table2agGridTreeMethod
table2agGridTree(table, id::String, parentId::String)

Takes a Tables.jl compatable table and return the agGrid represantation of it with default colDefs. The table data is assumed to represent an hericical data structure where the id parameter is the field containing a unique id, and the parentId parameter is the field containing the parent id of the specific row.

source
Glimmer.GridUtils.toJSONTableFunction
toJSONTable(data::Vector{Any}, parent_id::Int64 = -1)

Utility function to convert the result of getTypes in to a JSON table (Tables.jl compatiable data structure)

source

INTERNAL: Julia to JavaScript Bridge (Glimmer.JuliaJSBridge)

Glimmer.JuliaJSBridge.JS_loader_nodeMethod
JS_loader_node(filenames...)

Return a WebIO.Node object that contains all the supplied files as children nodes. Recognized extentions files such as '.js' and '.css' are contains in a :script and :style nodes respectivly.

source