FourEyesButton Class

Button that contains four-eyes logic.

Definition

Namespace: MobileTrack.Web.Components.Components
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class FourEyesButton : ComponentBase
Inheritance
Object    ComponentBase    FourEyesButton

Constructors

FourEyesButtonInitializes a new instance of the FourEyesButton class

Properties

ActionMethod The method to be invoked for the action (e.g., lock, unlock, delete).
ButtonColor The color of the button.
CancelMethod The method to be invoked to cancel the four-eyes request.
CurrentUser Dependency injection of the UserSessionData.
DisableWhenLocked Indicates whether the button should be disabled when the item is locked.
FourEyesConfirmedBy Set value if four eyes has been confirmed. If not, it will remain .
FourEyesRequestedBy Set value if four eyes has been requested. If not, it will remain .
HasPermission True if four eyes can be confirmed.
IconName The icon to be displayed on the button.
IsButtonTextEnabled If , the button will contain text under specific conditions.
IsCompanyButton True if the button is company button
IsItemLocked True if the item is locked.
IsParentLocked True if the parent is locked.
Loc Dependency injection of the IStringLocalizerT.
RequestType The type of four-eyes request.

Methods

SetParametersAsync Parameters are loaded manually for sake of performance; if we were to use System.Reflection magic, it would hurt performance if components were used in large numbers.
(Overrides ComponentBaseSetParametersAsync(ParameterView))

See Also