public IListViewConfig <TEntity> AddPaneButton(Type paneType, string?label = null, string?icon = null, CrudType?defaultCrudType = null) { var button = new PaneButtonConfig(paneType, defaultCrudType) { Icon = icon, Label = label }; Buttons.Add(button); return(this); }
public IListEditorConfig <TEntity> AddPaneButton(Type paneType, string?label = null, string?icon = null) { var button = new PaneButtonConfig(paneType) { Icon = icon, Label = label }; Buttons.Add(button); return(this); }
public INodeViewConfig <TEntity> AddPaneButton(Type paneType, string?label = null, string?icon = null, Func <IEntity, EntityState, bool>?isVisible = null) { var button = new PaneButtonConfig(paneType) { Icon = icon, Label = label }; button.VisibleWhen(isVisible); Buttons.Add(button); return(this); }