Class: Disclaimer service:ngeoDisclaimer

ngeo.message.Disclaimer

new Disclaimer($sce, gettextCatalog, ngeoCreatePopup)

Provides methods to display any sort of messages, disclaimers, errors, etc. Requires Bootstrap library (both CSS and JS) to display the alerts properly.

Parameters:
Name Type Description
$sce angular.$sce

Angular sce service.

gettextCatalog angularGettext.Catalog

Gettext service.

ngeoCreatePopup ngeox.PopupFactory

Popup service.

Extends

Members

(static) module: angular.Module

Methods

alert(object)

Show disclaimer message string or object or list of disclamer message strings or objects.

Parameters:
Name Type Description
object string|Array.|ngeox.Message|Array.

A message or list of messages as text or configuration objects.

close(object)

Close disclaimer message string or object or list of disclamer message strings or objects.

Parameters:
Name Type Description
object string|Array.|ngeox.Message|Array.

A message or list of messages as text or configuration objects.

(protected) closeMessage_(message)

Close the message.

Parameters:
Name Type Description
message ngeox.Message

Message.

error(message)

Display the given error message or list of error messages.

Parameters:
Name Type Description
message string|Array.

Message or list of messages.

Inherited From:

(protected) getMessageObjects(object, [opt_type]opt)

Returns an array of message object from any given message string, list of message strings, message object or list message objects. The type can be overridden here as well OR defined (if the message(s) is/are string(s), defaults to 'information').

Parameters:
Name Type Attributes Description
object string|Array.|ngeox.Message|Array.

A message or list of messages as text or configuration objects.

[opt_type] string= <optional>

The type of message to override the messages with.

Inherited From:
Returns:
Array.

List of message objects.

info(message)

Display the given info message or list of info messages.

Parameters:
Name Type Description
message string|Array.

Message or list of messages.

Inherited From:

show(object)

Show disclaimer message string or object or list of disclame message strings or objects.

Parameters:
Name Type Description
object string|Array.|ngeox.Message|Array.

A message or list of messages as text or configuration objects.

Inherited From:

(protected) showMessage(message)

Show the message.

Parameters:
Name Type Description
message ngeox.Message

Message.

Overrides:

success(message)

Display the given success message or list of success messages.

Parameters:
Name Type Description
message string|Array.

Message or list of messages.

Inherited From:

warn(message)

Display the given warning message or list of warning messages.

Parameters:
Name Type Description
message string|Array.

Message or list of messages.

Inherited From: