コード例 #1
0
ファイル: JS.cs プロジェクト: mugongliu1/Blazorise
 // TODO: clean this
 public static ValueTask <bool> SetChartData <TItem, TOptions>(IJSRuntime runtime, string id, ChartType type, ChartData <TItem> data, TOptions options, string dataJsonString, string optionsJsonString)
 {
     return(runtime.InvokeAsync <bool>("blazoriseCharts.setChartData", id, ToChartTypeString(type), ToChartDataSet(data), options, dataJsonString, optionsJsonString));
 }
コード例 #2
0
        public virtual async ValueTask Initialize <TItem, TOptions>(DotNetObjectReference <ChartAdapter> dotNetObjectReference, object eventOptions, ElementReference canvasRef, string canvasId, ChartType type, ChartData <TItem> data, TOptions options, string dataJsonString, string optionsJsonString, object optionsObject)
        {
            var moduleInstance = await Module;

            await moduleInstance.InvokeVoidAsync("initialize",
                                                 dotNetObjectReference,
                                                 eventOptions,
                                                 canvasRef,
                                                 canvasId,
                                                 ToChartTypeString( type ),
                                                 ToChartData( data ),
                                                 options,
                                                 dataJsonString,
                                                 optionsJsonString,
                                                 optionsObject);
        }
コード例 #3
0
ファイル: JS.cs プロジェクト: yorytang/Blazorise
 public static ValueTask Initialize <TItem, TOptions>(IJSRuntime runtime, DotNetObjectReference <ChartAdapter> dotNetObjectReference, bool hasClickEvent, bool hasHoverEvent, string canvasId, ChartType type, ChartData <TItem> data, TOptions options, string dataJsonString, string optionsJsonString, object optionsObject)
 {
     return(runtime.InvokeVoidAsync("blazoriseCharts.initialize",
                                    dotNetObjectReference,
                                    hasClickEvent,
                                    hasHoverEvent,
                                    canvasId,
                                    ToChartTypeString(type),
                                    ToChartDataSet(data),
                                    options,
                                    dataJsonString,
                                    optionsJsonString,
                                    optionsObject));
 }
コード例 #4
0
ファイル: JS.cs プロジェクト: vmakharashvili/Blazorise
 // TODO: clean this
 public static ValueTask <bool> UpdateChart <TItem, TOptions>(IJSRuntime runtime, string canvasId, ChartData <TItem> data, TOptions options, string dataJsonString, string optionsJsonString)
 {
     return(runtime.InvokeAsync <bool>("blazoriseCharts.update", canvasId, ToChartDataSet(data), options, dataJsonString, optionsJsonString));
 }