smartcomponents
smartcomponents copied to clipboard
Component Reference for SmartPasteButton
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();