Click or drag to resize

PFActionsBarButton Class

Represents a button in an actions bar.
Inheritance Hierarchy

Namespace:  Packflow.Interface
Assembly:  MicaSystems.Packflow.Interface (in MicaSystems.Packflow.Interface.dll) Version: 1.0.0.0 (2.0.0.223)
Syntax
C#
public class PFActionsBarButton : PFActionsBarObject

The PFActionsBarButton type exposes the following members.

Constructors
  NameDescription
Public methodPFActionsBarButton
Top
Properties
  NameDescription
Public propertyActionMode
Gets or sets the type of code/behavior to execute when the button is clicked.
Public propertyActionName
Gets or sets the name of the action that will be called on the MVC controller (if action mode is Controller)
Public propertyConfirmationSettings
Gets or sets the confirmation settings.

Initialize this object if you want to ask a confirmation before executing the action.

Public propertyEnabled
Gets or sets a value indication whether this button is enabled or not.

If false, a disabled style will be applied and the button will have no click (re)action.

Public propertyEnableSpinner
Gets or sets a value indicating whether a spinner is shown on the button when it is clicked. This is only relevant for buttons using the "Controller" action mode.

This is recommended to set this value to False for actions returning a file.

Default value: True.
Public propertyImage
Gets or sets the Font-Awesome image's class, use PFImagesHtmlHelper to get image classes.
Public propertyJavascriptCode
Gets or sets the JavaScript code called on click (if action mode is set to JavaScript).
Public propertyName
Gets or sets the button name. Available in the 'ButtonName' property for client codes.
Public propertyTitle
Gets or sets the button title.
Public propertyTooltip_Mode
Gets or sets the indicating how the tooltip should behave.
Public propertyTooltip_ShowOnLoad
Gets or sets a value indicating whether the tooltip should shown on page load. Applies only if the tooltip mode is set to Persistent and only for first-level buttons.
Public propertyTooltipContent
Gets or sets the tooltip text, displayed if not null and if TooltipMode is not set to None.
Public propertyUrl
Gets or sets the url of the link (if action mode is set to Url).
Public propertyVisible
Gets or sets a value indicating whether this PFActionsBarObject is visible.
(Inherited from PFActionsBarObject.)
Top
Methods
  NameDescription
Protected methodGenerateHtml
Appends the HTML of this object.
(Overrides PFActionsBarObjectGenerateHtml(HtmlBuilder, String).)
Public methodStatic memberGetControllerButton
Gets a button with a controller method (postback) as action.
Public methodGetHtml
Generates the HTML of this object.
(Inherited from PFActionsBarObject.)
Public methodStatic memberGetJavascriptButton
Gets a button with a JavaScript code as action.
Public methodStatic memberGetUrlButton
Gets a navigation button.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also