ChildrenAsync<TModel>(INodeViewModel, Func<TModel, bool>)
Get the child node view models of the specified model type for the current node view model.
public static ValueTask<IReadOnlyList<INodeViewModel<TModel>>> ChildrenAsync<TModel>(INodeViewModel model, Func<TModel, bool> filter)
- Returns:
- ValueTask<IReadOnlyList<INodeViewModel<TModel>>>
Parameters
model
INodeViewModel
filter
Func<TModel, bool>
An optional filter predicate that will be applied to the result collection.
Type Parameters
TModel
The view model type of the child nodes.
ChildrenAsync(INodeViewModel)
public static ValueTask<IReadOnlyList<INodeViewModel<dynamic>>> ChildrenAsync(INodeViewModel model)
- Returns:
- ValueTask<IReadOnlyList<INodeViewModel<dynamic>>>
Parameters
model
INodeViewModel