JUI(Simple UI & Chart Component)

ui.modal

Hierarchy

core
ui.modal

Requires

jquery

Files

Developed as a separate component so that the modal, which is used in UI components such as window or loading, can be used more universally

Defined By

Config options

ui.modal
view source
: Boolean
Automatically hides a modal when clicking on it ...

Automatically hides a modal when clicking on it

Defaults to: true

ui.modal
view source
: Boolean
Copies an existing modal and shows it ...

Copies an existing modal and shows it

Defaults to: false

ui.modal
view source
: "black"/"gray"
Determines the color of a modal ...

Determines the color of a modal

Defaults to: "black"

Defines a DOM event to be used in a UI ...

Defines a DOM event to be used in a UI

Defaults to: {}

ui.modal
view source
: Integer
Determines the sequence (index) of a modal ...

Determines the sequence (index) of a modal

Defaults to: 0

ui.modal
view source
: Float
Sets the transparency of a modal ...

Sets the transparency of a modal

Defaults to: 0.4

ui.modal
view source
: String/DOMElement
Sets a selector on which a modal is shown ...

Sets a selector on which a modal is shown

Defaults to: "body"

Defines a template markup to be used in a UI ...

Defines a template markup to be used in a UI

Defaults to: {}

Defined By

Methods

( name, params )
Check the parameter type of a UI method and generates an alarm when a wrong value is entered ...

Check the parameter type of a UI method and generates an alarm when a wrong value is entered

Parameters

  • name : String

    Method name

  • params : Array

    Parameters

( name, callback ) : Mixed
Sets a callback function that is called after a UI method is run ...

Sets a callback function that is called after a UI method is run

Parameters

  • name : String

    Method name

  • callback : Function

Returns

  • Mixed
( name, callback ) : Mixed
Sets a callback function that is called before a UI method is run ...

Sets a callback function that is called before a UI method is run

Parameters

  • name : String

    Method name

  • callback : Function

Returns

  • Mixed
( name, callback )
Sets a callback function and the delay time before/after a UI method is run ...

Sets a callback function and the delay time before/after a UI method is run

Parameters

  • name : String

    Method name

  • callback : Function
Removes all events set in a UI obejct and the DOM element ...

Removes all events set in a UI obejct and the DOM element

( type, args ) : Mixed
Generates a custom event. ...

Generates a custom event. The first parameter is the type of a custom event. A function defined as an option or on method is called

Parameters

  • type : String

    Event type

  • args : Function

    Event Arguments

Returns

  • Mixed
ui.modal
view source
( )
Hides a modal ...

Hides a modal

Removes a custom event of an applicable type or callback handler ...

Removes a custom event of an applicable type or callback handler

Parameters

  • type : String

    Event type

( type, callback )
A callback function defined as an on method is run when an emit method is called ...

A callback function defined as an on method is run when an emit method is called

Parameters

  • type : String

    Event type

  • callback : Function
Re-adjust the location of a modal ...

Re-adjust the location of a modal

Dynamically defines the options of a UI ...

Dynamically defines the options of a UI

Parameters

  • key : String
  • value : Mixed
( name, html )
Dynamically defines the template method of a UI ...

Dynamically defines the template method of a UI

Parameters

  • name : String

    Template name

  • html : String

    Template markup

ui.modal
view source
( )
Shows a modal ...

Shows a modal