From d389306ec45cdc021d912cfea8943683c2a1ac5e Mon Sep 17 00:00:00 2001 From: Markus Liebelt Date: Sat, 28 Apr 2018 10:51:00 +0200 Subject: [PATCH] Update README.md Fixed the wrong headings, to be rendered as markdown. --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index df784e6..ba438f5 100644 --- a/README.md +++ b/README.md @@ -29,20 +29,20 @@ var runtimeOptions = new Openfin.Desktop.RuntimeOptions }; ``` -###Application Options +### Application Options The Application Options object allows you to configure the OpenFin Application being embedded, options include: name, URL, icon and window options, you can read more about options in our [Docs](https://openfin.co/developers/application-config/): ```js var appOptions = new Openfin.Desktop.ApplicationOptions("of-chart", "of-chart-uuid", "http://cdn.openfin.co/embed-web/chart.html"); ``` -###Initialize +### Initialize The EmbeddedView needs to be initialized with both the RuntimeOptions object and the ApplicationOptions object: ```js OpenFinEmbeddedView.Initialize(runtimeOptions, appOptions); ``` -###Ready +### Ready To programmatically react to when the EmbeddedView has loaded its content, initialized and is ready to be displayed you can subscribe to the Ready event: ```js OpenFinEmbeddedView.Ready += (sender, e) => @@ -53,7 +53,7 @@ OpenFinEmbeddedView.Ready += (sender, e) => } ``` -###Embedding Child Windows +### Embedding Child Windows The OpenFinEmbeddedView allows you to embed web applicatons, these have their own render process and sandbox, but it also allows you to embed child windows that can share the same render process and sandbox, adding the risk of one window crashing the other but using less resources. ```js OpenFinEmbeddedView.Ready += (sender, e) => @@ -66,7 +66,7 @@ OpenFinEmbeddedView.Ready += (sender, e) => } ``` -###Runtime Object +### Runtime Object Every EmbeddedView control that shares a RuntimeOptions object will share a connection to the OpenFin Runtime. You can obtain this singleton object via the Runtime.GetRuntimeInstance function. It allows you to publish and subscribe to Inter Application Bus messages, react to disconnect events, and initiate connect calls (this is optional and unnecessary in the case where one or more EmbeddedView control has been initialized). ```js var openFinRuntime = Runtime.GetRuntimeInstance(runtimeOptions);