Skip to main content
Version: 1.0.3

MobileNotification

Overview

The MobileNotification component allows the user to display pop-up notifications.


Specification

Property

Here is a list of properties that can be used for modifying the component:

NameTypeDefaultDescriptionRemark
classNamestring""Component class name
textstring""Text to be displayed

Constructor

MobileNotification(options)
Here is a list of available constructors:

Parameter

NameTypeDefaultDescriptionRemark
optionsobject{}Object that includes component properties

Method

Here is a list of available methods:

open()

Show the MobileNotification

Parameter

none

Return

none

close()

Hide the MobileNotification

Parameter

none

Return

none


Sample Code

Here is a sample code when all parameters are specified:

const mobileNotification = new Kuc.MobileNotification({
text: 'Error occurred!',
className: 'options-class'
});
mobileNotification.open();
mobileNotification.close();