Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issues #182 #292 and added new feature 'locking' #303

Open
wants to merge 32 commits into
base: master
Choose a base branch
from

Conversation

chinchiheather
Copy link

I have done a few things here:

I implemented a fix for issue #182 so you can set boolean draggable/resizable properties (default true) per widget, so you can prevent individual widgets from being resized or dragged.

I found a solution to the issue I raised #292.

I also something else that I found I wanted - so I added a new config option called locking which works in the same way as pushing, floating, swapping. If locking is set to true it means that items will not get pushed out of the way to make room for new items, but that the new item will have to find the next available space.

I've never made a pull request before on github so hopefully I didn't do anything wrong, and I think my version number has gone a bit too high, but I needed that so bower knew there was a new version to download. Anyway... hope it's okay, thanks!

chinchiheather and others added 28 commits June 18, 2015 08:49
… item is positioned only where it can be fitted in. Code is pretty rough, needs tidying up, etc.
…st space after portlet. Don't dispatch gridster-item-removed event on destroy
… item is positioned only where it can be fitted in. Code is pretty rough, needs tidying up, etc.
…st space after portlet. Don't dispatch gridster-item-removed event on destroy
Conflicts:
	dist/angular-gridster.min.css
	dist/angular-gridster.min.js
	src/angular-gridster.js
@maximou4391
Copy link

Hi @chinchiheather,
I didn't manage to disable the resize property per items, what's exactly the syntax?
Thanks a lot.
Bye

@chinchiheather
Copy link
Author

Hi @maximou4391 you can set boolean properties "resizable" and "draggable" on each gridster item you pass to the gridster

Something like:

<div gridster>
    <ul>
        <li gridster-item="{ row: 0, col: 5, draggable: false, resizable: false }">
            <div>gridster item content</div>
         </li>
    </ul>
</div>

@PedroF20
Copy link

Hi, @chinchiheather, the draggable=false does not seem to work for me. Any workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants