EisenbergEffect/Durandal — pull request #4 by graemechristie (2012-08-08 16:00:55+00:00)
Title: Messagebox example

I was playing with some of the functionality so I thought I may as well capture it as examples and submit it. Starting with a very simple hello example using app.messagebox .

I have also added some minimal CSS to support modal functionality. I have also modified the index so each sample displays in it's own application host.

I was not sure of your thoughts on Top Level application functionality around navigating to various samples so I have simply left each sample in it's own application host div as:

* An Index page (along with all of the meta tags and other markup) for each sample with conventional http navigation between each seemed a bit heavy.

* I did not want to use excessive Javascipt above the level of the actual example shells themselves for fear of reducing the clarity of the examples themselves and how simply the moving parts tie together,

* Ditto for using knockout/Durnadal itself to navigate between examples. Additionally knockout has some issues with composite views + view models.

* The existing markup for the index page is so clean, I wanted to preserve that.

* Pure CSS tabs might be another option but Either requires CSS3 (ie9+ only) or uses traditional navigation and is a bit hacky, actually both are pretty hacky.

Id be interested if you had any thoughts on how the examples would be structured.