Classes
- Alert
- Bar
- BoundPanel
- Box
- Button
- Buttons
- Calendar
- Chart
- Checkboxes
- Clipboard
- CodeInput
- ColorInput
- ColorPicker
- Columns
- Component
- DatePicker
- DateTimeInput
- Diagram
- Dock
- Drawing
- DropDown
- Editable
- Editor
- Emotion
- Finder
- FontInput
- FontPicker
- Form
- Foundation
- Fragment
- Gallery
- Graph
- Icon
- IFrame
- ImageInput
- ImageViewer
- InfoView
- Input
- Layout
- Link
- LinkInput
- Links
- List
- LocationInput
- LocationPicker
- MarkupEditor
- MediaSimulator
- Menu
- ModelEditor
- NumberInput
- NumberValidator
- ObjectInput
- ObjectList
- Overflow
- Overlay
- Pages
- Panel
- Picker
- Presentation
- ProgressBar
- ProgressIndicator
- Radiobuttons
- Rendering
- RevealingToolbar
- Rows
- SearchField
- Segmented
- Selection
- Slider
- Source
- Split
- Structure
- StyleEditor
- StyleLength
- Tab
- Tabs
- TextInput
- Tiles
- TimeLine
- TokenField
- Toolbar
- Upload
- VideoPlayer
- Window
- Wizard
Namespaces
Methods
-
<static> addFocusClass(options)
-
Add focus class to an element
Parameters:
Name Type Description options
Object {element : Element, class : String}
-
<static> callAncestors()
-
Send a message to all ancestors of a widget
-
<static> callDelegatesDrop()
-
Send a global drag and drop message
- Source:
-
<static> callDescendants()
-
Send a message to all descendants of a widget
-
<static> callVisible()
-
Signal that a widget has changed visibility
-
<static> confirmOverlay(options)
-
Show a confirming overlay
options: { element : Element, // the element to show at widget : Widget, // the widget to show at text : String, // the text message okText : String, // text of OK button cancelText String, // text of cancel button $ok: Function, // called when user clicks the OK button $cancel: Function // called when user clicks the Cancel button }
Parameters:
Name Type Description options
Object The options
-
<static> destroy(widget)
-
Unregisters a widget
Parameters:
Name Type Description widget
Widget The widget to destroy
-
<static> get(nameOrComponent)
-
Get a component by name
Parameters:
Name Type Description nameOrComponent
hui.ui.Component | String Get a component by name, if the parameter is already a component it is returned
Returns:
The component with the name or undefined
- Type
- hui.ui.Component
-
<static> getAncestors(widget)
-
Gets all ancestors of a widget
Parameters:
Name Type Description widget
Widget A widget
Returns:
An array of all ancestors
- Type
- Array
-
<static> getElement(widgetOrElement)
-
Get the element of a widget if not already an element
Parameters:
Name Type Description widgetOrElement
Widget | Element The widget to get the element for
Returns:
The element or null
- Type
- Element
-
<static> getText(key)
-
Get a localized text, defaults to english or the key
Parameters:
Name Type Description key
String The key of the text
Returns:
The localized string
- Type
- String
-
<static> include()
-
Load som UI from an URL
-
<static> listen()
-
Listen for global events
-
<static> onReady()
-
Called when the DOM is ready and hui.ui is ready
-
<static> request(options)
-
Parameters:
Name Type Description options
Object Properties
Name Type Description message
Object Properties
Name Type Description start
String success
String -
<static> require(names, func)
-
Import some widgets by name
Parameters:
Name Type Description names
Array Array of widgets to import
func
function The function to call when finished
-
<static> showCurtain()
-
Shows a "curtain" behind an element
#param options { widget: Widget, color: String, zIndex: Number } -
<static> stress(widget)
-
Make a widget draw attention to itself
Parameters:
Name Type Description widget
Widget The widget to stress
-
<static> tellContainers(event, value)
-
Sends a message to ancestor frames (will call all the way up)
Parameters:
Name Type Description event
String value
Object