Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add button to title bar? #36

Closed
wmkeicher opened this issue May 3, 2016 · 1 comment
Closed

Add button to title bar? #36

wmkeicher opened this issue May 3, 2016 · 1 comment

Comments

@wmkeicher
Copy link

Hi,

Is it possible to add a button to the title bar? I've only been able to add buttons to the bottom of the page.

var page = new ace.Page(); var commandBar = new ace.CommandBar(); var appBarButton = new ace.AppBarButton(); appBarButton.setLabel("test"); commandBar.getPrimaryCommands().add(appBarButton); page.setCommandBar(commandBar); page.setTitle("Title"); page.setContent(ace.getHostWebView()); ace.getHostPage().setContent(page);

@frederikbosch
Copy link
Contributor

frederikbosch commented May 7, 2016

See #38, contains fix for top app bar via javascript.

var commandBar = new ace.CommandBar();
var button = new ace.AppBarButton();
button.setLabel('Button');
commandBar.getPrimaryCommands().add(button);

page.setTopAppBar(commandBar);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants