PHPackages                             xi/dialog-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. xi/dialog-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

xi/dialog-bundle
================

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

v2.4.0(12y ago)23.3k1[1 issues](https://github.com/xi-project/xi-bundle-dialog/issues)[1 PRs](https://github.com/xi-project/xi-bundle-dialog/pulls)CoffeeScript

Since Sep 4Pushed 2y agoCompare

[ Source](https://github.com/xi-project/xi-bundle-dialog)[ Packagist](https://packagist.org/packages/xi/dialog-bundle)[ RSS](/packages/xi-dialog-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (5)Versions (8)Used By (0)

Dialog functionality for Symfony2
=================================

[](#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.

Dependencies
------------

[](#dependencies)

xi-bundle-ajax

-

Installing
----------

[](#installing)

### composer.json

[](#composerjson)

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

### appKernel.php -file

[](#appkernelphp--file)

```

```

### routing.yml -file

[](#routingyml--file)

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

Dialog
------

[](#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.

All jQueryUI dialog options are available and also there are also following parameters that you can use:

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

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

The following example is written in Coffeescript.

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

Confirmdialog
-------------

[](#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.

```
{{ 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  for more information.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~182 days

Recently: every ~161 days

Total

6

Last Release

4135d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/847868?v=4)[Xi](/maintainers/xi-project)[@xi-project](https://github.com/xi-project)

---

Top Contributors

[![HenriVesala](https://avatars.githubusercontent.com/u/965788?v=4)](https://github.com/HenriVesala "HenriVesala (20 commits)")[![joonsp](https://avatars.githubusercontent.com/u/455369?v=4)](https://github.com/joonsp "joonsp (14 commits)")[![stiggg](https://avatars.githubusercontent.com/u/1068889?v=4)](https://github.com/stiggg "stiggg (3 commits)")[![puppe0](https://avatars.githubusercontent.com/u/506220?v=4)](https://github.com/puppe0 "puppe0 (2 commits)")[![janimatti](https://avatars.githubusercontent.com/u/1001560?v=4)](https://github.com/janimatti "janimatti (1 commits)")

---

Tags

ajaxdialog

### Embed Badge

![Health badge](/badges/xi-dialog-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/xi-dialog-bundle/health.svg)](https://phpackages.com/packages/xi-dialog-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M381](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
