public INodeViewConfig <TEntity> AddNavigationButton <TNavigationHandler>(string?label = null, string?icon = null) where TNavigationHandler : INavigationHandler { var button = new NavigationButtonConfig(typeof(TNavigationHandler)) { Icon = icon, Label = label }; Buttons.Add(button); return(this); }
public INodeViewConfig <TEntity> AddNavigationButton <TNavigationHandler>(string?label = null, string?icon = null, Func <IEntity, EntityState, bool>?isVisible = null) where TNavigationHandler : INavigationHandler { var button = new NavigationButtonConfig(typeof(TNavigationHandler)) { Icon = icon, Label = label }; button.VisibleWhen(isVisible); Buttons.Add(button); return(this); }