sub

inline fun <T, I> RootInspector<List<T>>.sub(element: T, noinline idProvider: IdProvider<T, I>): SubInspector<List<T>, List<T>, T>
inline fun <R, P, T, I> SubInspector<R, P, List<T>>.sub(element: T, noinline idProvider: IdProvider<T, I>): SubInspector<R, List<T>, T>

creates a Inspector for an element in your Inspector's list.

Parameters

element

to get the Inspector for

idProvider

to get the id from an instance


inline fun <X> RootInspector<List<X>>.sub(index: Int): SubInspector<List<X>, List<X>, X>

creates a Inspector for an element in your Inspector's list.

Parameters

index

you need the Inspector for


inline fun <R, P, X> SubInspector<R, P, List<X>>.sub(index: Int): SubInspector<R, List<X>, X>

creates a Inspector for an element in your Inspector's list.

Parameters

index

of the element in your list you need the Inspector for

fun <D, I> Store<List<D>>.sub(element: D, id: IdProvider<D, I>): SubStore<List<D>, D>

creates a SubStore using a RootStore as parent using a given IdProvider.

Parameters

element

current instance of the entity to focus on

id

to identify the same entity (i.e. when it's content changed)


fun <D> Store<List<D>>.sub(index: Int): SubStore<List<D>, D>

creates a SubStore using a RootStore as parent using the index in the list (do not use this, if you want to manipulate the list itself (add or move elements, filter, etc.).

Parameters

index

position in the list to point to