Jinntec / Fore

Fore - declarative user interfaces in plain HTML
MIT License
82 stars 11 forks source link

calling submission with params #182

Closed JoernT closed 1 year ago

JoernT commented 1 year ago

the idea is to allow passing attributes directly from fx-send action e.g.

<fx-send submission="submit" url="foo?p={bar}&p2={baz}" target="targetDiv" ...>

Essentially allowing to overwrite what is given on fx-submission. If a matching attribute is present on fx-sendit would just set the corresponding attribute of the submission.

It still needs consideration which submission attributes should be allowed to be overwritten.

JoernT commented 1 year ago

partly implemented on dev for 'url' and 'target' attributes. Extensible for other attributes and can easily be done on demand.