JSPM

b-dialogs

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q9152F
  • License MIT

A bootstrap plugin to generate dialogs easily

Package Exports

  • b-dialogs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (b-dialogs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

b-dialogs.js

bootstrap plugin to generate dialogs easily

Get Started

you just need to add as a dependency in your web page, like this:

<script src="https://cdn.jsdelivr.net/gh/Vusumzi123/b-dialogs.js@master/dist/b-dialog.min.js"></script>
  • just add it after bootstrap and jquery

to use just call the object with the dislog method like this:

$notifications.dialog()

it will show the default dialog template

##Basic Usage to customize add an object to the parameter of the dialog function with the properties: tittle and body they are both strings and can have html sintax like this:

  $notification.dialog({
    tittle: "A title:",
    body: "<h1>This is an HTML body example </h1>"
  });

that will generate a dialog with the text yo inserted into the onject's parameters

To add functionality to the buttons you jus need to use the then() and catch() methods, both receive a function as parameter.

Advanced usage

//TODO