LMFeedGeneralContext
Introduction
The LMFeedGeneralContext
is internally placed at root levels of the application, It houses default actions and data for accessing general uses cases like, displaying a snackbar. Since it is placed at the core level, it will be available to almost any of the custom UI implementation you create.
Property | Type | Description | Optional |
---|---|---|---|
displaySnackbarMessage | (message: string) => void | Function to display a snackbar message. | Yes |
closeSnackbar | () => void | Function to close the snackbar. | Yes |
showSnackbar | boolean | Indicates whether the snackbar is visible. | Yes |
message | string | The message to display in the snackbar. | Yes |
routes | LMFeedCustomAppRoutes | Custom routes for the LMFeed application. | Yes |
allowThumbnail | boolean | Determines if thumbnails are allowed. | Yes |
openPostCreationProgressBar | boolean | Indicates if the post creation progress bar is open. | Yes |
setOpenPostCreationProgressBar | (open: boolean) => void | Function to set the state of the post creation progress bar. | Yes |
Example
For example implementation, checkout here