public void Add(Element element, ulong time) { Console.WriteLine("ElementCollection:Add {0}", TimePrec.DecodeTime(time)); var metadata = BitConverter.GetBytes(time); switch (element.ScheduleStyle) { case ElementScheduleStyle.FirstWins: _singles.MergeFirstWins(element, metadata); break; case ElementScheduleStyle.LastWins: _singles.MergeLastWins(element, metadata); break; case ElementScheduleStyle.Multiple: var elementRef = new ElementRef { Element = element, Metadata = metadata }; _multiples.AddFirst(elementRef); break; default: Console.WriteLine("Warn:UNDEFINED"); throw new NotImplementedException(); } }
public Task <bool> Init(ElementRef elementRef, object componentRef) { return(JSRuntime.Current.InvokeAsync <bool>($"{BLAZORISE_NAMESPACE}.init", elementRef, new DotNetObjectRef(componentRef))); }
public Task <bool> ParentHasClass(ElementRef elementRef, string classaname) { return(runtime.InvokeAsync <bool>($"{BLAZORISE_NAMESPACE}.parentHasClass", elementRef, classaname)); }
public Task <bool> Init(ElementRef elementRef, object componentRef) { return(runtime.InvokeAsync <bool>($"{BLAZORISE_NAMESPACE}.init", elementRef, DotNetObjectRef.Create(componentRef))); }
public Canvas2DContext(IJSRuntime jSRuntime, ElementRef canvasRef) { this.jSRuntime = jSRuntime; this.canvasRef = canvasRef; }
public async Task OpenAsync(ElementRef anchorElement) { await Js.InvokeAsync <object>("matBlazor.matMenu.open", Ref, anchorElement); }
public static Task CreateAutocomplete(this ElementRef input) { return(JSRuntime.Current.InvokeAsync <object>("jsLib.createAutocomplete", input)); }
public Task FocusElement(ElementRef el) { return(JSRuntime.InvokeAsync <object>("blazorStrap.focusElement", el)); }
public EditDescription ChangeElementRef(ElementRef elementRef) { return(ChangeProp(ImClone(this), im => im.ElementRef = elementRef)); }
public EditDescription(IColumnCaption columnCaption, string auditLogParseString, ElementRef elementRef, object value) { ColumnCaption = columnCaption; AuditLogParseString = auditLogParseString; ElementRef = elementRef; Value = value; }
private static async Task <int> OpenReadAsync(ElementRef elementReference, int fileIndex) { return((int)await JSRuntime.Current.InvokeAsync <long>($"{nameof(FileReaderComponent)}.OpenRead", elementReference, fileIndex)); }
public static async Task <FileInfo> GetFileInfoFromElement(ElementRef elementReference, int index) { return(Json.Deserialize <FileInfo>(await JSRuntime.Current.InvokeAsync <string>($"{nameof(FileReaderComponent)}.GetFileInfoFromElement", elementReference, index))); //return await JSRuntime.Current.InvokeAsync<FileInfo>($"{nameof(FileReaderComponent)}.GetFileInfoFromElement", elementReference, index); }
public static async Task <int> GetFileCount(ElementRef elementReference) { return((int)await JSRuntime.Current.InvokeAsync <long>($"{nameof(FileReaderComponent)}.GetFileCount", elementReference)); }
public static async Task <Stream> OpenFileStream(ElementRef elementReference, int index, Action <long, int, long> logCallback = null) { var fileInfo = await GetFileInfoFromElement(elementReference, index); return(new InteropFileStream(await OpenReadAsync(elementReference, index), fileInfo.Size, logCallback)); }
public MenuItemClickEventArgs(UIMouseEventArgs mouseEvent, string contextMenuId, string contextMenuTargetId, ElementRef menuItemElement, Item menuItem) { MouseEvent = mouseEvent; ContextMenuId = contextMenuId; ContextMenuTargetId = contextMenuTargetId; MenuItemElement = menuItemElement; MenuItem = menuItem; }
public Task <bool> Tooltip(string target, ElementRef tooltip, ElementRef arrow, string placement) { return(JSRuntime.InvokeAsync <bool>("blazorStrap.tooltip", target, tooltip, arrow, placement)); }
/// <summary> /// On unobserving an element, pass the element /// reference to the action(s). /// </summary> /// <param name="elementRef">The element to unobserve</param> public void Unobserve(ElementRef elementRef) { OnUnobserve?.Invoke(this.Id, elementRef); }
public HttpApiClientRequestBuilder(HttpClient httpClient, string uri, IUriHelper uriHelper, ElementRef elementRef = default(ElementRef)) { _uri = uri; this.uriHelper = uriHelper; _httpClient = httpClient; _elementRef = elementRef; }
public static Task <decimal> GetElementWidth(ElementRef element) { return(JSRuntime.Current.InvokeAsync <decimal>("JSInterop.Layout.getElementWidth", element)); }
public static Task Focus(this ElementRef elementRef) { return(JSRuntime.Current.InvokeAsync <object>("jsLib.focusElement", elementRef)); }
public static async Task ScrollIntoView(ElementRef element) { await JSRuntime.Current.InvokeAsync <bool>("JSInterop.Layout.scrollIntoView", element).ConfigureAwait(false); }
public static async Task Focus(ElementRef element) { await JSRuntime.Current.InvokeAsync <bool>("JSInterop.Layout.focus", element).ConfigureAwait(false); }
public static async Task Initialize(ElementRef editorElement, string initialValue, bool isReadOnly) { await JSRuntime.Current.InvokeAsync <bool>("JSInterop.Monaco.initialize", editorElement, initialValue, isReadOnly).ConfigureAwait(false); }
public Task <bool> SetTextValue(ElementRef elementRef, object value) { return(runtime.InvokeAsync <bool>($"{BLAZORISE_NAMESPACE}.setTextValue", elementRef, value)); }
public static bool Popper(string target, string popper, ElementRef arrow, string placement) { return(RegisteredFunction.Invoke <bool>("BlazorStrap.BlazorStrapInterop.Popper", target, popper, arrow, placement)); }
public Task <bool> RemoveClass(ElementRef elementRef, string classname) { return(runtime.InvokeAsync <bool>($"{BLAZORISE_NAMESPACE}.removeClass", elementRef, classname)); }
public static bool Tooltip(string target, ElementRef tooltip, ElementRef arrow, string placement) { return(RegisteredFunction.Invoke <bool>("BlazorStrap.BlazorStrapInterop.Tooltip", target, tooltip, arrow, placement)); }
/// <summary> /// Gets the fake file paths from input field. /// </summary> /// <param name="element">Input field.</param> /// <returns>Returns an array of paths.</returns> public Task <string[]> GetFilePaths(ElementRef element) { return(runtime.InvokeAsync <string[]>($"{BLAZORISE_NAMESPACE}.getFilePaths", element)); }
public Task <bool> Popper(string target, string popper, ElementRef arrow, string placement) { return(JSRuntime.InvokeAsync <bool>("blazorStrap.popper", target, popper, arrow, placement)); }
public Task <bool> ToggleClass(ElementRef elementId, string classname) { return(JSRuntime.Current.InvokeAsync <bool>($"{BLAZORISE_NAMESPACE}.toggleClass", elementId, classname)); }
public Task AddEventListenerAsync <TEventArg>(string eventName, ElementRef elementRef, Action <TEventArg> eventCallback) { var jsCallback = new JsCallback(arg => eventCallback?.Invoke(arg.As <TEventArg>())); return(_jsRuntime.InvokeAsync <object>("dotnetify_blazor.addEventListener", eventName, elementRef, DotNetObjectRef.Create(jsCallback))); }