2017 © Pedro Peláez
 

silverstripe-vendormodule silverstripe-bootboxalert

Easily create a bootbox.js alert programatically using sessions

image

vulcandigital/silverstripe-bootboxalert

Easily create a bootbox.js alert programatically using sessions

  • Friday, February 23, 2018
  • by vulcandigital
  • Repository
  • 2 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 20 % Grown

The README.md

silverstripe-bootboxalert

Easily create a bootbox.js alert programatically using sessions, (*1)

Requirements

  • silverstripe/framework: ^4

Usage

Your controller, (*2)

class PageController extends ContentController {
    private static $extensions = [
        Vulcan\BootboxAlert\Extensions\BootboxAlertExtension::class    
    ];
}

In your global template (Page.ss):, (*3)

$BootboxAlert

Placing this method in the template will allow the script to be added to the page requirements at the very end to ensure bootbox has been required., (*4)

Setting the alert, (*5)

BootboxAlert::setAlert("Example message");

License

BSD-3-Clause - Vulcan Digital Ltd, (*6)

The Versions

23/02 2018

dev-master

9999999-dev

Easily create a bootbox.js alert programatically using sessions

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

23/02 2018

1.0.0

1.0.0.0

Easily create a bootbox.js alert programatically using sessions

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires