Product Expected
Documentation: Product Expected Component
Overview
Model Documentation
model
object for the Product Expected Component includes configuration properties that determine how the component should display its content.Model Structure
String
A unique identifier for the component, used for element targeting and styling.
String
Optional CSS class(es) to apply to the component's container.
String
Optional header text to be displayed at the top of the component.
Number
Determines the alignment of the header text:
1
: Left2
: Center3
: RightExample Model
{
"id": "productExpected",
"cssClass": "expected-class",
"header": "Expected Delivery Dates",
"alignment": 2
}
Component Structure
1.
2.
HTML Template
JavaScript
Explanation
_getExpectedInventory
method. The data is assigned to the expectedLines
variable.formatDate
method converts date strings into a readable format.getAlignmentClass
method applies CSS classes based on the specified alignment value for the header.Usage
1.
ProductExpected
component is registered in your Vue app.2.
3.
ProductExpected
component in your Vue template with the appropriate model data.