Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }