Skip to main content

LgDocument

Module : Lagoon.UI
Namespace : Lagoon.UI.Components
Category: Document
Inherits from: LgComponentBase

Componant used to download and display a document behind a protected api or not

Parameters​

ParameterTypeDescription
AdditionalAttributesIReadOnlyDictionary<string, object>Gets or sets a collection of additional attributes that will be applied to the created element.
AllowDeleteboolGet or set the flag indicating if delete function is supported. If true the ControllerUri path must support DELETE http verb.
AnonymousRequestboolSpecifies not to add the authentication token to the HTTP request to the server. default false.
ChildContentRenderFragment<string>Get or set a custom render fragment. The parameter provided in the render fragment is a document browser url (eg blob://...data-url...)
ClickBehaviourDocumentClickBehaviourGet or set the behaviour when the user click on the image. Default is DocumentClickBehaviour.None.
ControllerUristringAPI Controller Uri
CssClassstringGets or sets the CSS class
FilenamestringGet or set the optional filename used when downloading (via browser) or opening image in modal
KindDocumentKindGet or set the kind of document to display Default is DocumentKind.IFrame
LoaderContentRenderFragment<int>Get or set the render frangement used while downloading data
OnClickEventCallbackGet or set the event fired when user click on the image
OnDeleteEventCallbackGet or set the event fired when an Http Delete has been successfully sent to the ControllerUri
ShowDownloadProgressionboolGet or set the flag used to show download progression. Should not be enabled for small document. Default is false
TooltipstringGets or sets the icon tooltip.
TooltipIsHtmlboolGets or sets if the tooltip contents use the HTML format; else, the content use a raw text format.
VideoAutoPlayboolAuto play the video.
VideoControlsDisabledboolActivate the controls on the video.

Cascading parameters​

ParameterTypeDescription
ImageCacheLgDocumentsCacheOptional parent component used to cache downloaded document