This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from IvanJosipovic/dev
v0.0.5
- Loading branch information
Showing
17 changed files
with
3,979 additions
and
1,083 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,71 @@ | ||
# BlazorTable | ||
[![Demo](https://img.shields.io/badge/Live-Demo-Blue?style=flat-square)](https://BlazorTable.netlify.com/) | ||
[![Nuget (with prereleases)](https://img.shields.io/nuget/vpre/BlazorTable.svg?style=flat-square)](https://www.nuget.org/packages/BlazorTable) | ||
![](https://github.com/IvanJosipovic/BlazorTable/workflows/CI/CD/badge.svg) | ||
|
||
**Work in progress!** | ||
|
||
A simple Table Control for Blazor | ||
|
||
[Demo Site](https://BlazorTable.netlify.com/) | ||
|
||
[![Nuget (with prereleases)](https://img.shields.io/nuget/vpre/BlazorTable.svg)](https://www.nuget.org/packages/BlazorTable) | ||
|
||
![](https://github.com/IvanJosipovic/BlazorTable/workflows/CI/CD/badge.svg) | ||
|
||
### Features | ||
## Features | ||
- Edit Mode ([Template Switching](/src/BlazorTable.Sample/Pages/EditMode.razor)) | ||
- Client Side | ||
- Paging | ||
- Sorting | ||
- Filtering | ||
- String | ||
### Todo | ||
- Strings | ||
- Numbers | ||
## Todo | ||
- Client Side | ||
- Filtering | ||
- Numbers (WIP) | ||
- Dates | ||
- Custom Filter | ||
- Remove dependency on Bootstrap + BlazorStrap | ||
|
||
|
||
### Sample | ||
## Sample | ||
[Example](/src/BlazorTable.Sample/Pages/Index.razor) | ||
|
||
```csharp | ||
<Table TableItem="PersonData" Items="data" PageSize="15"> | ||
<Column TableItem="PersonData" Title="Id" Property="@(x => x.id)" Sortable="true"> | ||
<Column TableItem="PersonData" Title="Id" Property="@(x => x.id)" Sortable="true" Filterable="true" Width="10%"> | ||
<Template> | ||
@context.id | ||
</Template> | ||
</Column> | ||
<Column TableItem="PersonData" Title="First Name" Property="@(x => x.first_name)" Sortable="true"> | ||
<Column TableItem="PersonData" Title="First Name" Property="@(x => x.first_name)" Sortable="true" Filterable="true" Width="20%"> | ||
<Template> | ||
@context.first_name | ||
</Template> | ||
</Column> | ||
<Column TableItem="PersonData" Title="Last Name" Property="@(x => x.last_name)" Sortable="true"> | ||
<Column TableItem="PersonData" Title="Last Name" Property="@(x => x.last_name)" Sortable="true" Filterable="true" Width="20%"> | ||
<Template> | ||
@context.last_name | ||
</Template> | ||
</Column> | ||
<Column TableItem="PersonData" Title="Email" Property="@(x => x.email)" Sortable="true"> | ||
<Column TableItem="PersonData" Title="Email" Property="@(x => x.email)" Sortable="true" Filterable="true" Width="20%"> | ||
<Template> | ||
<a href="mailto:@context.email">@context.email</a> | ||
</Template> | ||
</Column> | ||
<Column TableItem="PersonData" Title="Gender" Property="@(x => x.gender)" Sortable="true"> | ||
<Column TableItem="PersonData" Title="Confirmed" Property="@(x => x.confirmed)" Sortable="true" Filterable="true" Width="10%"> | ||
<Template> | ||
@context.confirmed.ToString() | ||
</Template> | ||
</Column> | ||
<Column TableItem="PersonData" Title="Fund" Property="@(x => x.fund)" Sortable="true" Filterable="true" Width="10%"> | ||
<Template> | ||
@context.gender | ||
$@context.fund | ||
</Template> | ||
</Column> | ||
<Column TableItem="PersonData" Title="IP" Property="@(x => x.ip_address)" Sortable="true"> | ||
<Column TableItem="PersonData" Title="Created Date" Property="@(x => x.created_date)" Sortable="true" Width="10%"> | ||
<Template> | ||
@context.ip_address | ||
@context.created_date.ToShortDateString() | ||
</Template> | ||
</Column> | ||
<Pager TableItem="PersonData" /> | ||
<Pager TableItem="PersonData" ShowPageNumber="true" ShowTotalCount="true" /> | ||
</Table> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.