ant-design-blazor/components/table/IFieldColumn.cs
James Yeung 8f00d47fe5
docs: achieve a querying & editing demo for table (#3970)
* docs: add crud demo

* update demo
2024-07-11 22:31:40 +08:00

40 lines
960 B
C#

using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using AntDesign.TableModels;
using Microsoft.AspNetCore.Components;
namespace AntDesign
{
public interface IFieldColumn : IColumn
{
public string DisplayName { get; }
public string FieldName { get; }
public string Format { get; set; }
public bool Sortable { get; set; }
public bool Filterable { get; set; }
public int SorterMultiple { get; set; }
public bool Grouping { get; set; }
public ITableSortModel SortModel { get; }
public ITableFilterModel FilterModel { get; }
internal void ClearSorter();
internal void ClearFilters();
internal void SetFilterModel(ITableFilterModel filterModel);
internal void SetSortModel(ITableSortModel sortModel);
internal IQueryable<IGrouping<object, TItem>> Group<TItem>(IQueryable<TItem> source);
}
}