FragmentView
FragmentView mounts a fragment style from AppConfig outside of CollectionView. Use it when a screen needs the same fragment system used by DynamicCell: views.base, status styles, data maps, and fragment callbacks.
Key Fields
fragmentStyleKey: AppConfig style key for the fragment.itemContent: data object used by$supportsDataMapbindings.viewStatus: status applied to the fragment, such asnormal,focused,selected, ordisabled.
Example
FragmentView({
fragmentStyleKey: 'cells.hero',
itemContent: {
title: 'Featured',
imageSet: { fhd: 'pkg:/images/hero-fhd.png' },
},
});
FragmentView uses ViewFragmentProvider, so callbacks registered for onMount, onUnmount, onApplyViewStatus, onDataChange, and ${fn.*} bindings behave the same way as they do in CollectionView cells.
For the shared view-fragment model, including data maps, callbacks, and constraints used by both CollectionView cells and FragmentView, see Fragment Styles.