mardi 20 décembre 2016

How to remove/extend toolbar button

We have develop toolbar(bootstrap- navbar)that contain number of button/control. this toolbar is working as expected.now there is some requirement to provide some mechanism to extend this toolbar with new buttons from outside or remove the default buttons, for example think that we provided this toolbar as some service and there is option to be able to add/remove buttons by configuration or something.

Currently I've two main question:

  1. How to structure the html which provided the toolbar with the buttons

  2. which pattern(design pattern) should I use to extend this toolbar, please keep im mind that that it should provide the buttons with the logic.

Any example will be very helpful

Aucun commentaire:

Enregistrer un commentaire