Component

Wisej.Base.Component

Namespace: Wisej.Base

Assembly: Wisej.Framework (3.2.0.0)

The base class for Wisej components that are not controls. Wisej components are still managed on the client and the server but are not present on the designer surface. Examples of wisej components are: menu items, image lists, tree nodes, list items.

public class Component : IDisposable, IWisejComponent, IWisejSerializable

Constructors

Default constructor

Default constructor

NameTypeDescription

embedded

Indicates whether the component is embedded in a parent component. Embedded components don't update themselves, instead their parent is in charge of updating the corresponding client widget.

Properties

Boolean: Checks if the UserData dynamic object was created and has any value.

Boolean: Indicates that the component has been disposed.

Object: Returns a dynamic object that can be used to store custom data in relation to this component.

Methods

Runs the JavaScript function within the component's context in the browser.

ParameterTypeDescription

function

The name of the JavaScript function to execute.

args

The arguments to pass to the function.

Runs the JavaScript function within the component's context in the browser and returns the value to the callback method.

ParameterTypeDescription

function

The name of the JavaScript function to execute.

callback

Asynchronous callback method that receives the return value.

args

The arguments to pass to the function.

Asynchronously runs the JavaScript function within the component's context in the browser and returns an awaitable Task containing the value returned by the remote call.

ParameterTypeDescription

function

The name of the JavaScript function to execute.

args

The arguments to pass to the function.

Returns: Task<Object>. An awaitable Task that represents the asynchronous operation.

Releases all resources used by the Component.

Runs the javaScript code within the component's context in the browser.

ParameterTypeDescription

javaScript

The JavaScript code to run on the client.

Runs the javaScript code within the component's context in the browser and returns the value to the callback method.

ParameterTypeDescription

javaScript

The JavaScript code to evaluate on the client.

callback

Asynchronous callback method that receives the return value.

Asynchronously runs the javaScript code within the component's context in the browser and returns an awaitable Task that contains the value returned by the remote call.

ParameterTypeDescription

javaScript

The JavaScript code to evaluate on the client.

Returns: Task<Object>. An awaitable Task that represents the asynchronous operation.

Updates the component on the client.

Events

EventHandler Fired when the component is disposed.

Inherited By

NameDescription

Displays a message box that can contain text, buttons, and symbols that inform and instruct the user.

Implements a timer that raises an event at user-defined intervals.

Provides support for animating controls or windows using predefined animations definitions or custom animations in response to certain events.

Provides a user interface for indicating that a control on a form has an error associated with it.

Represents a small rectangular pop-up window that displays a brief help text next to a control when it gets activated (focused).

Allows controls to execute javascript code.

Adds CSS styling to controls.

Represents a small rectangular pop-up window that displays a brief description of a control's purpose when the user rests the pointer on the control.

Displays an alert box that can contain an icon and text that inform and instruct the user. Alert boxes are not modal and can disappear automatically.

Displays a toast that can contain an icon and text.

Represents the base functionality for all menus.

Implements

NameDescription

All wisej components implement this interface.

Allows an object to serialize itself.

Last updated