piral-blazor
Advanced tools
Comparing version 0.11.5-pre.1233 to 0.11.5-pre.1237
@@ -11,2 +11,3 @@ import './globals'; | ||
export declare function addReference(blob: Blob): Promise<unknown>; | ||
export declare function removeReference(name: string): Promise<unknown>; | ||
export declare function attachEvents(host: HTMLElement, render: (ev: CustomEvent) => void, navigate: (ev: CustomEvent) => void): () => void; | ||
@@ -13,0 +14,0 @@ export declare function initialize(data: BootJsonData): Promise<{ |
@@ -49,2 +49,6 @@ "use strict"; | ||
exports.addReference = addReference; | ||
function removeReference(name) { | ||
return DotNet.invokeMethodAsync(coreLib, 'UnloadComponentsFromLibrary', name); | ||
} | ||
exports.removeReference = removeReference; | ||
function attachEvents(host, render, navigate) { | ||
@@ -51,0 +55,0 @@ host.addEventListener(exports.eventNames.render, render, false); |
{ | ||
"name": "piral-blazor", | ||
"version": "0.11.5-pre.1233", | ||
"version": "0.11.5-pre.1237", | ||
"description": "Plugin for integrating Blazor components in Piral.", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
"@types/emscripten": "0.0.34", | ||
"piral-core": "^0.11.5-pre.1233" | ||
"piral-core": "^0.11.5-pre.1237" | ||
}, | ||
@@ -54,3 +54,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "8f7a439009e34b485bbb5f2a4e8828252ae44b85" | ||
"gitHead": "30ceae60248dd969ea2a3591e221b06cde6ea578" | ||
} |
@@ -32,2 +32,27 @@ [![Piral Logo](https://github.com/smapiot/piral/raw/master/docs/assets/logo.png)](https://piral.io) | ||
Exposing components looks like: | ||
```cs | ||
@attribute [ExposePilet("sample-page")] | ||
<div> | ||
<p> | ||
Current count: @counter | ||
</p> | ||
<p> | ||
<button @onclick="Increment">Increment</button> | ||
</p> | ||
</div> | ||
@code { | ||
int counter = 0; | ||
void Increment() | ||
{ | ||
counter++; | ||
} | ||
} | ||
``` | ||
The following functions are brought to the Pilet API. | ||
@@ -34,0 +59,0 @@ |
@@ -56,2 +56,6 @@ import './globals'; | ||
export function removeReference(name: string) { | ||
return DotNet.invokeMethodAsync(coreLib, 'UnloadComponentsFromLibrary', name); | ||
} | ||
export function attachEvents( | ||
@@ -58,0 +62,0 @@ host: HTMLElement, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
392589
6334
124