atk4 / ui

Robust and easy to use PHP Framework for Web Apps
https://atk4-ui.readthedocs.io/en/stable/
MIT License
447 stars 106 forks source link

Add loadable typecast for JsCallback arguments #2225

Open mvorisek opened 3 days ago

mvorisek commented 3 days ago

Newly the passed arguments for JsCallback must define also "load typecasting".

This way we ensure the values passed to the given function passed to JsCallback are always already typecasted and with the right typecasting method for the generating source.

If values are passed as not-JsExpressionable thru View::on, they are bidirectionally typecasted implicitly.