I added the option to set a container different from the body.
The container option must be a JQuery selector with length 1. Not sure if this is the best implementation, an other option could be the string of the id, but this require the element to have an id.
This can be useful if I do not want the toast to go over an element. For example I don't want the toast to be over the navigation topbar, so I set the container to the main content.
To achieve this, i changed TOAST_CONTAINER_HTML and TOAST_WRAPPER_HTML, removing the id and adding a class, because if I create a toast in 2 different containers the ids would be duplicated.
I also created an example, but its graphic might be not ideal.
I added the option to set a container different from the body. The container option must be a JQuery selector with length 1. Not sure if this is the best implementation, an other option could be the string of the id, but this require the element to have an id.
This can be useful if I do not want the toast to go over an element. For example I don't want the toast to be over the navigation topbar, so I set the container to the main content.
To achieve this, i changed TOAST_CONTAINER_HTML and TOAST_WRAPPER_HTML, removing the id and adding a class, because if I create a toast in 2 different containers the ids would be duplicated.
I also created an example, but its graphic might be not ideal.