Skip to content

Commit

Permalink
Merge pull request #54 from EnsembleUI/ruthUpdates
Browse files Browse the repository at this point in the history
Trial Upload / Getting Started section edits
  • Loading branch information
RuthLHanan authored Nov 6, 2023
2 parents 9e62824 + 8cbfb21 commit dbd97ed
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion actions/1-invokeAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ To handle Errors, you can use the `onError` property:
- Text:
text: Handle error
- Button:
label: Call API
label: Call API
onTap:
invokeAPI:
name: createToDoError
Expand Down
2 changes: 1 addition & 1 deletion getting-started/1-create-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Get started by creating a new UI in [Ensemble Studio](https://studio.ensembleui.

Along with the app, a screen is created. You can add additional screens as you go along to complete your app.

In the editor, you see the definition for the UI of your screen that is rendered on the `right`. While in `center` is a default generated yaml code which is generated whenever a new screen or an App is created. On `left` is `Widget Tree` which shows all the widgets you have used ( coming soon ).
In the editor, you see the definition for the UI of your screen that is rendered on the `right`. While in `center` is a default generated yaml code which is generated whenever a new screen or an App is created. On `left` is `Widget Tree` which shows all the widgets you have used.

![Alt text](image-2.png)
6 changes: 4 additions & 2 deletions getting-started/4-form.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Add a Form

Here is our code until now
Let’s create a simple Form starting with this base code you can copy and paste into Ensemble Studio

A Form is a container widget with special behavior such as `onSubmit` event handler.

```yaml
View:
Expand Down Expand Up @@ -30,7 +32,7 @@ View:
Let's create a simple form with one text input and a button. Start by removing the [Text](/widget-reference/text) and [Button](/widget-reference/button) widget and add a [Form](/widget-reference/form) widget instead.
A Form is a container widget with special behavior such as `onSubmit` event handler.
Take note of proper indentation and make sure everything is nested within another; messing this up could cause misrepresentation of the app's data hierarchy.
### Add a TextInput
Expand Down
4 changes: 2 additions & 2 deletions getting-started/5-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ View:
action: # perform an action here
```
Let's add a `onLoad` property to the `View`, and then an `action` to this property. You can see available actions in Ensemble [here](/build/make-it-interactive/actions-and-events/directory).
Let's add a `onLoad` property to the `View`, and then an `action` to this property. You can see available actions in Ensemble [here](/actions/directory).

![Alt text](image-5.png)

Note: There is no api to call but the purpose is just to show how actions can be used, you can check all the actions [here](/build/make-it-interactive/actions-and-events/directory)
Note: There is no api to call but the purpose is just to show how actions can be used, you can check all the actions [here](/actions/directory)

Let's use `executeCode` action so we can initiate a local storage variable in the next step.
2 changes: 1 addition & 1 deletion getting-started/6-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ View:

**Note**

Ensemble uses ES5 syntax so using `let`, `const`, `arrow functions ()=>()` is not supported yet. However you can make use use plain functions and `var` for declaring variables. See more details about JavaScript in ensemble [here](/build/javascript/README)
Ensemble uses ES5 syntax so using `let`, `const`, `arrow functions ()=>{}` is not supported yet. However you can make use use plain functions and `var` for declaring variables. See more details about JavaScript in ensemble [here](/javascript-reference/README)

0 comments on commit dbd97ed

Please sign in to comment.