Views
Last Updated - Platform 19.0.0 - SDK 14.0.0- Product List View
- Product List Header View
- Product List Toolbar View
- Product Listing View
- Product Variant Group Selection View
Domain
The domain layer acts as the frontend contract for feature frameworks containing fixed data models with customData
for customisations. Domain objects presented by this feature include:
ProductListState
ProductList
ProductListing
ProductVariantGroup
Customisation
The ProductListBuilder
sets the main view
and viewDataMapper
properties from Containers by default. These can be changed for a specific instance of the Product List using the withView
and withViewDataMapper
functions. However, it is more likely that you will want to use Containers to customise the Product List on a global basis.
To inject a custom view or dependency you should:
- Open your
AppModule
and go to the relevantsetUp
function.
For a view or dependency shared by other features go to the setUpDependencies
function. Otherwise, for one specific to the Product List, go to the setUpProductList
function.
- Use the docs to identify the view or dependency in Containers and add this to the
setUp
function. - Create your custom view or dependency in the closure body.
func setUpProductList() { Container.shared.views.productListView = { // Return your custom ProductListView here. }}