public static TableConnectionsAndComponents <TView, TData> PresentInScrollWithLayout <TView, TData>( TableConnectionsAndComponents <TView, TData> connectionsAndComponents, ReactiveScrollRect scroll) where TView : ReusableView { AdjustScrollRectContentAnchors(scroll.scroll, scroll.scroll.horizontal); connectionsAndComponents.viewPort = new ScrollRectViewPort(scroll, connectionsAndComponents.layout, connectionsAndComponents.connectionSink); return(ControlItemVisibilityAndRecycle(connectionsAndComponents)); }
public static TableConnectionsAndComponents <TView, TData> PresentInScrollWithLayout <TData, TView>( this IReactiveCollection <TData> data, ReactiveScrollRect scroll, PrefabRef <TView> prefab = default, Action <TData, TView> show = null, Func <TData, PrefabRef <TView> > prefabSelector = null, IScrollViewLayout layout = null, // Linear layout is default TableDelegates <TView> delegates = null, PresentOptions options = PresentOptions.UseChildWithSameTypeAsView ) where TView : ReusableView { var components = CreateBasicTableComponents( data, scroll.scroll.content, show, prefab: prefab, prefabSelector: prefabSelector, layout: layout, delegates: delegates, options: options | PresentOptions.NeedLayout); return(PresentInScrollWithLayout(components, scroll)); }
public ScrollRectViewPort(ReactiveScrollRect rect, IScrollViewLayout layout, Action <IDisposable> connectionSink) { this.rect = rect; connectionSink(BindToLayout(layout)); }
public ScrollRectViewPort(ReactiveScrollRect rect) { this.rect = rect; }