ant-design-blazor/components/core/JsInterop/JSInteropConstants.cs
zxyao cd73cf1cdd feat: add component notification (#99)
* feat: add notification

* fix: onclick event trigger on onclise on server rendering

* fix: notification no longer requires container

* fix: convert OnClick and OnClose type to event
2020-05-10 22:43:58 +08:00

55 lines
1.9 KiB
C#

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
namespace AntBlazor
{
public static class JSInteropConstants
{
private const string FUNC_PREFIX = "antBlazor.interop.";
public static string getDomInfo => $"{FUNC_PREFIX}getDomInfo";
public static string getBoundingClientRect => $"{FUNC_PREFIX}getBoundingClientRect";
public static string addDomEventListener => $"{FUNC_PREFIX}addDomEventListener";
public static string matchMedia => $"{FUNC_PREFIX}matchMedia";
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 initNotification => $"{FUNC_PREFIX}initNotification";
public static string createNotificationContaner => $"{FUNC_PREFIX}createNotificationContainer";
public static string addNotification => $"{FUNC_PREFIX}addNotification";
public static string removeNotification => $"{FUNC_PREFIX}removeNotification";
public static string destroyNotification => $"{FUNC_PREFIX}destroyNotification";
}
}