We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f14c652 commit bcc5b73Copy full SHA for bcc5b73
src/BootstrapBlazor/Extensions/IEditorItemExtensions.cs
@@ -12,6 +12,13 @@ namespace BootstrapBlazor.Components;
12
/// </summary>
13
public static class IEditorItemExtensions
14
{
15
+ /// <summary>
16
+ /// 判断当前 IEditorItem 实例是否为 Lookup 类型
17
+ /// </summary>
18
+ /// <param name="item"></param>
19
+ /// <returns></returns>
20
+ public static bool IsLookup(this IEditorItem item) => item.Lookup != null || item.LookupService != null || !string.IsNullOrEmpty(item.LookupServiceKey);
21
+
22
/// <summary>
23
/// 判断当前 IEditorItem 实例是否可以编辑
24
0 commit comments