Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-drag-and-drop-grid

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-drag-and-drop-grid

A simple component for using the @angular/cdk drag and drop sort functions with a mixed orientation grid list

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source
  • English

Welcome to the Angular Grid Drag and Drop plug in

This repository is a fork of the awesome @sam-1994/ngx-drag-and-drop-grid.

This drag and drop plug in takes the same features as the previous plug in, but updated with Angular 10+ support.

Table of contents

Installing

To install from the command line:

npm install XXXXXXXXXX

Usage

1. Import the XXXXXXXX:

Finally, you can use ngx-translate in your Angular project. You have to import XXXXXXXX in the NgModule.

import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {SamDragAndDropGridModule} from 'XXXXXXXXXXXXX';

@NgModule({
    imports: [
        BrowserModule,
        XXXXXXXXXXXXXX
    ],
    bootstrap: [AppComponent]
})
export class AppModule { }
2. Use the component:
import {Component, OnInit} from '@angular/core';
import {XXXXXXXXXXXXXX} from 'drag-and-drop-grid-module';

@Component({
  selector: 'app-drag-and-drop-grid-example',
  templateUrl: './drag-and-drop-grid.component.html',
  styleUrls: ['./drag-and-drop-grid.component.sass']
})
export class XXXXXXXXXXXXXXXXXX implements OnInit {

  public list = [1, 2, 3, 4, 5, 6, 7, 8, 9];

  ngOnInit() {
  }
}
<XXXXXXXXXXXX [items]="list" [columnNumber]="5">
  <div *XXXXXXXXXXXXX="let listItem; let i=index">
    Item {{listItem}}; Index {{i}}
  </div>
</XXXXXXXXXX>

API

You can use the XXXXXXXXXXX directive to inject your custom template as grid items.

Keywords

FAQs

Package last updated on 08 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc