Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

access to listview item in oj-option(oj-swipe-actions) not working

edited Jan 30, 2019 11:15AM in Visual Builder

Summary

cannot access $current.data in oj-option

Content

I try to implement swipe-to-reveal in an oj-list-view with options dependent on the content of the current item.

However $current.data is undefined when I try to access it from oj-options in  <template slot="end">.

A html extract is shown in the code snippet window....but $current.data is undefined whenever I swipe. My question is what am I doing wrong here?

In the documentation for <oj-swipe-actions> it is described for the end-slot:

The <span class="kwd">end</span> slot is used to specify the action bar that appears when user swipes from end to start on its container. The slot must be a <template> element.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!