Jasonette / Jasonette/JASONETTE-iOS
href as action does not carry over parameters
- Dominant language
- JavaScript
- Stars
- 5.2k
- Forks
- 347
- PR merge metrics
- No merged PRs in 30d
Description
I would like to hand over a parameter (id) from one view to the next when clicking on a button like this:
Both version however don't work:
```
{
"type": "button",
"style": {
"height": "20"
},
"url": "file://image.png",
"action": {
"type": "$href",
"options": {
"url": "file://some-local-json.json"
},
"id": "1234567"
}
```
```
{
"type": "button",
"style": {
"height": "20"
},
"url": "file://image.png",
"action": {
"type": "$href",
"options": {
"url": "file://some-local-json.json"
"id": "1234567"
}
}
```
The version that does work is this one, which is however not usable in my setup, since I would also like to implement the `$ok` two-way communication:
```
{
"type": "label",
"text": "Open view",
"href": {
"url": "file://some-local-json.json",
"options": {
"id": "1234567"
}
}
}
```
Contributor guide
Research direction
Start by reproducing the two $href action examples and compare them with the working label href example. Trace how href actions pass url and options, then verify that the id is carried to the next view while $ok two-way communication remains usable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100