mixhtml

REMOVE

Remove already created items

In this example, there are multiple shown items in the DOM with the class "item". Clicking on the "Remove items" button, will send a reques to the server. The response will contain the instruction to remove those items.

Note: The request send to the server doesn't influence this example. It can be any type of request. For the example, it is using a POST reques to an imaginary end-point called "test"

Item One
Item Two
Item Three

Request

    <button mix-post="test">
        Remove items
    </button>

Response

<browser 
    mix-remove=".item"
>
</browser>

Remove already created items slowly

In this example, there are multiple shown items in the DOM with the class "item". Clicking on the "Remove items slowly" button, will send a reques to the server. The response will contain the instruction to remove those items.

Note: The request send to the server doesn't influence this example. It can be any type of request. For the example, it is using a POST reques to an imaginary end-point called "test"

Item One
Item Two
Item Three

Request

    <button mix-post="test">
        Remove items slowly
    </button>

Response

<browser 
    mix-remove=".item" mix-fade-5000
>
</browser>