(static) attach (members, replaceopt)
Adds methods into SuiBuilder prototype.
Parameters:
Name |
Type |
Attributes |
Default |
Description |
members |
Object
|
|
|
Methods. |
replace |
boolean
|
<optional>
|
false
|
If true, existing methods will be replaced. (optional) |
|
(static) detach (members)
Removes methods from the SuiBuilder prototype.
Parameters:
Name |
Type |
Description |
members |
string
|
Array.<string>
|
The list of the method names to detach. |
|
addComponent (name, callback)
Adds method into SuiBuilder instance. Existing method are replaced.
Parameters:
Name |
Type |
Description |
name |
string
|
Component name. |
callback |
function
|
|
|
addComponents ()
Adds methods into SuiBuilder instance. Existing methods are replaced.
Parameters:
Name |
Type |
Attributes |
Description |
components, ... |
Object
|
<optional>
<repeatable>
|
Each argument is object with component definitions. |
|
get (id) → {component}
Parameters:
Name |
Type |
Description |
id |
string
|
|
Returns:
|
getAll () → {Object}
Returns all saved elements.
Returns:
|
result () → {int}
Returns a result of the ScriptUI window.show() method.
Returns:
|
toString () → {string}
Returns a string representation of the object.
Returns:
|