ZoeTable 1.0.0
dotnet add package ZoeTable --version 1.0.0
NuGet\Install-Package ZoeTable -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ZoeTable" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ZoeTable" Version="1.0.0" />
<PackageReference Include="ZoeTable" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ZoeTable --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ZoeTable, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ZoeTable@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ZoeTable&version=1.0.0
#tool nuget:?package=ZoeTable&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Açıklama
Verileri tabloda göstermek için kullanılan bileşen olan ZoeTable'ın belgeleri.
ZoeTable Bileşeni Projede Kullanımı
@page "/person-list"
@using Denemeler.Models // Person modelinin bulunduğu namespace
@using ZoeTable
<Zt TDataItem="Person"
Title="Personel Listesi"
Items="people"
Columns="tableColumns"
AllowSearch="true"
AllowPagination="true"
AllowPageSizeChange="true"
PageSize="10">
<Actions Context="person">
<button class="btn btn-sm btn-outline-primary me-1"
@onclick="@(() => EditPerson(person))">
Düzenle
</button>
<button class="btn btn-sm btn-outline-danger"
@onclick="@(() => DeletePerson(person))">
Sil
</button>
</Actions>
</Zt>
@code {
private List<Person> people = new();
private List<Ztc<Person>> tableColumns = new();
protected override void OnInitialized()
{
// Verileri yükle
people = GenerateSampleData(44);
// Kolonları tanımla
tableColumns = new List<Ztc<Person>>
{
new Ztc<Person> {Title = "ID", FieldName = "Id", Width = "80px", HeaderClass = "text-center bg-primary text-white", CellClass = "text-center" },
new Ztc<Person> {Title = "Ad", FieldName = "FirstName", Width = "80px", HeaderClass = "text-center bg-primary text-white", CellClass = "text-center" },
new Ztc<Person> {Title = "Soyad", FieldName = "LastName", Width = "100px", HeaderClass = "text-center bg-primary text-white", CellClass = "text-center" },
new Ztc<Person> {Title = "E-Posta", FieldName = "Email", Width = "200px", HeaderClass = "text-center bg-primary text-white", CellClass = "text-center" },
new Ztc<Person> {Title = "Bölüm", FieldName = "Department", Width = "200px", HeaderClass = "text-center bg-primary text-white", CellClass = "text-center" },
new Ztc<Person> {Title = "Yaş", FieldName = "Age", Width = "80px", HeaderClass = "text-center bg-primary text-white", CellClass = "text-center" }
};
}
private List<Person> GenerateSampleData(int count)
{
var departments = new[] { "IT", "İnsan Kaynakları", "Finans", "Pazarlama", "Satış" };
var random = new Random();
return Enumerable.Range(1, count).Select(i => new Person
{
Id = i,
FirstName = $"İsim{i}",
LastName = $"Soyisim{i}",
Email = $"user{i}@mail.com",
Age = random.Next(22, 55),
Department = departments[random.Next(departments.Length)],
Salary = random.Next(15000, 40000)
}).ToList();
}
private void EditPerson(Person person) { /* ... */ }
private void DeletePerson(Person person)
{
people.Remove(person);
StateHasChanged();
}
}
Özellikler
- TDataItem: Tablo satırlarının veri türünü belirtir.
- Class Ztc<TDataItem>: Tablo kolonlarının yapılandırılması için kullanılır.
- AllowSearch: Arama özelliğini etkinleştirir.
- AllowPagination: Sayfalama özelliğini etkinleştirir.
- AllowPageSizeChange: Sayfa boyutu değiştirme özelliğini etkinleştirir.
- PageSize: Sayfa başına gösterilecek öğe sayısını belirler.
- Actions: Her satır için özel işlem düğmeleri eklemeyi sağlar.
- Title: Tablo başlığını belirler.
- Items: Tabloya bağlanacak veri koleksiyonunu belirtir.
- Columns: Tablo kolonlarının yapılandırmasını belirtir.
- HeaderClass ve CellClass: Kolon başlıkları ve hücreler için CSS sınıflarını belirler.
- Width: Kolon genişliğini belirler.
- FieldName: Kolonun veri kaynağındaki alan adını belirtir.
- Title: Kolon başlığını belirler.
- Context: Actions bileşeninde geçerli satır verisini temsil eder.
- GenerateSampleData(int count): Örnek veri oluşturmak için kullanılan yardımcı yöntem.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Microsoft.AspNetCore.Components.Web (>= 9.0.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 184 | 10/31/2025 |
Arama ve sayfalama özeliği olan basit tablo.