ant-design-blazor/components/core/JsInterop/JSInteropConstants.cs

50 lines
1.7 KiB
C#
Raw Normal View History

2020-03-10 15:25:29 +08:00
using System;
using System.Collections.Generic;
using System.Globalization;
2020-03-10 15:25:29 +08:00
using System.Text;
namespace AntDesign
2020-03-10 15:25:29 +08:00
{
public static class JSInteropConstants
{
private const string FUNC_PREFIX = "AntDesign.interop.";
2020-03-10 15:25:29 +08:00
public static string getDomInfo => $"{FUNC_PREFIX}getDomInfo";
public static string getBoundingClientRect => $"{FUNC_PREFIX}getBoundingClientRect";
public static string addDomEventListener => $"{FUNC_PREFIX}addDomEventListener";
2020-03-15 23:54:48 +08:00
public static string matchMedia => $"{FUNC_PREFIX}matchMedia";
2020-03-10 15:25:29 +08:00
public static string copy => $"{FUNC_PREFIX}copy";
public static string log => $"{FUNC_PREFIX}log";
public static string focus => $"{FUNC_PREFIX}focus";
public static string blur => $"{FUNC_PREFIX}blur";
public static string backTop => $"{FUNC_PREFIX}BackTop";
public static string getFirstChildDomInfo => $"{FUNC_PREFIX}getFirstChildDomInfo";
public static string addClsToFirstChild => $"{FUNC_PREFIX}addClsToFirstChild";
public static string addDomEventListenerToFirstChild => $"{FUNC_PREFIX}addDomEventListenerToFirstChild";
public static string addElementToBody => $"{FUNC_PREFIX}addElementToBody";
public static string delElementFromBody => $"{FUNC_PREFIX}delElementFromBody";
public static string addElementTo => $"{FUNC_PREFIX}addElementTo";
public static string delElementFrom => $"{FUNC_PREFIX}delElementFrom";
public static string getActiveElement => $"{FUNC_PREFIX}getActiveElement";
public static string focusDialog => $"{FUNC_PREFIX}focusDialog";
public static string getWindow = $"{FUNC_PREFIX}getWindow";
2020-03-10 15:25:29 +08:00
}
}