Class: UI::HtmlPanel
- Inherits:
-
Object
- Object
- UI::HtmlPanel
Overview
HTML panel in the Ruby UI workspace. SketchUp does not have this class.
Class Method Summary # collapse
-
.new(properties = {}) ⇒ UI::HtmlPanel
Hash keys: title / preferences_key / height (integer or :auto) / fill_height.
Instance Method Summary # collapse
-
#set_html(html) ⇒ nil
Load the HTML string.
-
#set_file(path) ⇒ nil
Load from a local file.
-
#set_url(url) ⇒ nil
Load the URL.
-
#show ⇒ nil
Shows the tray panel.
-
#hide ⇒ nil
Hides the tray panel.
-
#close ⇒ nil
Close and destroy.
-
#visible? ⇒ Boolean
Visibility.
-
#execute_script(script) ⇒ nil
Execute JavaScript in the page.
-
#add_action_callback(name) ⇒ true
Register a JS-callable callback.
-
#set_on_closed ⇒ true
A block to be called when the dialog is closed.
Class Method Details
HtmlPanel.new(properties = {}) ⇒ panel
Hash keys: title / preferences_key / height (integer or :auto) / fill_height.
Instance Method Details
panel.set_html(html) ⇒ nil
Load the HTML string.
panel.set_file(path) ⇒ nil
Load from a local file.
panel.set_url(url) ⇒ nil
Load the URL.
panel.show ⇒ nil
Shows the tray panel.
panel.hide ⇒ nil
Hides the tray panel.
panel.close ⇒ nil
Close and destroy.
panel.visible? ⇒ Boolean
Visibility.
panel.execute_script(script) ⇒ nil
Execute JavaScript in the page.
panel.add_action_callback(name) {|context, *args| } ⇒ true
Register a JS-callable callback.
panel.set_on_closed { } ⇒ true
A block to be called when the dialog is closed.