{"id":13580624,"url":"https://github.com/mng/ngx-resizable","last_synced_at":"2025-04-06T02:32:13.913Z","repository":{"id":38811075,"uuid":"151400723","full_name":"mng/ngx-resizable","owner":"mng","description":"Resizable Split Pane Layout","archived":false,"fork":false,"pushed_at":"2023-01-07T02:31:25.000Z","size":6122,"stargazers_count":22,"open_issues_count":32,"forks_count":15,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-12-24T09:28:19.999Z","etag":null,"topics":["angular","layout","pane","resizable","split"],"latest_commit_sha":null,"homepage":"https://3dgenomes.github.io/ngx-resizable/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-03T11:15:18.000Z","updated_at":"2023-12-12T03:20:28.000Z","dependencies_parsed_at":"2023-02-06T10:45:44.750Z","dependency_job_id":null,"html_url":"https://github.com/mng/ngx-resizable","commit_stats":null,"previous_names":["3dgenomes/ngx-resizable"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mng%2Fngx-resizable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mng%2Fngx-resizable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mng%2Fngx-resizable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mng%2Fngx-resizable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mng","download_url":"https://codeload.github.com/mng/ngx-resizable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247426257,"owners_count":20937090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","layout","pane","resizable","split"],"created_at":"2024-08-01T15:01:53.704Z","updated_at":"2025-04-06T02:32:11.958Z","avatar_url":"https://github.com/mng.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Resizable Split Pane Layout\nThis has been adapted from the [@11mb/angular-resizable](https://github.com/11mb/angular-resizable), itself an Angular2 version of  [@reklino/angular-resizable](https://github.com/Reklino/angular-resizable) for AngularJS. Similar work in JavaScript: [@RickStrahl/jquery-resizable](https://github.com/RickStrahl/jquery-resizable); [Split.js](https://split.js.org/) by [@nathancahill](https://github.com/nathancahill/split/).\n\n## Usage\nCheckout and fork these examples (see also explanations below):\n\n[StackBlitz - Default Horizontal Layout (HTML-like table rows)](https://stackblitz.com/edit/3dgenomes-ngx-resizable-181)\n\n[StackBlitz - Vertical/Columns Layout](https://stackblitz.com/edit/3dgenomes-ngx-resizable-vert-181) !\n\n### Installation instructions\nInstall ngx-bootstrap from npm:\n\n```\nnpm install @3dgenomes/ngx-resizable --save\n```\nAdd needed package to NgModule imports:\n```\nimport { NgxResizableModule } from '@3dgenomes/ngx-resizable';\n\n@NgModule({\n  ...\n  imports: [NgxResizableModule,...]\n  ...\n})\n```\nUse component `\u003crsz-layout\u003e` to your HTML:\n\n### Default layout - HTML-like table rows:\n```\n        +--------+--------+\n        |        \u003e        |    [Directions]\n  Row 1 | Cell 1 \u003e Cell 2 |    Rows: dragbar on bottom 'v'\n        |        \u003e        |    Cells: dragbar on right '\u003e'\n        + v v v v v v v v + \n        |        \u003e        |\n  Row 2 | Cell 3 \u003e Cell 4 |\n        |        \u003e        |\n        +--------+--------+\n```\n```\n\u003cdiv class=\"content\"\u003e\n  \u003crsz-layout class=\"row\" [directions]=\"['bottom']\" [rFlex]=\"true\"\u003e\n    \u003crsz-layout class=\"cell\" [directions]=\"['right']\" [rFlex]=\"true\"\u003e\n      \u003cp\u003eCell Content 1\u003c/p\u003e\n    \u003c/rsz-layout\u003e\n    \u003crsz-layout class=\"cell\" [directions]=\"['none']\" [rFlex]=\"false\"\u003e\n      \u003cp\u003eCell Content 2\u003c/p\u003e\n    \u003c/rsz-layout\u003e\n  \u003c/rsz-layout\u003e\n  \u003crsz-layout class=\"row\" [directions]=\"['none']\" [rFlex]=\"false\"\u003e\n    \u003crsz-layout class=\"cell\" [directions]=\"['right']\" [rFlex]=\"true\"\u003e\n      \u003cp\u003eCell Content 3\u003c/p\u003e\n    \u003c/rsz-layout\u003e\n    \u003crsz-layout class=\"cell\" [directions]=\"['none']\" [rFlex]=\"false\"\u003e\n      \u003cp\u003eCell Content 4\u003c/p\u003e\n    \u003c/rsz-layout\u003e\n  \u003c/rsz-layout\u003e\n\u003c/div\u003e\n```\n### Columns layout:\n```\n    Col 1     Col 2\n  +--------+--------+\n  |        \u003e        |    [Directions]\n  | Cell 1 \u003e Cell 3 |    Rows: dragbar on right '\u003e'\n  |        \u003e        |    Cells: dragbar on bottom 'v'\n  | v v v  \u003e  v v v |\n  |        \u003e        |\n  | Cell 2 \u003e Cell 4 |\n  |        \u003e        |\n  +--------+--------+\n        Drag bar\n```\n```\n  \u003cdiv class=\"content cols\"\u003e\n    \u003crsz-layout class=\"row\" [directions]=\"['right']\" [rFlex]=\"true\"\u003e\n      \u003crsz-layout class=\"cell\" [directions]=\"['bottom']\" [rFlex]=\"true\"\u003e\n        \u003cp\u003eCell Content 1\u003c/p\u003e\n      \u003c/rsz-layout\u003e\n      \u003crsz-layout class=\"cell\" [directions]=\"['none']\" [rFlex]=\"false\"\u003e\n        \u003cp\u003eCell Content 2\u003c/p\u003e\n      \u003c/rsz-layout\u003e\n    \u003c/rsz-layout\u003e\n    \u003crsz-layout class=\"row\" [directions]=\"['none']\" [rFlex]=\"false\"\u003e\n      \u003crsz-layout class=\"cell\" [directions]=\"['bottom']\" [rFlex]=\"true\"\u003e\n        \u003cp\u003eCell Content 3\u003c/p\u003e\n      \u003c/rsz-layout\u003e\n      \u003crsz-layout class=\"cell\" [directions]=\"['none']\" [rFlex]=\"false\"\u003e\n        \u003cp\u003eCell Content 4\u003c/p\u003e\n      \u003c/rsz-layout\u003e\n    \u003c/rsz-layout\u003e\n  \u003c/div\u003e\n```\n\n\n## Options\nAttributes  | Default | Accepts | Description\n--- | --- | --- | ---\nrDirections | ['right'] | ['top', 'right', 'bottom', 'left',] | Determines which sides of the element are resizable.\nrFlex | false | boolean | Set as true if you are using flexbox on a cell.\n\n## Events\n\n### angular-resizable.resizeStart\n\nThis event is emitted at the beginning of a resize with the following info object:\n- `info.width` : The width of the directive at time of resize start. **Will be false if resizing vertically**\n- `info.height` : The height of the directive at time of resize start. **Will be false if resizing horizontally**\n- `info.id` : The id of the directive. **Will be false if there is no id set.**\n- `info.evt` : original mouse event object\n\n### angular-resizable.resizing\nCalled repeatedly while the mouse is being moved. By default, only calls once every 100ms to keep CPU usage low.\n- `info.width` : The width of the directive at time of resize end. **Will be false if resizing vertically**\n- `info.height` : The height of the directive at time of resize end. **Will be false if resizing horizontally**\n- `info.id` : The id of the directive. **Will be false if there is no id set.**\n- `info.evt` : original mouse event object\n\n### angular-resizable.resizeEnd\nThis event is emitted at the end of a resize with the following object as an argument:\n- `info.width` : The width of the directive at time of resize end. **Will be false if resizing vertically**\n- `info.height` : The height of the directive at time of resize end. **Will be false if resizing horizontally**\n- `info.id` : The id of the directive. **Will be false if there is no id set.**\n- `info.evt` : original mouse event object\n\n## Changelog\n\n### 1.8.1\n- Update to Angular 8\n\n### 1.7.5\n- Correct NPM upload\n\n### 1.7.4\n- Update packaging\n\n### 1.7.3\n- Update deps to fix TAR security\n\n### 1.7.2\n- Fix aot compile issue since window does not exist\n\n### 1.7.1\n- Add README.md\n- Export component via public-api.ts\n\n## Demo Version notes\n\n### 1.0.4\n- Update version display\n\n\n## License\n\nMIT\n\n# Development\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli).\n\n## Demo app development server\n\nRun `ng s` for a dev server. Navigate to `http://localhost:4200/`. The demo app will automatically reload if you change any of the source files.\n\n## Build using package script\n\nRun `npm run package` to build the project. The build artifacts and NPM tarball will be stored in the `dist/` directory. The demo app will be stored in the `docs/` directory and automatically published to `https://3dgenomes.github.io/ngx-resizable/` when pushed to GitHub.\n\n## Publishing to NPM\nAfter building and commit/push/merge to Github:\n1. update the version notes in the root README.md\n2. update the version number in the library: `projects/ngx-resizable/package.json`\n3. login to npm: `npm login` (check if already loggedin using `npm whoami`)\n4. publish on npm: `npm publish ./dist/ngx-resizable/3dgenomes-ngx-resizable-1.8.1.tgz --access public`.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\n\n## Further help\n\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmng%2Fngx-resizable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmng%2Fngx-resizable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmng%2Fngx-resizable/lists"}