sub
inline fun <T, I> RootInspector<List<T>>.sub(element: T, noinline idProvider: IdProvider<T, I>): SubInspector<List<T>, List<T>, T>
Content copied to clipboard
inline fun <R, P, T, I> SubInspector<R, P, List<T>>.sub(element: T, noinline idProvider: IdProvider<T, I>): SubInspector<R, List<T>, T>
Content copied to clipboard
creates a Inspector for an element in your Inspector's list.
Parameters
element
to get the Inspector for
id Provider
to get the id from an instance
inline fun <X> RootInspector<List<X>>.sub(index: Int): SubInspector<List<X>, List<X>, X>
Content copied to clipboard
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>
Content copied to clipboard
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>
Content copied to clipboard
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)
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