Skip to content

Commit

Permalink
Documented extraData
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux committed Jan 8, 2025
1 parent 58e8c9d commit 45ddd12
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@ SeatingChartConfig()
})
```

### extraData

`extraData` on objects is exposed as a `JSON` object from `[SwiftyJSON]`(https://github.com/SwiftyJSON/SwiftyJSON):

```swift
SeatingChartConfig()
.onObjectSelected({ (object, ticketType) in
print(object.extraData!["foo"])
})
```

### chart.listSelectedObjects

```swift
Expand Down

0 comments on commit 45ddd12

Please sign in to comment.