2017 © Pedro Peláez
 

symfony-bundle dialog-bundle

Xi Dialog bundle is basic jQuery dialog with ajax features from xi/ajax-bundle

image

xi/dialog-bundle

Xi Dialog bundle is basic jQuery dialog with ajax features from xi/ajax-bundle

  • Friday, March 6, 2015
  • by xi-project
  • Repository
  • 1 Watchers
  • 2 Stars
  • 3,177 Installations
  • CoffeeScript
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Dialog functionality for Symfony2

DialogBundle provides basic jQueryUI dialog with internal ajax functionality. It has dependency on xi-bundle-ajax that provides ajax interface and error handling. Dialogbundle dialogs can gracefully handle backend errors thanks to xi-bundle-ajax., (*1)

Dependencies

xi-bundle-ajax * https://github.com/xi-project/xi-bundle-ajax, (*2)

Installing

composer.json

"require": {
    ...
    "xi/dialog-bundle": "2.3.x-dev"
}

appKernel.php -file

<?php
            new Xi\Bundle\AjaxBundle\XiAjaxBundle(),
            new Xi\Bundle\DialogBundle\XiDialogBundle(),
 ?>

routing.yml -file

XiDialogBundle:
    resource: "@XiDialogBundle/Resources/config/routing.yml"
    prefix:   /

Dialog

Dialog is basic jQueryUI dialog with internal ajax functionality. On opening it displays loading animation, sends ajax request to your backend and displays content in dialog after receiving response. Script will load its content according to your element href attribute., (*3)

All jQueryUI dialog options are available and also there are also following parameters that you can use:, (*4)

refreshDialogOnOpening: Should dialog content be refreshed if you open it again after you have closed it. (boolean) Default: false, (*5)

headerAttribute: what attribute should be used as header for your dialog. (string) Default: 'title', (*6)

The following example is written in Coffeescript., (*7)


new App.Dialog('.dialog', { width: 600, position: [null, 100] headerAttribute: 'header' refreshDialogOnOpening: false }, optionalYourOwnLoaderClass, optionalYourOwnErrorizerClass)

Confirmdialog

Confirmdialog is a simple ajax dialog for accepting changes that user has made. Confirmdialog is rendered by Twig extension that accept two arguments: url to target and (array) options. Options are rendered as attributes of element that launches confirmation dialog. If you want to set header for your dialog in default configuration please set header as one of the options. header also sets elements title if title option is not set. linkText is optional, the value is shown like this: linkText Confirm button copies it's href attribure from the element that launches the dialog, and executes the default behaviour when clicked., (*8)


{{ sba_confirmdialog_render('url_to_what_shoud_be_deleted), {'header': 'header_of_yours', 'linkText': 'text_for_link' 'some_attribute': 'some_attribute_of_yours'}}

Confirm dialog assumes that you have AjaxBundle:AjaxElement up and running. Basically you just need to put following line in your coffeescrpit bootstrap: new App.AjaxElement.Default '.ajax-link'. Check xi-bundle-ajax https://github.com/xi-project/xi-bundle-ajax for more information., (*9)

The Versions

06/03 2015

2.4.x-dev

2.4.9999999.9999999-dev

Xi Dialog bundle is basic jQuery dialog with ajax features from xi/ajax-bundle

  Sources   Download

The Requires

 

by Avatar xi-project

ajax dialog

23/01 2014

v2.4.0

2.4.0.0

Xi Dialog bundle is basic jQuery dialog with ajax features from xi/ajax-bundle

  Sources   Download

The Requires

 

by Avatar xi-project

ajax dialog

23/01 2014

dev-master

9999999-dev

Xi Dialog bundle is basic jQuery dialog with ajax features from xi/ajax-bundle

  Sources   Download

The Requires

 

by Avatar xi-project

ajax dialog

01/07 2013

2.3.x-dev

2.3.9999999.9999999-dev

Xi Dialog bundle is basic jQuery dialog with ajax features from xi/ajax-bundle

  Sources   Download

The Requires

 

by Avatar xi-project

ajax dialog

20/06 2013

2.2.x-dev

2.2.9999999.9999999-dev

Xi Dialog bundle is basic jQuery dialog with ajax features from xi/ajax-bundle

  Sources   Download

The Requires

 

by Avatar xi-project

ajax dialog

30/05 2013

2.1.x-dev

2.1.9999999.9999999-dev

Xi Dialog bundle is basic jQuery dialog with ajax features from xi/ajax-bundle

  Sources   Download

The Requires

 

by Avatar xi-project

ajax dialog

04/09 2012

2.0.x-dev

2.0.9999999.9999999-dev

Xi Dialog bundle is basic jQuery dialog with ajax features from xi/ajax-bundle

  Sources   Download

The Requires

 

by Avatar xi-project

ajax dialog