Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
Instructions to access the custom datasource view added
Browse files Browse the repository at this point in the history
  • Loading branch information
tidoust committed Mar 22, 2012
1 parent a6ff5cd commit 4fe3a75
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion public/content/dev/datasources/prepare.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,20 @@ <h3 id="add">Add a custom datasource to your app</h3>

<p>The Factory includes a "custom datasource" mode where you may copy and paste the code of your datasource and use it as a regular datasource that runs client-side and gets deployed with your application. This mode is particularly useful during development to debug the code of your datasource.</p>

<p>Custom datasources are an advanced feature, hidden by default. To access the custom datasource view, @@@.</p>
<p>Custom datasources are an advanced feature, hidden by default. To access the custom datasource view:</p>
<ol>
<li>Create an application in the Factory</li>
<li>Access the "Data" pane</li>
<li>Replace <code>/data</code> at the end of the address bar with <code>/datasource/new/custom/inline</code></li>
</ol>

<p>You should see a page with a text area where you can copy and paste the code of your datasource and preview the result.</p>

<figure>
<img src="/img/datasource-custom.png" alt="The custom datasource view provides a text area where you can copy and paste the code of your datasource" />
<figcaption>Custom datasource form</figcaption>
</figure>



<h3 id="amd">Wrap your code in a module and list dependencies</h3>
Expand Down
Binary file added public/img/datasource-custom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4fe3a75

Please sign in to comment.