Skip to content

Commit 213fbb2

Browse files
committed
publish 0.2.0
1 parent e597f9e commit 213fbb2

File tree

4 files changed

+17
-21
lines changed

4 files changed

+17
-21
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng2-gridstack",
3-
"version": "0.1.15",
3+
"version": "0.2.0",
44
"description": "A gridstack component for Angular2",
55
"main": "index.js",
66
"scripts": {

src/gridstack.component.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/gridstack.component.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/gridstack.component.ts

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,24 @@
22
declare var $: any; // JQuery
33
declare var _: any; // lodash
44

5-
require('./gridstack.component.html')
6-
75
@Component({
86
selector: 'gridStack',
97
template: `<div>
10-
< button * ngIf="addFunction"(click)="addItem()" class='{{buttonClass}}' > Ajouter une carte< /button>
11-
< button * ngIf="saveFunction"(click)="savePanel()" class='btn-gridstack-save {{buttonClass}}' > Enregistrer le panneau< /button>
12-
< button * ngIf="deleteFunction"(click)="deletePanel()" class='btn-gridstack-del {{buttonClass}}' > Supprimer le panneau< /button>
13-
< span class="card-management" hidden>
14-
<button *ngIf="deleteCardFunc"(click)="deleteCard()" class='btn-gridstack-del-card {{buttonClass}}' > Supprimer la carte< /button>
15-
< /span>
16-
< /div>
17-
< br />
18-
<div class="grid-stack" [attr.data - gs - width] = "w"[attr.data - gs - animate] = "animate" >
8+
<button *ngIf="addFunction" (click)="addItem()" class='{{buttonClass}}'> Ajouter une carte</button>
9+
<button *ngIf="saveFunction" (click)="savePanel()" class='btn-gridstack-save {{buttonClass}}'> Enregistrer le panneau</button>
10+
<button *ngIf="deleteFunction" (click)="deletePanel()" class='btn-gridstack-del {{buttonClass}}'> Supprimer le panneau</button>
11+
<span class="card-management" hidden>
12+
<button *ngIf="deleteCardFunc" (click)="deleteCard()" class='btn-gridstack-del-card {{buttonClass}}'> Supprimer la carte</button>
13+
</span>
14+
</div>
15+
<br/>
16+
<div class="grid-stack" [attr.data-gs-width]="w" [attr.data-gs-animate]="animate">
1917
<ng-content > </ng-content>
20-
< div gridStackItem
21-
spellcheck= "false"
22-
* ngFor="let item of items"
23-
[x] = "item.X"[y] = "item.Y"[h] = "item.Height"[w] = "item.Width"[customid] = "item.CardId"[content] = "item.Content"
24-
(dblclick) = "onItemClick()" >
25-
</div>
18+
<div gridStackItem
19+
spellcheck="false"
20+
*ngFor="let item of items"
21+
[x]="item.X" [y]="item.Y" [h]="item.Height" [w]="item.Width" [customid]="item.CardId" [content]="item.Content"
22+
(dblclick)="onItemClick()">
2623
</div>`
2724
})
2825

0 commit comments

Comments
 (0)