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:
How to structure the html which provided the toolbar with the buttons
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