BubbleNotification
Namespace: Wisej.Web.Ext.Bubbles
Assembly: Wisej.Web.Ext.Bubbles
Represents a numeric notification bubble that can be displayed next to any control.
- C#
- VB.NET
public class BubbleNotification : Component, IExtenderProvider
Public Class BubbleNotification
Inherits Component
Implements IExtenderProvider
Constructors
BubbleNotification()
Initializes a new instance of the BubbleNotification without a specified container.
BubbleNotification(container)
Initializes a new instance of the BubbleNotification class with a specified container.
| Name | Type | Description |
|---|---|---|
| container | IContainer | An IContainercontainer. |
Properties
Alignment
ContentAlignment: Specifies the alignment of the bubble notification. (Default: TopRight)
Margin
Padding: Specifies the offset of the bubble notification.
Tag
Object: Returns or sets the object that contains programmer-supplied data associated with this component. (Default: null)
Methods
CanExtend(target)
Returns true if BubbleNotification can offer an extender property to the specified target component.
| Parameter | Type | Description |
|---|---|---|
| target | Object | The target object to add an extender property to. |
Returns: Boolean. true if the BubbleNotification class can offer one or more extender properties; otherwise, false.
Clear()
Removes all bubbles.
GetBubbleStyle(control)
Returns the notification value associated with the specified control.
| Parameter | Type | Description |
|---|---|---|
| control | Control | The Control for which to retrieve the BubbleNotification value. |
Returns: BubbleStyle. A Int32 containing the value to display in the bubble; when 0, the bubble is hidden.
GetBubbleValue(control)
Returns the notification value associated with the specified control.
| Parameter | Type | Description |
|---|---|---|
| control | Control | The Control for which to retrieve the BubbleNotification value. |
Returns: Int32. A Int32 containing the value to display in the bubble; when 0, the bubble is hidden.
SetBubbleStyle(control, style)
Shows the bubble notification value with the specified control.
| Parameter | Type | Description |
|---|---|---|
| control | Control | The Control to associate the JavaScript with. |
| style | BubbleStyle | The value to show in the bubble notification; 0 hides the bubble. |
SetBubbleValue(control, value)
Shows the bubble notification value with the specified control.
| Parameter | Type | Description |
|---|---|---|
| control | Control | The Control to associate the JavaScript with. |
| value | Int32 | The value to show in the bubble notification; 0 hides the bubble. |
Events
Click
BubbleEventHandler Fired when the user clicks on a bubble notification.