Skip to content
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

WIP: Add inspector base control #1160

Closed

Conversation

paulwilde
Copy link
Contributor

This adds a BaseControl class which other inspector controls can extend as suggested in #1144 (comment).

This still TODO as I cannot figure out how to call the child renderControl method when extending BaseControl.

@paulwilde paulwilde closed this Jun 13, 2017
@paulwilde paulwilde deleted the add/inspector-base-control branch June 13, 2017 16:57
return (
<div className="blocks-base-control">
{ this.renderControlLabel() }
{ this.renderControl() }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should just replace this.renderControl() by { children }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants