-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 documentation for MediaPlaceholder props. #14645
Add documentation for MediaPlaceholder props. #14645
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.
It's great to see all those props documented. Thank you for working on it. I left two comments where I would expect to learn more details.
@@ -27,6 +27,87 @@ const { MediaPlaceholder } = wp.editor; | |||
} | |||
``` | |||
|
|||
## Props | |||
|
|||
### accept |
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.
Should it be clarified what's the difference between accept
and allowedTypes
, if any?
|
||
### onSelect | ||
|
||
Callback called when the files are selected/uploaded, the selected media are passed as an argument. |
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 selected media are passed as an argument
In what format?
6fc0288
to
5065d97
Compare
5065d97
to
223ed23
Compare
Thank you for the review @gziolo your feedback was applied before the merge. |
Description
This PR just adds documentation for the MediaPlaceholder props.
I noticed during a recent change that the props were not documented.
How has this been tested?
This PR just affects the documentation.