Element Class

The Element component represents a single element within a DashboardGrid component.

Definition

Namespace: MobileTrack.Web.Portal.Components.Dashboard
Assembly: MobileTrack.Web.Portal (in MobileTrack.Web.Portal.exe) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public class Element : ComponentBase, IHasLocalization
Inheritance
Object    ComponentBase    Element
Implements
IHasLocalization

Constructors

ElementInitializes a new instance of the Element class

Properties

ChildContent Any content you would like to display in the element
Grid The dashboard grid the element is a part of.
HeaderClass The class of the header. Only visible if a Title is present.
Loc Dependency injection for the localization tool. It derives texts established in CosmosDB's "LocalizedStrings" container. It can be used by invoking it as an array, with the key of the text you want to get. Parameters for the string can be added in the array as well, similar to Format(String, Object).
If the text is not found, it will return the key itself as fallback.

The language the key will be localized based on is based on the CurrentCulture and the CurrentUICulture.
If you want to localize something in a different language, you will have to apply the culture on the CultureInfo properties, get the text,
and revert back to the original culture.
Module The module definition of the element
OnDelete Callback for when OnDelete of Header is called.

Methods

BuildRenderTree
(Overrides ComponentBaseBuildRenderTree(RenderTreeBuilder))
DecreaseHeight 
DecreaseWidth 
IncreaseHeight 
IncreaseWidth 
IsElementOverlapped 
MoveDown 
MoveLeft 
MoveRight 
MoveUp 
OnParametersSet Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties.
(Overrides ComponentBaseOnParametersSet)
OverlapsWith 
ResetModule 

Fields

ElementContainer Container element

See Also