Widget Documentation: LMFeedPostDocumentsMediaView
Widget: LMFeedPostDocumentsMediaView
The LMFeedPostDocumentsMediaView
is a customizable view for displaying a list of document media, supporting actions like showing more documents, removing documents, and configuring styles.
Method | Description |
---|---|
setStyle(postDocumentsMediaViewStyle: LMFeedPostDocumentsMediaViewStyle) | Applies the given style to the document media view. |
configureShowMore(documentShowMoreStyle: LMFeedTextStyle) | Configures the text style for the "Show More" option. |
setAdapter(parentPosition: Int, mediaData: LMFeedMediaViewData, listener: LMFeedPostAdapterListener, isMediaRemovable: Boolean = false) | Sets the adapter for displaying document media. |
removeDocument(position: Int) | Removes a document from the view at the specified position. |
setShowMoreTextClickListener(listener: LMFeedOnClickListener) | Registers a click listener for the "Show More" text. |
View Style: LMFeedPostDocumentsMediaViewStyle
The LMFeedPostDocumentsMediaViewStyle
defines the appearance and layout properties for the LMFeedPostDocumentsMediaView
, including text, icon, and visibility configurations.
Field | Description | Type |
---|---|---|
documentNameStyle | Defines the text style for the document name. | LMFeedTextStyle |
documentIconStyle | Configures the style for the document icon. | LMFeedIconStyle |
documentPageCountStyle | Defines the text style for the document page count. | LMFeedTextStyle |
documentSizeStyle | Configures the text style for the document size. | LMFeedTextStyle |
documentTypeStyle | Defines the text style for the document type. | LMFeedTextStyle |
documentShowMoreStyle | Configures the text style for the "Show More" option. | LMFeedTextStyle |
visibleDocumentsLimit | Specifies the limit for visible documents. | Int |
removeIconStyle | Configures the style for the remove icon. | LMFeedIconStyle |