We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IN BECanvasComponent
Remove:
[Parameter] public long Height { get; set; } [Parameter] public long Width { get; set; }
Add:
[Parameter(CaptureUnmatchedValues = true)] public Dictionary<string, object> InputAttributes { get; set; }
IN BECanvas.razor
Remove: <canvas id="@Id" width="@Width" height="@Height" @ref="_canvasRef"></canvas>
<canvas id="@Id" width="@Width" height="@Height" @ref="_canvasRef"></canvas>
Add: <canvas id="@Id" @attributes="InputAttributes" @ref="_canvasRef"></canvas>
<canvas id="@Id" @attributes="InputAttributes" @ref="_canvasRef"></canvas>
Finish, use:
<BECanvas style="height: 250px; flex: auto" @ref="_canvasReference" ></BECanvas > <BECanvas Height="@SizeY" Width="@SizeX" @ref="_canvasReference" />
The text was updated successfully, but these errors were encountered:
I have created PR #119 that does exactly as you described.
Sorry, something went wrong.
No branches or pull requests
IN BECanvasComponent
Remove:
Add:
IN BECanvas.razor
Remove:
<canvas id="@Id" width="@Width" height="@Height" @ref="_canvasRef"></canvas>
Add:
<canvas id="@Id" @attributes="InputAttributes" @ref="_canvasRef"></canvas>
Finish, use:
The text was updated successfully, but these errors were encountered: