Skip to content

Clone and NoDrop.#411

Merged
Voles merged 2 commits into
angular-ui-tree:masterfrom
enkodellc:master
Apr 27, 2015
Merged

Clone and NoDrop.#411
Voles merged 2 commits into
angular-ui-tree:masterfrom
enkodellc:master

Conversation

@enkodellc

Copy link
Copy Markdown
Contributor

Added "data-clone" element. This could be improved upon with UI changes maintaining the source node in the source tree.
Fixed the "data-nodrop" attribute. This could be improved upon with UI changes not allowing a placeholder to be placed in the destination tree.
I didn't have time to add the tests.
Fix issue with an Angular $watch on the tree ng-model firing twice on every drop: #396
data-nodrag can be set to true or false: #379

Don't force placeholder width - if you have 2 trees of different sizes the dropping elements are now the correct width: #381

Corrected attribute name and fixed typos: https://github.com/angular-ui-tree/angular-ui-tree/pull/410/files

I included other PR's as I needed all of them for my project to work together. Thanks for those who submitted the other noted PR's.

…he element. This could be improved upon with UI changes maintaining the source node in the source tree.

Fixed the "data-nodrop" attribute. This could be improved upon with UI changes not allowing a placeholder to be placed in the destination tree.

I didn't have time to add the tests.

Fix issue with an Angular $watch on the tree ng-model firing twice on every drop
#396

data-nodrag can be set to true or false
#379

Don't force placeholder width - if you have 2 trees of different sizes the dropping elements are now the correct width
#381

Corrected attribute name and fixed typos
https://github.com/angular-ui-tree/angular-ui-tree/pull/410/files
@meriturva

Copy link
Copy Markdown

Please merge this pull request!

@enkodellc

Copy link
Copy Markdown
Contributor Author

@meriturva thanks, but I haven't seen much action from this repo... @JimLiu any response to this PR? Thanks for all your hard work on this directive.

@meriturva

Copy link
Copy Markdown

@JimLiu what do you think to extend projects admin to others? just to restart the development and bugfix!....so thanks anyway.

Comment thread README.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think of using data-clone-enabled? A little more verbose and in line with data-drag-enabled.

@Voles

Voles commented Apr 26, 2015

Copy link
Copy Markdown
Member

Thanks for the PR! 🍰
Please let me know what you think about my comments.

@enkodellc

Copy link
Copy Markdown
Contributor Author

@Voles I will refacter with your comments tonight. I agree that these are consistent naming conventions with ui-tree. Thanks.

…enabled), renamed clone->cloneEnabled (data-clone-enabled), added demo page to test the new / fixed functionality.
@enkodellc

Copy link
Copy Markdown
Contributor Author

@Voles I made the changes and added a demo page for the features. Please review and test. Thanks

@Voles

Voles commented Apr 27, 2015

Copy link
Copy Markdown
Member

Looks good, thanks for the updates!

Voles pushed a commit that referenced this pull request Apr 27, 2015
@Voles
Voles merged commit 2dbb5a6 into angular-ui-tree:master Apr 27, 2015
@enkodellc

Copy link
Copy Markdown
Contributor Author

@Voles Thanks, please review my notes as this closes a few issues... Also I didn't version up but we should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants