Blazor的Integralui Lite是一個免費的UI庫,該圖書館由Glazor .NET的高級,可定制和高性能組件。
注意免費用於商業用途。
請注意,此庫是完整產品包的精簡版:for Blazor的Integralui。此版本中排除了一些更高級的組件功能。
這是其中包括的簡要概述:
按鈕 - 表示一個按鈕
ButtOngroup-管理組中排列的多個按鈕的操作
日曆 - 使用戶可以使用視覺每月日曆顯示選擇日期
卡 - 兩側的翻轉卡
複選框 - 代表一個複選框
下拉 - 在下拉窗口中顯示其他組件
列表 - 顯示一個簡單的項目列表,其中包含自定義佈局中的內容
POPOVER-在指定元素上顯示自定義HTML內容
RadioButton-代表一個廣播按鈕
選擇 - 允許您從下拉列表中選擇一個項目
工具提示 - 將工具提示添加到元素
Treelist-允許您一次僅顯示一個列表的樹層次結構
用於大爆炸的Integralui Lite是使用.NET 8.0框架構建的。
在線QuickStart應用程序 - 包含每個組件的在線演示
npm install https://github.com/lidorsystems/integralui-lite-blazor.git或直接來自NPM
npm i integralui-lite-blazor庫文件位於產品安裝目錄的 /bin文件夾中。
現在,您可以使用Integralui Lite庫中的所有組件。您可以導入的名稱空間很少:
integralui.lite.com
integralui.lite.data
integralui.lite.events
integralui.lite.interfaces
integralui.lite.Services
所有組件均位於integralui.lite.com下,命名空間。
首先,您需要在您的身邊安裝Blazor庫的Integralui Lite,並為要使用的組件添加引用(請參見上面的步驟)。
如果是Integalui列表組件,則需要執行以下操作:
例如:
@page "/"
<IntegralUIList @ref=listRef Id="list-sample" TItem="CustomItem"
Items="@items"
MouseWheelSpeed="IntegralUISpeedMode.VerySlow"
Size="@ctrlSize">
<ItemTemplate>
<span>@context.Item?.Text</span>
</ItemTemplate>
</IntegralUIList>
@code {
// Get a reference to the IntegralUI TreeView component to call public methods
private IntegralUIList<CustomItem>? listRef;
// Data model
public class CustomItem
{
public string? Id { get; set; }
public string? Genre { get; set; }
public double Rating { get; set; }
public bool Selected { get; set; } = false;
public string? Text { get; set; }
public int Year { get; set; }
}
// Define the component size
public IntegralUISize ctrlSize = new() { Width = 350, Height = 300 };
// Add items to the List component
public List<CustomItem> items = new()
{
new CustomItem { Id = "1", Genre = "Sci-Fi", Text = "Star Trek", Year = 2009, Rating = 8 },
new CustomItem { Id = "2", Genre = "Adventure", Text = "Cast Away", Year = 2000, Rating = 7 },
new CustomItem { Id = "3", Genre = "Action", Text = "Gladiator", Year = 2000, Rating = 8 },
// . . .
};
}
有一個帶有源代碼的演示應用程序,該應用程序包含大型產品軟件包的Integralui Lite中包含的每個組件的樣本。它可以幫助您快速開始學習組件並立即編寫測試。
快速啟動項目可在產品安裝目錄中的 /QuickStart文件夾下找到。
您可以自由使用此產品來開發Internet和Intranet網站,Web應用程序和其他產品,並帶有無需負責。
該項目已在Integralui Lite for Blazor許可下發布,除非符合許可,否則不得使用。許可證的副本應已安裝在產品的根安裝目錄中,否則可以在此處找到:許可協議。
該軟件是“原樣”提供的,無明示或暗示的任何形式的保證。有關許可下的特定語言管理權和限制,請參閱許可證。