Skip to main content
Version: 5.2

OrderHistory customization

If you want to fully customize this component we recommend copying the code into your Mealz template configuration. You can remove the code you do not override.

orderHistory {
success {
lazyListLoader {
view = MyCustomLazyLoaderView()
}
order {
view = MyCustomOrderView()
numberOfRecipeBeforeOverflow = myCustomNumberOfRecipes
}
search {
view = MyCustomOrderHistorySuccessSearchView()
}
orderDetail {
header {
view = MyCustomOrderDetailsHeaderView()
}
recipeCard {
view = MyCustomOrderDetailsRecipeCardView()
}
}
spacingBetweenCard: Int = myCustomSpacing
}
loading {
view = MyCustomItemSelectorLoadingView()
}
empty {
view = MyCustomItemSelectorEmptyView()
}
}
class MiamTemplateManager {
init {
MiamTheme.Template
{
// <---- copy above code here
}
}
}