MitchellMarinoDev / leptos_form_tool

A declarative way to create forms for leptos.
Other
4 stars 2 forks source link

The Event that Text Fields update on should be configurable. #9

Closed MitchellMarinoDev closed 2 months ago

MitchellMarinoDev commented 3 months ago

Right now, the text fields (text input and text area) update their values on:focusout, but for some fields you might want to change this to on:changed or on:input. For the other controls, I dont think making this configurable makes sense.

This could be added as a styling attribute, or as a field on the TextInputData and TextAreaData. If this should be configurable by every implementation of FormStyle then it should be on the builder, if some styles may implement it and others not, it should be a styling attribute.

I think it should be a field on the TextInputData and TextAreaData.