-
Notifications
You must be signed in to change notification settings - Fork 169
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
use angle bracket syntax #298
use angle bracket syntax #298
Conversation
README.md
Outdated
@@ -162,7 +162,7 @@ You can pass any custom pikaday option through the component like this | |||
|
|||
```handlebars | |||
<label> | |||
{{pikaday-input options=(hash numberOfMonths=2 disableWeekends=true disableDayFn=(action 'someAction'))}} | |||
<PikadayInput @options={{hash numberOfMonths=2 disableWeekends=true disableDayFn={{action 'someAction'}}}}/> |
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.
I think we still need to use (action 'someAction')
because it is a nested handlebars expression.
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.
Thanks for catching this 👍 update made! :)
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.
Thanks for improving this! Changes look good except for one case in the README.md where we need to use the correct nested handlebars expression syntax (action 'something')
.
README.md
Outdated
{{pikaday-input onOpen=(action 'doSomethingOnOpen') onClose=(action 'doSomethingOnClose') | ||
onDraw=(action 'doSomethingOnDraw')}} | ||
<PikadayInput @onOpen={{action 'doSomethingOnOpen'}} @onClose={{action 'doSomethingOnClose'}} | ||
onDraw={{action 'doSomethingOnDraw'}}/> |
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.
onDraw={{action 'doSomethingOnDraw'}}/> | |
@onDraw={{action 'doSomethingOnDraw'}}/> |
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.
@The-Bionic last tweak and I'll merge!
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.
Woah, thanks for catching this! 👍
Grand, thanks again @The-Bionic! |
Update to use Angle Bracket syntax