I have a listing in a sub menu.
I would like to display different captions for the different items, all which are dynamically obtained. Much the same way ‘Open recent’ works.
I’ve implemented a
def is_visible(self, index):
function to only show relevant menu items, and that works great.
How can I provide a custom caption?
Is there a function along the lines of has_caption(self, index):
that I could implement?