Category: "Dojo"

Returning custom headers with FOSRestBundle

The Content-Range header supports a (dgrid) OnDemandGrid [image:30] PHP use FOS\RestBundle\View\View as FOSRestView; ... $view = FOSRestView::create(); $view->setData($data);… more »

Revised Dijit/Tree Menu for Symfony

This is the final implementation for the tree menu I'm using for a Symfony application. The first approach wrote the JSON for the menu store into the template. This was a little awkward and as the application grew, the amount of content increased. Next,… more »

KnpMenu - JSON Renderer to support Dojo Dijit/Tree - Ajax

This is a modified version of the earlier post which created a static JSON representation of a menu. What makes it different is that the earlier version rendered the items from the MenuBuilder into a static JSON object that was embedded in a page with… more »

KnpMenu - JSON Renderer to support Dojo Dijit/Tree

I wrote some code that parsed through the default KNP menu HTML and created a Dijit menu. It worked, but it was slow and awkward. I couldn't find an easy way to get the KNP menu in the JSON form that would work well with Dijit/Tree, so I wrote my own.… more »

Symfony 3 - EntityType / Dojo - Select Integration

If you use Dojo to provide a polished interface with a Symfony 3 application programmatically, you may use a data- attribute on a select tag to pass the options from Symfony 3 to Dojo. The entity in this case is phone number type. This is a table with… more »