예제 #1
0
        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);
        }
예제 #3
0
        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);
        }