smartcomponents icon indicating copy to clipboard operation
smartcomponents copied to clipboard

Component Reference for SmartPasteButton

Open igmani opened this issue 1 year ago • 0 comments

Hi, I've been trying to capture the component/element reference for SmartPasteButton, but it doesn't seem to be working. It looks like it's not being configured at the component source level. Can someone look into this issue and help me out?

Below is something I've been trying on

private SmartPasteButton smartBtnRef;

builder.OpenComponent<SmartPasteButton>(0);
builder.AddComponentReferenceCapture(1, btnRef => smartBtnRef = (SmartPasteButton)btnRef);
builder.CloseComponent();

igmani avatar Jul 26 '24 11:07 igmani