Create a new todo Item, inline
Last updated
Last updated
Now, we want the ability to create a new todo item, directly from the todo list. To achieve this, we will:
Create a new form, inside your data provider
Add a text input to the form.
Set the input’s “Field” property to Title. We will use this to create a new item.
Add a button to the form.
Click on “Define Actions”, to set the button actions.
Add an “Execute Query” action, and choose your “Create new item” request.
Assign the item_title
parameter to your text input value.
Add a “Clear Form” action. This will clear the input, after the request has been executed.
Add a “Refresh Data Provider” action, and choose your data provider. This will reload the list, to display your new item.