class Cisco::UIExtender
- Cisco::UIExtender
- PlaceOS::Driver
- Reference
- Object
Defined in:
cisco/ui_extender.crConstant Summary
-
IGNORE_METHODS =
["on_load", "on_unload", "on_update"] of ::String
-
Build a list of all callback methods that have been defined.
Callback methods are denoted being single arity and beginning with
on_
.
Class Method Summary
Instance Method Summary
- #alert(text : String, title : String = "", duration : Int32 = 0)
- #clear_alert
-
#clear_extensions
Clear any deployed UI extensions.
- #close_panel
-
#deploy_extensions(id : String, xml_def : String)
Push a UI definition build with the in-room control editor to the device.
-
#highlight(id : String, state : Bool = true, momentary : Bool = false, time : Int32 = 500)
Set the highlight state for a button widget.
-
#label(id : String, value : String | Bool | Nil)
Set the text label used on text or spinner widget.
-
#link_widget(id : String, bindings : Binding)
Wire up a widget based on a binding target.
-
#list_extensions
Retrieve the extensions currently loaded.
- #on_extensions_widget_action(event : Hash(String, JSON::Any))
- #on_load
- #on_unload
- #on_update(loading = false)
-
#set(id : String, value : String | Bool | Nil)
Set the value of a widget.
-
#switch(id : String, state : Bool | Nil = nil)
Set the state of a switch widget.
-
#sync_widget_state
Push the current module state to the device.
-
#unset(id : String)
Clear the value associated with a widget.
Class Method Detail
Instance Method Detail
Push a UI definition build with the in-room control editor to the device.
Set the highlight state for a button widget.
Set the text label used on text or spinner widget.
Wire up a widget based on a binding target.