blackberry / bbUI.js

BlackBerry UI look and feel JavaScript toolkit for WebWorks
Apache License 2.0
312 stars 192 forks source link

Back button not shown in action bar if data-bb-style="tab" #924

Closed rtholmes closed 11 years ago

rtholmes commented 11 years ago

If my action bar items use data-bb-style="tab" instead of data-bb-style="button" the back button is not rendered. Examples of the not working / working action bars are included below.

    <!-- back button not shown -->
    <div data-bb-type="action-bar" data-bb-back-caption="Back">
        <div id='tabOpt' data-bb-type="action" data-bb-style="tab" >Options</div>
    </div>

    <!-- back button shown -->
    <div data-bb-type="action-bar" data-bb-back-caption="Back">
        <div id='tabOpt' data-bb-type="action" data-bb-style="button" >Options</div>
    </div>
tneil commented 11 years ago

That is by design. Back buttons and tabs are not allowed on the action bar at the same time

Sent from my BlackBerry 10 smartphone on the Rogers network. From: rtholmes Sent: Saturday, June 29, 2013 2:00 AM To: blackberry/bbUI.js Reply To: blackberry/bbUI.js Subject: [bbUI.js] Back button not shown in action bar if data-bb-style="tab" (#924)

If my action bar items use data-bb-style="tab" instead of data-bb-style="button" the back button is not rendered. Examples of the not working / working action bars are included below.

<!-- back button not shown -->
<div data-bb-type="action-bar" data-bb-back-caption="Back">
    <div id='tabOpt' data-bb-type="action" data-bb-style="tab" >Options</div>
</div>

<!-- back button shown -->
<div data-bb-type="action-bar" data-bb-back-caption="Back">
    <div id='tabOpt' data-bb-type="action" data-bb-style="button" >Options</div>
</div>

— Reply to this email directly or view it on GitHubhttps://github.com/blackberry/bbUI.js/issues/924.


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

rtholmes commented 11 years ago

Thanks Tim. I'm not sure how I missed that on the Action Bar page (I think the NOTE is one para higher on the page than it should be since it talks about back before back is described).