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

Allow fixed elements in grid #22

Closed
helldog136 opened this issue Apr 5, 2017 · 4 comments
Closed

Allow fixed elements in grid #22

helldog136 opened this issue Apr 5, 2017 · 4 comments

Comments

@helldog136
Copy link

There should be a parameter (fixed for example) in grid-item that makes it not draggable by the user while the others are still draggable.

for example you could write
<grid-item [x]="x" ... [h]="h" [fixed]="true">

Sorry it's more a suggestion than an issue :/

@swiety85
Copy link
Owner

swiety85 commented Apr 5, 2017

Good suggestion. 👍 There is already a plan to make this functionality but it's called "pin". :-)
It's good to have it on issue list.

@swiety85 swiety85 added this to Open in Angular2gridster Apr 15, 2017
@swiety85 swiety85 moved this from Open to In progress in Angular2gridster May 1, 2017
@swiety85 swiety85 self-assigned this May 18, 2017
@swiety85 swiety85 moved this from In progress to Test in Angular2gridster May 20, 2017
swiety85 added a commit that referenced this issue May 25, 2017
@swiety85 swiety85 moved this from Test to Ready to merge in Angular2gridster May 25, 2017
@swiety85
Copy link
Owner

swiety85 commented Jul 6, 2017

Done in v.0.6.0

@swiety85 swiety85 closed this as completed Jul 6, 2017
@swiety85 swiety85 moved this from Ready to merge to Closed in Angular2gridster Jul 6, 2017
@Pennywise83
Copy link

Hi,
I can't find a way to use this feature since it is not documented. Could you provide a simple example please?

@swiety85
Copy link
Owner

swiety85 commented Aug 3, 2017

Hi,
for disabling dragging of single item you need to use [dragAndDrop] attribute, that expects boolean value. If value is false item will not be possible to move. Example:

<gridster ...>
        <gridster-item *ngFor="..." [dragAndDrop]="widget.dragAndDrop">
           ...
       </gridster-item>
</gridster>

I will update documentation soon. Thanks for info!

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

No branches or pull requests

3 participants