Shared UI elements?

31 views
Skip to first unread message

Emersion

unread,
Aug 1, 2014, 3:00:05 AM8/1/14
to breac...@googlegroups.com
Hi!

I was just thinking about this issue:
Modules are highly decoupled for now. As an example, if someone wants to create a mod_bookmark bookmark module today, she will have to somehow add a button in mod_strip. Or mod_strip does not have an API for that at the moment, and this is a great question whether breach_core should provide structures to support that integration among modules or not?

Would it be a good idea to expose a common API for UI widgets, like in Firefox (e.g. https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Adding_a_Button_to_the_Toolbar)? Then, mod_strip could decide (and let the user decide) which widgets to show and where. Ideally, the navigation buttons (previous/next), the address bar, the tabs bar would be widgets too. It would have been a great idea to use something like Polymer to do this, web components are perfect: want an adress bar there? Just write <address-bar></address-bar> !

I saw you're using Angular, it can also be achieved using directives.

What do you think?

Stanislas Polu

unread,
Aug 1, 2014, 11:41:45 AM8/1/14
to Emersion, breac...@googlegroups.com
I definitely like the idea to have a central repository of actions available to the user with a simple classification.

Then it's up to the module to display it the way it wants... I guess the implementation details are up to that module as well but, a repository exposed by the breach core API looks like a great way to go!

-stan

--
Stanislas Polu

Mo: +1 415 216 5700 | Tw: @spolu 


--
You received this message because you are subscribed to the Google Groups "breach-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to breach-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages