Comments (3)
Noticed that too, when the start position is not 0, you get an odd behavior when sorting. (Elements move where they shouldn't)
from pixsortablebehaviorbundle.
I've noticed another strange behavior of this bundle: it uses counter that starts from 0, while SonataAdminBundle's javascript, which is used by 'sonata_type_collection' (admin that's embedded inside another admin) starts counting from 1. In the end it makes collisions: items are ordered like 1,2,3 - so the top position is never reached.
I've made a workaround for this in my current project, but I think it would be handy to provide a generic solution: make a config parameter like 'counter_start' which will be an integer and will indicate where to start counting from.
What do you think about this extension?
Can you please explain what you exactly did to make it work?
from pixsortablebehaviorbundle.
Sonata admin officially migrated to runroom-packages/sortable-behavior-bundle
, try it instead.
https://symfony.com/bundles/SonataAdminBundle/current/cookbook/recipe_sortable_listing.html
from pixsortablebehaviorbundle.
Related Issues (20)
- Pix\SortableBehaviorBundle\Resources/config\services.yml" does not contain valid YAML. HOT 5
- Wrong position when remove item HOT 1
- Sonata Admin CUSTOM ADMIN ACTION problem HOT 1
- Warning: get_class() expects parameter 1 to be object, string given HOT 3
- Discriminator with Class table inheritance not working correctly for getLastPosition HOT 5
- Enable Drag'n drop feature HOT 4
- Release visibility HOT 1
- Why method getPosition() is required? HOT 4
- Position field not found on MappedSuperclass
- totally incorrect reordering HOT 11
- Breaks correct definition of the last position if the entity inherits an abstract class.
- how to sort multiple Admin with same entity
- BUG: the init.js make item text cannot be copied
- Wrong sortableGroups entity keys classname format HOT 1
- Deprecations in configuration classes HOT 1
- Extending SortableAdminController, problem with constructor HOT 2
- Service "pix_sortable_behavior.position.orm" not found HOT 3
- Error in the new symfony/config HOT 1
- Too few arguments to function Symfony\Component\Config\Definition\Builder\TreeBuilder::__construct() HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pixsortablebehaviorbundle.