PFWidget Class |
Namespace: Packflow.Interface
public abstract class PFWidget
The PFWidget type exposes the following members.
| Name | Description | |
|---|---|---|
| CreationContentType |
Gets or sets the default content-type used for item creation.
| |
| Height |
Gets or sets the height.
Default value: 100%. | |
| HeighthResizable |
Gets or sets a value indicating whether the widget is vertically resizable.
| |
| HtmlClass |
Gets the additional HTML classes.
| |
| HtmlId |
Gets or sets the HTML identifier.
| |
| Logger |
Gets the logger, used to log any useful warning, error or information in the database.
| |
| Site |
Gets the contextual Packflow Site.
| |
| SourceUrl |
Gets the source URL.
| |
| TitleContent |
Gets or sets the html content of the title.
| |
| Translations |
Gets the contextual translations provided by Packflow.
| |
| Width |
Gets or sets the width.
Default value: 50%. | |
| WidthResizable |
Gets or sets a value indicating whether the widget is horizontally resizable.
|
| Name | Description | |
|---|---|---|
| GenerateContentHtml |
Generates the content HTML, which will take place in the generic placeholder.
| |
| GeneratePlaceHolderHtml |
Generates the widget's HTML.
| |
| GetSettingHtml |
Appends the widget's setting to the specified builder, in HTML format.
| |
| GetSettingsHtml |
Appends the settings in the builder, in a HTML format.
The use of the method "GetSettingHtml" is recommended.
| |
| LoadSettingsFromHtml |
Loads the settings from HTML values.
Example: this.SourceUrl = data.TryGetValue("SourceUrl")
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| Validate |
Validates the settings.
|
| Name | Description | |
|---|---|---|
| AsT |
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.) | |
| EqualsAll |
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.) | |
| EqualsAny |
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.) | |
| GetString |
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.) | |
| IsGenericList | Overloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.) | |
| IsGenericList(Type) | Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.) | |
| Serialize | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
| Serialize(String) | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
| SerializeJson | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
| SerializeJson(ListType) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
| SerializeJson(DataContractJsonSerializerSettings) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) |