Open TimPurdum opened 3 months ago
Requested on Discord. Expose the bookmark-edit event to GeoBlazor through the BookmarksWidget.
bookmark-edit
BookmarksWidget
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#event-bookmark-edit
pseudo-JavaScript workaround until this is implemented:
export function captureBookmarkEdit(core, widgetId, classRef) { let bookmarks = core.arcGisObjectRefs[widgetId]; bookmarks.on('bookmark-edit', async () => { await classRef.invokeMethodAsync('OnBookmarkEdit'); }); }
calling code:
private async Task OnViewRendered() { await yourJsModule.InvokeVoidAsync("captureBookmarkEdit", View.JsModule, bookmarkWidget.Id, DotNetObjectReference.Create(this)); } [JsInvokable] private async Task OnBookmarkEdit() { // do your work here }
Requested on Discord. Expose the
bookmark-edit
event to GeoBlazor through theBookmarksWidget
.https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#event-bookmark-edit
pseudo-JavaScript workaround until this is implemented:
calling code: