All Projects → ApolloSSC → ng2-gridstack

ApolloSSC / ng2-gridstack

Licence: other
A gridstack component for Angular2+

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ng2-gridstack

Ng Drag Drop
Drag & Drop for Angular - based on HTML5 with no external dependencies. 🎉
Stars: ✭ 233 (+1841.67%)
Mutual labels:  angular2, angular4, draggable
Ng2 Dnd
Angular 2 Drag-and-Drop without dependencies
Stars: ✭ 861 (+7075%)
Mutual labels:  drag-and-drop, angular2, angular4
Angular File Uploader
Angular file uploader is an Angular 2/4/5/6/7/8/9/10 + file uploader module with Real-Time Progress Bar, Responsive design, Angular Universal Compatibility, localization and multiple themes which includes Drag and Drop and much more.
Stars: ✭ 92 (+666.67%)
Mutual labels:  drag-and-drop, angular2, angular4
Ngx Smooth Dnd
angular wrapper for smooth-dnd
Stars: ✭ 152 (+1166.67%)
Mutual labels:  drag-and-drop, draggable
React Kanban Dnd
📋 Open source kanban board built with React
Stars: ✭ 121 (+908.33%)
Mutual labels:  drag-and-drop, draggable
Flutter remote control
flutter remote control
Stars: ✭ 124 (+933.33%)
Mutual labels:  drag-and-drop, draggable
Flowy Vue
Vue Flowy makes creating flowchart or hierarchy chart functionality an easy task. Build automation software, mind mapping tools, organisation charts, or simple programming platforms in minutes by implementing the library into your project.
Stars: ✭ 107 (+791.67%)
Mutual labels:  drag-and-drop, draggable
Ng2 Image Upload
Angular 2 component for image uploading
Stars: ✭ 230 (+1816.67%)
Mutual labels:  drag-and-drop, angular2
Angular Grid Layout
Responsive grid with draggable and resizable items for Angular applications.
Stars: ✭ 163 (+1258.33%)
Mutual labels:  drag-and-drop, draggable
ngx-redux-core
The modern redux integration for Angular 6+
Stars: ✭ 32 (+166.67%)
Mutual labels:  angular2, angular4
angular2-signature-pad
Signature pad component for Angular 2.x and above.
Stars: ✭ 17 (+41.67%)
Mutual labels:  angular2, angular4
nativescript-ng-shadow
Angular directive to apply shadows to native elements according to the elevation level guidelines of material design specification
Stars: ✭ 54 (+350%)
Mutual labels:  angular2, angular4
Svgdragtree
一个可以通过拖放 SVG 图标,来生成拥有树状结构的视图与数据的前端组件。 SDT example:
Stars: ✭ 113 (+841.67%)
Mutual labels:  drag-and-drop, draggable
React Dragline
🐼Guide lines and magnetic adsorption to better align draggable elements in React.
Stars: ✭ 134 (+1016.67%)
Mutual labels:  drag-and-drop, draggable
React Smooth Dnd
react wrapper components for smooth-dnd
Stars: ✭ 1,560 (+12900%)
Mutual labels:  drag-and-drop, draggable
React Dragtastic
A simple drag and drop library for React which uses the more stable mouseDown/mouseUp event pattern instead of the problematic HTML5 drag and drop API
Stars: ✭ 181 (+1408.33%)
Mutual labels:  drag-and-drop, draggable
FlutterBoardView
BoardView written for the flutter framework.
Stars: ✭ 82 (+583.33%)
Mutual labels:  drag-and-drop, draggable
react-native-dnd-board
A drag and drop Kanban board for React Native.
Stars: ✭ 41 (+241.67%)
Mutual labels:  drag-and-drop, draggable
AuthGuard
Example repo for guarding routes post
Stars: ✭ 42 (+250%)
Mutual labels:  angular2, angular4
Muuri
Infinite responsive, sortable, filterable and draggable layouts
Stars: ✭ 9,797 (+81541.67%)
Mutual labels:  drag-and-drop, draggable

ng2-gridstack

A gridstack component for Angular2+. Based on gridstack.js 0.3.0.

Usage

Requirements

Install

NPM version

$ npm install ng2-gridstack --save

Basic Usage

Import the module...

import { GridStackModule } from 'ng2-gridstack'
(...)

@NgModule({
    imports: [
        (...)
        GridStackModule,
    ],
    declarations: [
        GridStackComponent,
        GridStackItemDirective,
		(...)
    ],
    providers: [
		(...)
    ]
})
export class YourModule { }

and load gridstack's css. Example using the global css file from AngularCLI

/* You can add global styles to this file, and also import other style files */
@import "~gridstack/dist/gridstack.min.css";

ng2-gridstack can be used in two ways, either by letting the component add the items for you, or by building your own items.

First mode

<gridStack w="12" animate="true" 
	buttonClass="btn btn-default" 
	allowEditing="true" 
	[options]="gridstackOptions"
	[items]="panel.Cards" 
	(addFunction)="addCard()" 
	(saveFunction)="save($event)" 
	(deleteFunction)="deletePanel()" 
	(deleteCardFunc)="deleteCard($event)"
	[addButtonText]="'Add card'"
	[saveButtonText]="'Save panel'"
	[deleteButtonText]="'Delete panel'"
	[deleteCardButtonText]="'Delete card'">
</gridStack>

Second mode

<gridStack w="12" animate="true">
	<div gridStackItem
		[x]="0" [y]="0" [h]="3" [w]="3" [customid]="10">
		<h1>Hello</h1>
	</div>
</gridStack>

Inputs/Outputs

  • w : number of items that can fit in a row.

  • animate : grid animation on/off.

  • options (optional) : an associative array of gridstack options.

  • allowEditing : allow the edition of items on double click (false by default).

  • items (optional) : an array of objects that have the following properties.

    • x
    • y
    • width
    • height
    • customid
    • content (optional)
  • addButtonText (optional) : If present, will display a button that triggers addFunction.

  • saveButtonText (optional) : If present, will display a button that triggers saveFunction.

  • deleteButtonText (optional) : If present, will display a button that triggers deleteFunction.

  • deleteCardButtonText (optional) : If present, will display a button that triggers deleteCardFunc.

  • addFunction (optional) : this function should add a new item to the array passed in the items parameter.

  • saveFunction (optional) : calls the specified function with the updated array of items as parameter, so that you can save it.

  • deleteFunction (optional) : function to call when deleting the whole panel.

  • deleteCardFunc (optional) : function to call when a card is deleted (its customid is passed as a parameter).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].