1.2.8 • Published 7 years ago
d-d-material-style v1.2.8
d-d-material-style
drag and drop with material style
Demo
https://angular-jd6bgy.stackblitz.io/ or stackblitz editor
Install
npm i d-d-material-style --save
Setup
import { DDMaterialStyleModule } from 'd-d-material-style';
@NgModule({
...
imports: [ ..., DDMaterialStyleModule ],
...
})
Use Directive
<div ddMatStyle>Dragable div</div>
<div class="limit-box" #container>
<div [ddMatStyle]='container'>Dragable div inner div.limit-box</div>
</div>
Directive config
@Input() config: {direction?: 'x' | 'y' | 'grid', matClick?: boolean, shadow?: boolean, elem?: any, swipe?: string}
@Output() dChange: EventEmitter<IEvent>
@Output() dDrop: EventEmitter<IEvent>
IEvent = {
type: 'change' | 'drop';
point: {...};
elem: {...} | any;
collection: {...}[] | any;
}
See at example.
Use Component with Directive
<div class="vertical-box" #container>
<d-d-material-style [config]="{direction: 'y', shadow: true}">
<div class='item {{ el.style }}' *ngFor="let el of miniCollect" [ddMatStyle]="container">
<span>{{ el.data }}</span>
</div>
</d-d-material-style>
</div>
Component config
@Input() config: {direction?: 'x' | 'y' | 'grid', matClick?: boolean, shadow?: boolean, collection?: any[], swipe?: string}
@Output() dChange: EventEmitter<IEvent>
@Output() dDrop: EventEmitter<IEvent>
See at example.
1.2.8
7 years ago
1.2.7
7 years ago
1.2.6
7 years ago
1.2.5
7 years ago
1.2.4
7 years ago
1.2.3
7 years ago
1.2.2
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.29
7 years ago
1.1.28
7 years ago
1.1.27
7 years ago
1.1.26
7 years ago
1.1.25
7 years ago
1.1.24
7 years ago
1.1.23
7 years ago
1.1.22
7 years ago
1.1.21
7 years ago
1.1.20
7 years ago
1.1.19
7 years ago
1.1.18
7 years ago
1.1.17
7 years ago
1.1.16
7 years ago
1.1.15
7 years ago
1.1.14
7 years ago
1.1.13
7 years ago
1.1.12
7 years ago
1.1.11
7 years ago
1.1.10
7 years ago
1.1.9
7 years ago
1.1.8
7 years ago
1.1.7
7 years ago
1.1.6
7 years ago
1.1.5
7 years ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.12
7 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago