All Projects → Reklino → Angular Resizable

Reklino / Angular Resizable

A lightweight directive for creating resizable containers.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Angular Resizable

Re Resizable
📏 A resizable component for React.
Stars: ✭ 1,302 (+310.73%)
Mutual labels:  resize, resizable
Vue Draggable Resizable Gorkys
Vue 用于可调整大小和可拖动元素的组件并支持冲突检测、元素吸附、元素对齐、辅助线
Stars: ✭ 521 (+64.35%)
Mutual labels:  resize, resizable
Vue3 Draggable Resizable
[Vue3 组件] 用于拖拽调整位置和大小的的组件,同时支持冲突检测,元素吸附对齐,实时参考线。
Stars: ✭ 159 (-49.84%)
Mutual labels:  resize, resizable
Vue Drag Resize
Vue Component for resize and drag elements
Stars: ✭ 1,007 (+217.67%)
Mutual labels:  resize, resizable
React Rnd
🖱 A resizable and draggable component for React.
Stars: ✭ 2,560 (+707.57%)
Mutual labels:  resize, resizable
Angular2 Draggable
Angular directive (for version >= 2.x ) that makes the DOM element draggable and resizable
Stars: ✭ 270 (-14.83%)
Mutual labels:  resizable
Bild
Image processing algorithms in pure Go
Stars: ✭ 3,431 (+982.33%)
Mutual labels:  resize
Ui.bootstrap.contextmenu
AngularJS Bootstrap UI Context Menu
Stars: ✭ 259 (-18.3%)
Mutual labels:  angularjs
angularjs-springboot-bookstore
Book store CMS done with Angularjs and Spring Boot
Stars: ✭ 41 (-87.07%)
Mutual labels:  angularjs
Saturday Night Works
Takip ettiğim kaynaklardaki örneklere ait çalışmalar yer alır.
Stars: ✭ 312 (-1.58%)
Mutual labels:  angularjs
Angularjs Springmvc Sample Boot
A RESTful sample using Spring Boot, Spring MVC, Spring Data and Angular/Bootstrap.
Stars: ✭ 309 (-2.52%)
Mutual labels:  angularjs
Hstardoc
My blogs write with markdown.
Stars: ✭ 297 (-6.31%)
Mutual labels:  angularjs
Laravel Angular Cms
CMS built on Laravel, AngularJS and Material Design
Stars: ✭ 272 (-14.2%)
Mutual labels:  angularjs
Cloudinary angular
Cloudinary Angular client library
Stars: ✭ 305 (-3.79%)
Mutual labels:  angularjs
Webclient
Monorepo hosting the proton web clients
Stars: ✭ 3,079 (+871.29%)
Mutual labels:  angularjs
Simplcommerce
A simple, cross platform, modularized ecommerce system built on .NET Core
Stars: ✭ 3,474 (+995.9%)
Mutual labels:  angularjs
Deep Learning In Production
In this repository, I will share some useful notes and references about deploying deep learning-based models in production.
Stars: ✭ 3,104 (+879.18%)
Mutual labels:  angularjs
Angular Editor Fabric Js
Drag-and-drop editor based on Fabricjs for Angular.io
Stars: ✭ 295 (-6.94%)
Mutual labels:  resizable
Codebe
CodeBe(码币)是一个是使用angular2整合各种插件的项目,包括(layer,bootstrap-table,markdown编辑器,highcharts,ckeditor,高德地图,fullcalendar 等等)。如果你有什么想要集成的插件,请告诉我,我来加进去。(请给我加个星,谢谢。)
Stars: ✭ 307 (-3.15%)
Mutual labels:  angularjs
Angularjs Atom
An AngularJS package for Github's Atom editor
Stars: ✭ 294 (-7.26%)
Mutual labels:  angularjs

angular-resizable

A directive for creating resizable containers.

Why?

All other resizable directive concepts I came across include layout logic in the directive. I wanted a directive that only handled the resize logic. This way, the layout logic is quarantined to the CSS.

Usage

  1. npm install angular-resizable or bower install angular-resizable or clone/download this repo
  2. Include angular-resizable.min.js in your project.
  3. Include angular-resizable.min.css in your project as well (this provides default styling for the resize handles).
  4. Then include the module in your app: angular.module('app', ['angularResizable'])
  5. Use it: <section resizable r-directions="['bottom', 'right']" r-flex="true">

Include any sides you want to be resizable in an array inside r-directions. Accepts 'top','right','bottom', and 'left'. You can style the handles however you want. Just override the styles in the css in your own stylesheet.

Options

Attributes Default Accepts Description
rDirections ['right'] ['top', 'right', 'bottom', 'left',] Determines which sides of the element are resizable.
rFlex false boolean Set as true if you are using flexbox. See this codepen.
rCenteredX false boolean If set as true, the velocity of horizontal resizing will be doubled.
rCenteredY false boolean If set as true, the velocity of vertical resizing will be doubled.
rWidth false integer or $scope variable If set, the resizable element will be rendered with a predefined width relative to this value in pixels and a watcher will be set on the 'rWidth' attribute. See this codepen.
rHeight false integer or $scope variable If set, the resizable element will be rendered with a predefined height relative to this value in pixels and a watcher will be set on the 'rHeight' attribute. See this codepen.
rGrabber <span></span> string Defines custom inner html for the grabber.
rNoThrottle false boolean Disables angular-resizable.resizing throttling (see events section below).

Events

For an example using the events, see this codepen.

angular-resizable.resizeStart

This event is emitted at the beginning of a resize with the following info object:

  • info.width : The width of the directive at time of resize start. Will be false if resizing vertically
  • info.height : The height of the directive at time of resize start. Will be false if resizing horizontally
  • info.id : The id of the directive. Will be false if there is no id set.
  • info.evt : original mouse event object

angular-resizable.resizing

Called repeatedly while the mouse is being moved. By default, only calls once every 100ms to keep CPU usage low. For smooth resizing, use the rNoThrottle attribute. This event is emitted during the resizing of the element with the following object as an argument:

  • info.width : The width of the directive at time of resize end. Will be false if resizing vertically
  • info.height : The height of the directive at time of resize end. Will be false if resizing horizontally
  • info.id : The id of the directive. Will be false if there is no id set.
  • info.evt : original mouse event object

angular-resizable.resizeEnd

This event is emitted at the end of a resize with the following object as an argument:

  • info.width : The width of the directive at time of resize end. Will be false if resizing vertically
  • info.height : The height of the directive at time of resize end. Will be false if resizing horizontally
  • info.id : The id of the directive. Will be false if there is no id set.
  • info.evt : original mouse event object

version notes

1.2.0

  • Add angular-resizable.resizing event (see pull request #7)
  • Add attribute for providing custom inner html to the grabber element (see pull request #7)

License

MIT

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].