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许可下发布,除非符合许可,否则不得使用。许可证的副本应已安装在产品的根安装目录中,否则可以在此处找到:许可协议。
该软件是“原样”提供的,无明示或暗示的任何形式的保证。有关许可下的特定语言管理权和限制,请参阅许可证。