API Docs for: 1.1
Show:

Moedal Class

Main class of the plugin. Use $.moedal when doing jQuery.

Constructor

Moedal

()

Item Index

Properties

Methods

addFunction

(
  • name
  • fn
)
Moedal

Adds function to this class.

Useful when presetting a modal function.

Parameters:

  • name String
  • fn Function

Returns:

alert

(
  • title
  • message
)
MoedalObject

Creates alert modal.

Parameters:

  • title String
  • message String

Returns:

config

(
  • options
)
Moedal

Configures the plugin with default or with user options.

Parameters:

  • options Array

Returns:

confirm

(
  • title
  • message
)
MoedalObject

Creates confirm modal.

Parameters:

  • title String
  • message String

Returns:

create

(
  • options
)
MoedalObject

Creates a new MoedalObject instance.

Parameters:

  • options Array

Returns:

prompt

(
  • title
  • message
  • defaultValue
)
MoedalObject

Creates prompt modal.

Parameters:

  • title String
  • message String
  • defaultValue String

Returns:

template

(
  • re
)
Moedal

Re-creates the template for creating modals.

Parameters:

  • re String

Returns:

Properties

settings

Array

Settings container.