Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Built For BlackBerry

Reply
New Contributor
arun_goel3
Posts: 3
Registered: ‎01-04-2013
My Carrier: Airtel

Hide and Show method of data-bb-type="action" is not working in bbui 10

Hi

I am trying to use context menu in image-list.

 

<div id="listContent" data-bb-type="image-list" data-bb-header-justify="left" data-bb-header-style="solid" data-bb-context="true">

    </div>

  

    <div data-bb-type="context-menu" id="docReaderContextMenu">

        <div id = "deleteAction" data-bb-type="action" data-bb-img="img/delete.png" onclick="app.documentList.deleteDocument()"> delete </div>

        <div id = "updateAction" data-bb-type="action" data-bb-img="img/edit.png" onclick="app.documentList.updateDocument()"> update </div>

    </div>

 

But hide and show function is not working in below code. It is giving the error “TypeError: ‘undefined’ is not a function”

var updateAction = document.getElementById('updateAction');

var deleteAction = document.getElementById('deleteAction');

deleteAction.hide();

updateAction.show();

 

Thanks & Regards

Arun

Please use plain text.
Developer
jtegen
Posts: 6,145
Registered: ‎10-27-2010
My Carrier: AT&T

Re: Hide and Show method of data-bb-type="action" is not working in bbui 10

Best to ask in the development forum you are using. In this case, WebWorks.
Please use plain text.