2017 © Pedro Peláez
 

library sortable-collection-type-bundle

Symfony sortable collection form type

image

fsv/sortable-collection-type-bundle

Symfony sortable collection form type

  • Tuesday, February 14, 2017
  • by sergeyfedotov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 641 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 11 % Grown

The README.md

FsvSortableCollectionTypeBundle

Build Status, (*1)

The bundle is used to sort the FormView objects in the CollectionType. Sorting is based on the value of the specified property. The property is determined by the property path in the format of the Symfony PropertyAccess component., (*2)

Installation

$ composer require fsv/sortable-collection-type-bundle
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Fsv\SortableCollectionTypeBundle\FsvSortableCollectionTypeBundle(),
    );
}

Configuration

The bundle does not have any configurable parameters., (*3)

Usage

// AppBundle\Form\Type\ExampleFormType.php

public function buildForm(FormBuilderInterface $builder, array $options)
{
    $builder->add('collection', CollectionType::class, [
        // ...
        'sort_by' => [
            'property' => 'asc'
        ]
    ]);
    // ...
}

The Versions

14/02 2017

dev-master

9999999-dev

Symfony sortable collection form type

  Sources   Download

MIT

The Requires

 

The Development Requires

collection form symfony2 symfony3 symfony type sortable

14/02 2017

0.1.1

0.1.1.0

Symfony sortable collection form type

  Sources   Download

MIT

The Requires

 

The Development Requires

collection form symfony2 symfony3 symfony type sortable

24/03 2016

0.1.0

0.1.0.0

Symfony sortable collection form type

  Sources   Download

MIT

The Requires

 

The Development Requires

collection form symfony2 symfony3 symfony type sortable