Let itemViewOptions of CollectionView be a function