Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fumito-ito/angular-draggable
angularjs plugin for draggable (and resizable) directive.
https://github.com/fumito-ito/angular-draggable
Last synced: 29 days ago
JSON representation
angularjs plugin for draggable (and resizable) directive.
- Host: GitHub
- URL: https://github.com/fumito-ito/angular-draggable
- Owner: fumito-ito
- Created: 2014-08-11T11:48:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-18T15:38:43.000Z (over 9 years ago)
- Last Synced: 2024-11-10T07:45:10.191Z (about 2 months ago)
- Language: JavaScript
- Size: 243 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Angular Draggable
=====Draggable and Resizable element as [AngularJS](https://angularjs.org/) directive.
## Example
- [jsdo.it](http://jsdo.it/fumito_ito/fhYt)
- [Plunker](http://plnkr.co/edit/7sADZkqVI6LIUIixTwns?p=preview)## Usage
setup in HTML
angular.module('sample', ['angular-draggable', function () {}]);
use with div
Draggable Content
or element.
Draggable Content
You can use some options.
## Options
#### lockx
*boolean*
If true, element only move with y-axis.
#### locky
*boolean*
If true, element only move with x-axis.
#### resizex
*boolean*
If true, element can be resized with x-axis.
#### resizey
*boolean*
If true, element can be resized with y-axis.
#### left
*number*
default position of left. (This library ignore css properties `top` and `left`)
#### top
*number*
default position of top. (This library ignore css properties `top` and `left`)
## Install
*bower.json*
"dependencies": { "angular-draggable": "[email protected]:fumitoito/angular-draggable.git" }
and run install script
$ bower install
## License
The MIT License (MIT)
Copyright (c) 2014 [fumitoito](https://github.com/fumitoito)Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.