Blog List
Documentation: Blog List Component
Overview
Model Documentation
model
object should include configuration details used by the component:Model Structure
String
A unique identifier for the component, used as the
id
attribute in the HTML.String
Optional CSS class(es) for additional styling of the container element.
Example Model
{
"id": "blog-list-1",
"cssClass": "custom-blog-list"
}
Component Structure
HTML Template
Data Properties
Array
Array of blog post objects to be displayed.
Number
Current page number for pagination.
Boolean
Indicates if data is still being loaded.
Boolean
Indicates if blog data has been loaded.
Boolean
Indicates if category data has been loaded.
Number
Total number of pages available for pagination.
Number
Total number of blog posts available.
Number
ID of the current selected category.
String
Title of the current selected category.
String
Current date in ISO format.
Array
Array of category objects for the sidebar.
Number
Number of categories to show before providing an option to view more.
Methods
Computed Properties
1
).Usage
model
prop is properly passed and that the _getBlogList
and _getCategoryList
methods are defined in the parent component or provided by a mixin or plugin.