How to add Element Field TO Addon

I understand how to add inputs now, but I wanted to do a variation of the Swipe to Element but can’t seem to figure out how to add the element section to the Addon. Like here in the Swipe To Element(UPD/DOWN).