data-reflex-permanent
will not be morphed in any way.element
accessor. You can even scoop up the attributes of parent elements. This leaves form submission in the cold, though... doesn't it? π₯Άparams
accessorform
element - or a child of that form
element - then the data for the whole form will be properly serialized and made available to the Reflex action method as the params
accessor. params
is a dictionary that you can input into a django form as data, and then validate that data as you normally would.data-reflex="change->Post#update"
to each field. Since the field is inside the parent form
element, all inputs are automatically serialized and sent to your Reflex class.params
instance variable; it will be an empty dictionary.before
callbacks to do so:data-reflex-permanent
so that you don't lose UI state when a Reflex is triggered.<input>
fields. You're going to need to clear your form so the user can add more data.reflex-form
and we'll use it to set a target on the first text field, as well as an action on the submit button: