- Overview
- Social Sign-in Widget
- User Registration Widget
- Social Sharing Widget
- Provider Setup Guide
- One-Click Sharing Widget
- Legacy Sign-in Widget
- Legacy Sharing Widget
Modal
The modal functions are used to change the design and appearance of modal Social Sign-in Widgets. These may also be set in the application’s Dashboard.
- Usage
janrain.engage.signin.modal
| Field | Description |
|---|---|
| close | Close the widget. |
| setBorder | Set the widget’s border width. |
| setBorderColor | Set the widget’s border color. |
| setBorderOpacity | Set the widget’s border opacity. |
| setBorderRadius | Set the radius of the curve for the widget’s corners. |
setBorder ¶
This sets the border width of the widget.
Usage
janrain.engage.signin.modal.setBorder(value)
| Parameters | Required? | Description |
|---|---|---|
| value | yes | The border width in pixels. |
setBorderColor ¶
This sets the border color of the widget.
Usage
janrain.engage.signin.modal.setBorderColor(color)
| Parameter | Required? | Description |
|---|---|---|
| color | yes | The web color expressed as a hexadecimal value. For example: #ffffff. |
setBorderOpacity ¶
This sets the opacity of widget border.
Usage
janrain.engage.signin.modal.setBorderOpacity(value)
| Parameter | Required? | Description |
|---|---|---|
| value | yes | A number between 0 and 1. |
setBorderRadius ¶
This sets the radius of widget corners.
Usage
janrain.engage.signin.modal.setBorderOpacity(value)
| Parameter | Required? | Description |
|---|---|---|
| value | yes | The radius, expressed in degrees. |