{"id":8552,"date":"2024-01-14T17:51:00","date_gmt":"2024-01-14T17:51:00","guid":{"rendered":"https:\/\/codehim.com\/?p=8552"},"modified":"2024-01-22T15:53:55","modified_gmt":"2024-01-22T10:53:55","slug":"bootstrap-5-toast-dynamic-message","status":"publish","type":"post","link":"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/","title":{"rendered":"Bootstrap 5 Toast Dynamic Message"},"content":{"rendered":"<p>This code implements Bootstrap 5 Toast Dynamic Message functionality. It allows you to create customizable toast messages on your web page. You can specify the message content, type (e.g., success, warning), and position (e.g., top-right, bottom-left). The &#8220;Create a Toast&#8221; button triggers the display of these dynamic toast messages, providing informative feedback or <a href=\"https:\/\/codehim.com\/vanilla-javascript\/simple-toast-notification-in-javascript\/\" target=\"_blank\" rel=\"noopener\">alerts to users<\/a>.<\/p>\n<h2>How to Create Bootstrap 5 Toast Dynamic Message<\/h2>\n<p>1. First of all, load the Bootstrap CSS by adding the following CDN link to the head tag of your website.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;link rel='stylesheet' href='https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/twitter-bootstrap\/5.0.2\/css\/bootstrap.min.css'&gt;<\/pre>\n<p>2. Inside the <code>&lt;body&gt;<\/code> of your HTML, create the elements for your toast messages. This includes an input field for the message content, dropdowns for selecting the type and position of the toast, and a button to trigger the toast creation.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"container\"&gt;\r\n        &lt;div class=\"row py-5 text-center\"&gt;\r\n            &lt;div class=\"col-12 input-group\"&gt;\r\n                &lt;input type=\"text\" class=\"form-control\" name=\"content\" placeholder=\"Toast content\"&gt;\r\n                &lt;select class=\"form-select\" name=\"type\"&gt;\r\n                    &lt;option value=\"\" selected&gt;Toast type&lt;\/option&gt;\r\n                    &lt;option value=\"primary\"&gt;Primary&lt;\/option&gt;\r\n                    &lt;option value=\"secondary\"&gt;Secondary&lt;\/option&gt;\r\n                    &lt;option value=\"success\"&gt;Success&lt;\/option&gt;\r\n                    &lt;option value=\"danger\"&gt;Danger&lt;\/option&gt;\r\n                    &lt;option value=\"warning\"&gt;Warning&lt;\/option&gt;\r\n                    &lt;option value=\"info\"&gt;Info&lt;\/option&gt;\r\n                    &lt;option value=\"light\"&gt;Light&lt;\/option&gt;\r\n                    &lt;option value=\"dark\"&gt;Dark&lt;\/option&gt;\r\n                &lt;\/select&gt;\r\n                &lt;select class=\"form-select\" name=\"position\"&gt;\r\n                    &lt;option value=\"\" selected&gt;Toast position&lt;\/option&gt;\r\n                    &lt;option value=\"top-0,end-0\"&gt;Top Right&lt;\/option&gt;\r\n                    &lt;option value=\"bottom-0,end-0\"&gt;Bottom Right&lt;\/option&gt;\r\n                    &lt;option value=\"bottom-0,start-0\"&gt;Bottom Left&lt;\/option&gt;\r\n                    &lt;option value=\"top-0,start-0\"&gt;Top Left&lt;\/option&gt;\r\n                &lt;\/select&gt;\r\n                &lt;button id=\"create-toast\" class=\"btn btn-primary\"&gt;Create a Toast&lt;\/button&gt;\r\n            &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n    &lt;div aria-live=\"polite\" aria-atomic=\"true\"&gt;\r\n        &lt;div class=\"toast-container position-absolute p-3\" id=\"toast-container\" style=\"z-index:9;\"&gt;&lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n<\/pre>\n<p>3. You can customize the appearance of the toast messages generated by JS code using CSS: (Optional)<\/p>\n<pre class=\"prettyprint linenums lang-css\">body{\r\n  background-color: #e5e5f7;\r\n  opacity: 0.8;\r\n}\r\n\/* Change Toast Background Color *\/\r\n.bg-success {\r\nbackground-color: #YourColorHere;\r\n}\r\n\r\n\/* Modify Toast Text Color *\/\r\n.text-success {\r\ncolor: #YourColorHere;\r\n}\r\n\r\n\/* Adjust Toast Border *\/\r\n.border-success {\r\nborder-color: #YourColorHere;\r\n}\r\n\r\n\/* Change Toast Positioning (e.g., top-left) *\/\r\n.toast-container {\r\ntop: 0;\r\nleft: 0;\r\n}\r\n\r\n\/* Customize Toast Close Button (e.g., change color) *\/\r\n.btn-close {\r\ncolor: #YourColorHere;\r\n}\r\n\r\n\/* Change Toast Border Radius (e.g., make them rounded) *\/\r\n.toast {\r\nborder-radius: 10px;\r\n}\r\n<\/pre>\n<p>4. Now, load the <a href=\"https:\/\/jquery.com\" target=\"_blank\" rel=\"noopener\">jQuery<\/a> and Bootstrap JS by adding the following scripts at the end of the HTML code:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;script src='https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jquery\/3.6.0\/jquery.min.js'&gt;&lt;\/script&gt;\r\n&lt;script src='https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/twitter-bootstrap\/5.0.2\/js\/bootstrap.min.js'&gt;&lt;\/script&gt;\r\n<\/pre>\n<p>5. Finally, add the following JavaScript code between &lt;script&gt; tag just before closing the body element. This code handles the creation and display of toast messages when the &#8220;Create a Toast&#8221; button is clicked.<\/p>\n<pre class=\"prettyprint linenums lang-js\">document.querySelector('#create-toast').addEventListener('click', function() {\r\n    document.querySelector('#toast-container').classList.remove('top-0','end-0','bottom-0','start-0');\r\n\r\n    var content = (document.querySelector('input[name=content]').value != '') \r\n        ? document.querySelector('input[name=content]').value \r\n        : 'Lorem ipsum dolor sit amet';\r\n\r\n    var type = (document.querySelector('select[name=type]').value != '') \r\n        ? document.querySelector('select[name=type]').value \r\n        : 'success';\r\n\r\n    var position = (document.querySelector('select[name=position]').value != '') \r\n        ? document.querySelector('select[name=position]').value.split(',')\r\n        : ['top-0','end-0'];\r\n\r\n    showToast(content, type, position);\r\n});\r\n\r\nfunction showToast(content, type, position) {\r\n    var delay = 15000;\r\n    position.forEach((el) =&gt; {\r\n        document.querySelector(\"#toast-container\").classList.add(el);\r\n    });\r\n    var html = `&lt;div class=\"toast align-items-center text-white bg-${type} border-0\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\"&gt;&lt;div class=\"d-flex\"&gt;&lt;div class=\"toast-body h6 p-3 m-0\"&gt;${content}&lt;\/div&gt;&lt;button type=\"button\" class=\"btn-close btn-close-white me-2 m-auto\" data-bs-dismiss=\"toast\" aria-label=\"Close\"&gt;&lt;\/button&gt;&lt;\/div&gt;&lt;\/div&gt;`;\r\n    var toast = htmlToElement(html);\r\n    var toastContainer = document.querySelector(\"#toast-container\");\r\n    toastContainer.appendChild(toast);\r\n    var toast = new bootstrap.Toast(toast, {delay:delay, animation:true});\r\n    toast.show();\r\n    setTimeout(() =&gt; toast.remove(), delay + 15000);\r\n}\r\n\r\nfunction htmlToElement(html) {\r\n    var template = document.createElement('template');\r\n    html = html.trim();\r\n    template.innerHTML = html;\r\n    return template.content.firstChild;\r\n}<\/pre>\n<p>Inside the <code>showToast<\/code> function, you can customize the appearance and behavior of your toast messages. You can change the delay, styling, and content to suit your needs.<\/p>\n<p>That&#8217;s all! hopefully, you have successfully created Bootstrap 5 Toast Dynamic Message. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This code implements Bootstrap 5 Toast Dynamic Message functionality. It allows you to create customizable toast messages on your web&#8230;<\/p>\n","protected":false},"author":1,"featured_media":8580,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[123],"tags":[],"class_list":["post-8552","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bootstrap"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Bootstrap 5 Toast Dynamic Message &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Bootstrap 5 Toast Dynamic Message. You can view demo and download the source code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bootstrap 5 Toast Dynamic Message &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Bootstrap 5 Toast Dynamic Message. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-14T17:51:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T10:53:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Bootstrap-5-Toast-Dynamic-Message.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Bootstrap 5 Toast Dynamic Message\",\"datePublished\":\"2024-01-14T17:51:00+00:00\",\"dateModified\":\"2024-01-22T10:53:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/\"},\"wordCount\":247,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Bootstrap-5-Toast-Dynamic-Message.png\",\"articleSection\":[\"Bootstrap\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/\",\"url\":\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/\",\"name\":\"Bootstrap 5 Toast Dynamic Message &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Bootstrap-5-Toast-Dynamic-Message.png\",\"datePublished\":\"2024-01-14T17:51:00+00:00\",\"dateModified\":\"2024-01-22T10:53:55+00:00\",\"description\":\"Here is a free code snippet to create a Bootstrap 5 Toast Dynamic Message. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Bootstrap-5-Toast-Dynamic-Message.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Bootstrap-5-Toast-Dynamic-Message.png\",\"width\":1280,\"height\":960,\"caption\":\"Bootstrap 5 Toast Dynamic Message\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bootstrap\",\"item\":\"https:\/\/codehim.com\/category\/bootstrap\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Bootstrap 5 Toast Dynamic Message\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bootstrap 5 Toast Dynamic Message &#8212; CodeHim","description":"Here is a free code snippet to create a Bootstrap 5 Toast Dynamic Message. You can view demo and download the source code.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/","og_locale":"en_US","og_type":"article","og_title":"Bootstrap 5 Toast Dynamic Message &#8212; CodeHim","og_description":"Here is a free code snippet to create a Bootstrap 5 Toast Dynamic Message. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-14T17:51:00+00:00","article_modified_time":"2024-01-22T10:53:55+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Bootstrap-5-Toast-Dynamic-Message.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Bootstrap 5 Toast Dynamic Message","datePublished":"2024-01-14T17:51:00+00:00","dateModified":"2024-01-22T10:53:55+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/"},"wordCount":247,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Bootstrap-5-Toast-Dynamic-Message.png","articleSection":["Bootstrap"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/","url":"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/","name":"Bootstrap 5 Toast Dynamic Message &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Bootstrap-5-Toast-Dynamic-Message.png","datePublished":"2024-01-14T17:51:00+00:00","dateModified":"2024-01-22T10:53:55+00:00","description":"Here is a free code snippet to create a Bootstrap 5 Toast Dynamic Message. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Bootstrap-5-Toast-Dynamic-Message.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Bootstrap-5-Toast-Dynamic-Message.png","width":1280,"height":960,"caption":"Bootstrap 5 Toast Dynamic Message"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/bootstrap\/bootstrap-5-toast-dynamic-message\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Bootstrap","item":"https:\/\/codehim.com\/category\/bootstrap\/"},{"@type":"ListItem","position":3,"name":"Bootstrap 5 Toast Dynamic Message"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":3861,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/8552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=8552"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/8552\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/8580"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=8552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=8552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=8552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}