Dialog

Dialog

new Dialog()

Main Dialog class constructor

Methods

(private, static) _buttonClick()

Handles the button click event for the dialog and delegates to the correct functionality to execute for the action

(private, static) _initialize()

Initialize the component

(private, static) _removeEvents()

Override the remove event function since the events aim bound internally in the button aim.$ objects and the this.evts is not used

(private, static) _render()

Render the component element, this method can be called any number of times if the data for the component is added again

(private, static) _setButtons()

Determine which header buttons are required and created the associated elements

(private, static) _setElements()

Returns an object with the default html elements added

(private, static) _setEvents()

Set the events for the select menu

(private, static) _setSize()

Create the Menu Tree based on the data supplied

(static) destroy()

Destroy the component and remove all elements from the dom and clear all events added, returns a null value in the event the object was stored in a reference to nullify the reference

(static) getContentNode(selector)

Return the content section so that external apis can append to it dynamically or alternatively return a specific node within the content section

Parameters:
Name Type Description
selector String

The selector reference

(static) update(data, selector)

Set the content for the dialog

Parameters:
Name Type Description
data Object

The data object to update with

selector String

The internal content selector reference