-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
docs(Dropdown): added comments for shape of options #1086
docs(Dropdown): added comments for shape of options #1086
Conversation
Current coverage is 95.83% (diff: 100%)@@ master #1086 diff @@
==========================================
Files 873 873
Lines 4827 4827
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 4626 4626
Misses 201 201
Partials 0 0
|
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.
Awesome! This was on my bucket list. I've left a couple comments on formatting. We reserve /**
doc blocks for external documentation. I'd like to keep the comments as small as possible. I've left two examples of how I'd like to refactor these. LMK if there are any questions. Thanks again!
/** stateOptions shape **/ | ||
/** | ||
[ | ||
{ value: 'AL', text: 'Alabama' }, |
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.
Let's shorten all examples that have single-line option objects:
/** stateOptions shape **/
/**
[
{ value: 'AL', text: 'Alabama' },
{ value: 'AK', text: 'Alaska' },
{ value: 'AZ', text: 'Arizona' },
...
]
**/
Into this style comment:
// stateOptions = [{ value: 'AL', text: 'Alabama' }, ...{}]
modified comments to conform to project standards
0bc4019
to
1c65e84
Compare
amended the commit. please take a look... i had to do multi-line on some of them because they didn't really fit if they were one liners. let me know what you think |
Thanks much! |
took the liberty to add the shape of the options on examples. Just thought it would be helpful. I had to find the
../common.js
file myself.