Create/Update Action Bar Dynamically #311
Comments
setCaption() and setImage() have now been added for Action Items |
ActionBar setBackCaption() has now been implemented |
|
Can you explain more what you're referring to by break? Are you able to post a screenshot of what you are seeing? Can you list the device and OS version combination that you are using? The examples in the bbUI samples for action bar manipulation are working, so I'm wondering what you're seeing. |
The issue was on my end, I'll update the comment to avoid confusion. Thanks Tim. |
Added setSelectedTab(), getCaption(),getImage() |
Added show() and hide() |
I'm a BB10 developer, when are you planning to release this updates? appendAction(action) Thanks |
It will likely be sometime in January |
Started work on the show(), hide()... Keeping a todo list here..
|
👍 stay walking... i will follow :) |
First revisions for show, hide for actions/tabs that are not in the overflow menus are checked in.. there are still bugs with the action overflow button appearing/disappearing when you sometimes call show,hide on the items. I think this is a padding issue where the action overflow button wraps to the below the action bar. But if you aren't using the action overflow menu on your action bar, this first check-in should work not too bad. Still more work to do |
Checked in some progress.. the darn show/hide for main actions/tabs on the action bar are giving me grief. Especially when you have tab/action overflow buttons. Combine that with the initial data-bb-visible attribute and it's a bit of a mess. I'm going to have to do some major surgery on the action sizing code. But I have some ideas on how I can structure it to make things simpler than they are now. |
never retreat, never surrender ! I appreciate your effort, and will be highlighted with my app behavior ! Thanks |
Making some pretty good progress today on the button/tab show and hide functions. Still some more tweaking yet, but I'm getting closer :o) |
Dynamic show/hide of actions is now checked in. The wiki has also been updated. All that we have left for action bars is enabled/disabled states for buttons :o) Giddy-up!! |
Very good news! Thanks Tim! |
Is appending actions to the action bar still on the road map? Any suggestions on how to do this in the meantime? I am adding tabs to the actionbar from onscreenready... is that supposed to work? The web inspector shows that my divs have been appended to the actionbar, but they are unprocessed. |
@achan bb.init({onscreenready : function(element, id, params) {
// Markup generated here will be processed by bbUI.js
// Add markup with jQuery Example
$("#selector", element).append('<input type="text"></input>');
},
ondomready: function(element, id, params) {
// Markup generated here is not touched by bbUI.js
}});
}, false); |
Correct, you should be able to manipulate adding/removing items in the onscreenready event. For the foreseeable future, I don't see the ability to add/remove/insert functions being available. |
That was exactly what I was doing @rodnolan. My temporary solution was to load the objects that would represent my tabs into localStorage and pull them from there in |
Can you please add the set/getAccentText? |
Will it be possible to change the onclick event after the screen has been inserted into the DOM? |
@bert2002 you should be able to do that now by re-assigning the onclick document.getElementById('myaction').onclick = function() {alert('hello world');}; |
@tneil oh that was easy and working as you said :) many thanks |
+1 for setAccentText(value) |
Closing this issue in favor of the new v1.0 markup and associated JavaScript interfaces based on issue #933 |
Create and modify an action bar dynamically after the screen has been inserted into the DOM
For the Action Bar:
For an Action:
General
The text was updated successfully, but these errors were encountered: