Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
neogeek committed Jan 9, 2021
1 parent 218bc44 commit f1bbe90
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,17 @@ public void Start()
}
```

Data can also be loaded via a JSON `string` object.

```csharp
public void Start()
{

_form.LoadFromJSON(jsonString);

}
```

Data can also be loaded via a `Dictionary<string, object>` object.

```csharp
Expand All @@ -101,11 +112,22 @@ public void Start()
Create a submit event handler that takes `Dictionary<string, object>` as it's only property.

```csharp
public void SubmitForm(Dictionary<string, object> formRawValues)
public void SubmitFormObject(Dictionary<string, object> formRawValues)
{

Debug.Log(formRawValues);
Debug.Log(JsonConvert.SerializeObject(formRawValues));
Debug.Log(JsonConvert.SerializeObject(_form.GetFormValues<Profile>()));

}
```

Or a submit event handler that takes `string` as it's only property.

```csharp
public void SubmitFormJSON(string json)
{

Debug.Log(json);

}
```
Expand Down

0 comments on commit f1bbe90

Please sign in to comment.