-
Notifications
You must be signed in to change notification settings - Fork 692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting the width through a property js #460
Conversation
I don't understand why you've put a reference to #222 here? |
Although I personally would prefer to use classes, as I tend to want more differences than just width, I can understand this might help some users. Additional changes required for merge:
|
You can use https://docs.angularjs.org/api/ng/function/angular.isString for the string check |
No that's fine, keep this PR open, I was just confused about the reference is all :) |
@faceleg ok, i will make the adjustments :) |
@faceleg done o/ |
|
||
This option allows you to control the dialog's width. Default value is `null` (unspecified) | ||
|
||
If you provide a number 'px' metric will be used, on the other hand you are able to provide a specific metric using String like `'40%'` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you provide a Number, 'px' will be appended. To use a custom metric, use a String, e.g. '40%'
.
Added some comments, overall looks GREAT! |
This line: https://github.com/negherbon/ngDialog/blob/width-property/js/ngDialog.js#L548 needs to be expanded into a multi-line conditional please, then I think you're done |
@faceleg refactoring done, thanks |
Thanks a lot, especially for your attention to detail and patience. |
@faceleg, thank you for helping me, it was my first contribution and i'm very happy. :) |
You did great! Don't be afraid to argue your case if you disagree with a suggestion by a maintainer :) |
Sometimes is useful put specific width through js property because dont need put any css class every single time you need a specific width. I believe this can help us.
Readme:
#222