X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=examples%2Fbootstrap%2Fdashboard4.js;fp=examples%2Fbootstrap%2Fdashboard4.js;h=573920b96b38b8c4331a14855071f16c3ba79de8;hp=5ea667c64b0c4b6c750b50fc9fb159fb85b0cb1c;hb=2b33573f81a301e8ee55ba2bbb872b7edd18f4f6;hpb=1058d8298e1db26a6df52e7899b8cf205d405cf5 diff --git a/examples/bootstrap/dashboard4.js b/examples/bootstrap/dashboard4.js index 5ea667c64b..573920b96b 100644 --- a/examples/bootstrap/dashboard4.js +++ b/examples/bootstrap/dashboard4.js @@ -6,6 +6,7 @@ dashboard4 = new Roo.XComponent({ _strings : { '098f6bcd4621d373cade4e832627b4f6' :"test", + '9c1ab57e621c2bb257798752dbbe6f14' :"view source", 'e93b3fa481be3932aa08bd68c3deee70' :"example 1", '60ee66eb2cd31823032664c2e9a79fd5' :"body goes here", 'fb66f41b81f5973740bbfed019aa5d7d' :"Upload Images or Documents", @@ -38,6 +39,16 @@ dashboard4 = new Roo.XComponent({ items : [ { xtype : 'Button', + html : _this._strings['9c1ab57e621c2bb257798752dbbe6f14'] /* view source */, + listeners : { + click : function (btn, e) + { + // assumes installed as /roojs1. + Roo.docs.ViewSource.show({ + src: '/roojs1/examples/bootstrap/dashboard4.js' + }); + } + }, xns : Roo.bootstrap, '|xns' : 'Roo.bootstrap' },