-
Notifications
You must be signed in to change notification settings - Fork 88
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
Add openClass and closeClass attributes #221
Conversation
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.
Hi @nlarche
first I must say best pull request since the project started! You added documentation, tests and increased the overall coverage! ;) really nice.
I added some comments, mainly formatting issues and documentation changes. Can you please check that all formatting changes are reverted as then you exactly see what changed in functionality/features.
And could you also execute a grunt dist
and then update the pull request? Then all the distribution files are also updated.
When you manage to fix these things over the weekend then I can add them to the 0.4.0
release as I want to release this on Monday evening.
Thanks a lot! Great contribution!
Regards
Guy
README.md
Outdated
@@ -39,6 +39,7 @@ ion-autocomplete | |||
- [Manage externally](#manage-externally) | |||
- [Selected items](#selected-items) | |||
- [Clear on select](#clear-on-select) | |||
- [Override open and close class ](#open-close-class) |
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.
Can you maybe change it to - [Open and close CSS class ](#open-and-close-css-class)
?
README.md
Outdated
@@ -560,6 +561,14 @@ This option is to clear the search input when an item is selected. You need to s | |||
<input ion-autocomplete type="text" class="ion-autocomplete" autocomplete="off" ng-model="model" clear-on-select="true" /> | |||
``` | |||
|
|||
### Override open and close class |
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.
Please use the following documentation (just some minor changes):
Open and close CSS class
By default two CSS classes are used to display and hide the modal, namely the
ion-autocomplete-open
and theion-autocomplete-close
CSS class. These are used to show and hide the modal. When you need to override these classes, you can define the following two properties with your CSS class.<input ion-autocomplete type="text" class="ion-autocomplete" open-class="my-open-class" close-class="my->close-class" />
src/ion-autocomplete.css
Outdated
@@ -5,7 +5,7 @@ | |||
bottom: 0; | |||
left: 0; | |||
z-index: 20; | |||
display: none; | |||
/*display: none;*/ |
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.
Please delete it right away as commented out code is something you don't need ;).
src/ion-autocomplete.js
Outdated
@@ -21,7 +21,7 @@ angular.module('ion-autocomplete', []).directive('ionAutocomplete', [ | |||
selectedItemsLabel: '@', | |||
templateUrl: '@', | |||
itemValueKey: '@', | |||
itemViewValueKey: '@' | |||
itemViewValueKey: '@' |
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.
Please remove the spaces you added at the end here.
src/ion-autocomplete.js
Outdated
@@ -477,7 +483,7 @@ angular.module('ion-autocomplete', []).directive('ionAutocomplete', [ | |||
// set the model value of the model | |||
ngModelController.$parsers.push(function (viewValue) { | |||
return ionAutocompleteController.getItemValue(viewValue, ionAutocompleteController.itemValueKey); | |||
}); | |||
}); |
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.
Please remove the spaces you added at the end here.
@@ -8,47 +8,60 @@ | |||
<title>ion-autocomplete end to end test page</title> | |||
|
|||
<link rel="stylesheet" href="../../bower_components/ionic/css/ionic.css"> | |||
<link rel="stylesheet" type="text/css" href="../../src/ion-autocomplete.css"/> | |||
<link rel="stylesheet" type="text/css" href="../../src/ion-autocomplete.css" /> |
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.
Please revert the formatting as this adds unneeded changes to the pull request.
|
||
<script src="../../bower_components/ionic/js/ionic.bundle.js"></script> | ||
<script src="../../src/ion-autocomplete.js"></script> | ||
<script type="text/javascript"> | ||
var app = angular.module('ion-autocomplete-sample', ['ionic', 'ion-autocomplete']) | ||
.controller('IonAutocompleteController', function ($scope) { |
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.
Same here: Please revert the formatting as this adds unneeded changes to the pull request. (for the whole block from line 17 to 42)
<ion-view title="ion-autocomplete sample"> | ||
<ion-content> | ||
<form> | ||
<ion-view title="ion-autocomplete sample"> |
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.
Please revert the formatting as this adds unneeded changes to the pull request. Please check the rest of the file as there are more formatting changes like this.
I made all changes and push dist files. it should be good. |
@nlarche Did you run the local e2e tests with protractor? Looks like the master is now failing: https://travis-ci.org/guylabs/ion-autocomplete/builds/204997944 Could you maybe have a look at it and check if you are able to reproduce it locally? The strange thing is that here in the pull request it said the build was passing and the coverage increased. I am able to have a look at it on Monday evening if you cannot check it. Thanks and regards, Guy |
@guylabs yes it's weird, I ran all the test in local. I can't check until Monday morning. |
@nlarche I just fixed it as the open/close classes for the e2e tests did not work properly. I changed them an now all the tests work properly. Can you maybe check it on Monday such that I can release Thanks a lot and have a good weekend. |
Ok, it looks good to me. |
Hey @nlarche, Regards Guy |
Hello Guy,
I tried to do something, tell me If it's good to you and if you want me to do thing in another way
closes #219
regards,
Nicolas