KTDrawer does not have getTargetElement like ktmodal
modal.on("show", function () {
console.log(modal.getTargetElement());
}); Hi
KTDrawer doesn’t expose getTargetElement(), but it does expose getRelatedTarget(), which returns the element that triggered the drawer (the same idea as KTModal’s target). You can use it like this:
drawer.on("show", function () { console.log(drawer.getRelatedTarget());}); Hi
Sorry for the earlier mix-up. There’s no update yet. KTDrawer still doesn’t expose a getTargetElement() method like KTModal. We’ve noted the request and will consider adding it in a future release. I appreciate your patience.