ant-design-blazor/components/config-provider/ConfigService.cs
James Yeung d2e9c4b247 feat(module: config-provider): support RTL (#1238)
* feat(module: config-provider): support RTL

* add rtl for each component

* fix rtl for pagination

* add rtl for overlay
2021-03-31 19:23:26 +08:00

21 lines
451 B
C#

using System.Threading.Tasks;
using Microsoft.JSInterop;
namespace AntDesign
{
public class ConfigService
{
private IJSRuntime _jS;
public ConfigService(IJSRuntime js)
{
_jS = js;
}
public async Task ChangeDirection(string direction)
{
await _jS.InvokeVoidAsync(JSInteropConstants.SetDomAttribute, "html", "class", direction?.ToLowerInvariant());
}
}
}