public NodeEditorConfig <TEntity> AddCustomButton <TActionHandler>(Type buttonType, string?label = null, string?icon = null) { var button = new CustomButtonConfig(buttonType, typeof(TActionHandler)) { Icon = icon, Label = label }; Buttons.Add(button); return(this); }
public IListViewConfig <TEntity> AddCustomButton <TActionHandler>(Type buttonType, string?label = null, string?icon = null) where TActionHandler : IButtonActionHandler { var button = new CustomButtonConfig(buttonType, typeof(TActionHandler)) { Icon = icon, Label = label }; Buttons.Add(button); return(this); }