Click or drag to resize

PFWidget_QuickAccess Class

Widget allowing the user to search for items with a single text box.

You must include the resources using ResourcesHtml.GetWidgetResources_QuickAccess in the head of your page.

Inheritance Hierarchy
SystemObject
  Packflow.InterfacePFWidget
    Packflow.InterfacePFWidget_QuickAccess

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 PFWidget_QuickAccess : PFWidget

The PFWidget_QuickAccess type exposes the following members.

Constructors
  NameDescription
Public methodPFWidget_QuickAccess
Initializes a new instance of the PFWidget_QuickAccess class.
Top
Properties
  NameDescription
Public propertyActionMenu
Gets or sets the content of the action menu, available for each result.
Public propertyBottomButtons
Gets or sets the list of buttons to show in the bottom part of the widget. Important : currently not persisted across SignalR!
Public propertyContentTypeDisplayMode
Gets or sets a value describing how the content-type of found items is displayed.
Public propertyContentTypes
Gets or sets the target content-types.
Public propertyCreationContentType
Gets or sets the default content-type used for item creation.
(Inherited from PFWidget.)
Public propertyDisplayedFieldName
Gets or sets the name of the field used to represent each found item.
Public propertyFilteringFieldNames
Gets or sets the list of filtered fields.

If a field is not found in any target content-types, an exception is thrown.

If a field is found in some target content-types, it will obviously only be applied when its possible.

Public propertyHeight
Gets or sets the height.

Default value: 100%.

(Inherited from PFWidget.)
Public propertyHeighthResizable
Gets or sets a value indicating whether the widget is vertically resizable.
(Inherited from PFWidget.)
Public propertyHighlightFilter
Gets or sets a value indicating whether the found keyword must be highlighted in results.

Default value: True.

Public propertyHtmlClass
Gets the additional HTML classes.
(Overrides PFWidgetHtmlClass.)
Public propertyHtmlId
Gets or sets the HTML identifier.
(Inherited from PFWidget.)
Public propertyIgnoreAccents
Gets or sets a value indicating whether filters should ignore accents or not.

Note : this only applies when the database is currently NOT ignoring accents by default.

Attention, this can greatly degrade performances!

Protected propertyLogger
Gets the logger, used to log any useful warning, error or information in the database.
(Inherited from PFWidget.)
Public propertyQuery

Gets or sets the query used to filter elements displayed in the quick access area.

Some restrictions will be applied :

-results limit cannot exceed 50

-groups and aggregations will be disabled

-field mode will be set to Custom

Public propertySite
Gets the contextual Packflow Site.
(Inherited from PFWidget.)
Public propertySourceUrl
Gets the source URL.
(Inherited from PFWidget.)
Public propertyTitleContent
Gets or sets the html content of the title.
(Inherited from PFWidget.)
Public propertyTopButtons
Gets or sets the list of buttons to show in the top part of the widget. Important : currently not persisted across SignalR!
Public propertyTranslations
Gets the contextual translations provided by Packflow.
(Inherited from PFWidget.)
Public propertyWidth
Gets or sets the width.

Default value: 50%.

(Inherited from PFWidget.)
Public propertyWidthResizable
Gets or sets a value indicating whether the widget is horizontally resizable.
(Inherited from PFWidget.)
Top
Methods
  NameDescription
Protected methodGenerateContentHtml
Generates the content HTML, which will take place in the generic placeholder.
(Overrides PFWidgetGenerateContentHtml.)
Public methodGeneratePlaceHolderHtml
Generates the widget's HTML.
(Inherited from PFWidget.)
Public methodGenerateValuesHtml
Retrieves filtered results from the database and generates the corresponding HTML.
Protected methodGetSettingHtml
Appends the widget's setting to the specified builder, in HTML format.
(Inherited from PFWidget.)
Public methodGetSettingsHtml
Appends the settings in the builder, in a HTML format. The use of the method "GetSettingHtml" is recommended.
(Overrides PFWidgetGetSettingsHtml(HtmlBuilder).)
Public methodLoadSettingsFromHtml
Loads the settings from HTML values.

Example: this.SourceUrl = data.TryGetValue("SourceUrl")

(Overrides PFWidgetLoadSettingsFromHtml(DictionaryString, String).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate
Validates the settings.
(Overrides PFWidgetValidate.)
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