-
Notifications
You must be signed in to change notification settings - Fork 41
components: extend Aggregation and EmptyResults interface #128
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
Conversation
src/lib/components/BucketAggregation/BucketAggregationValues.js
Outdated
Show resolved
Hide resolved
src/lib/components/BucketAggregation/BucketAggregationValues.js
Outdated
Show resolved
Hide resolved
| isSelected={isSelected} | ||
| onFilterClicked={onFilterClicked} | ||
| getChildAggCmps={getChildAggCmps} | ||
| valueLabel={label} |
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.
minor: It is definitely not to be addressed now...but why don't we just name the prop label? The value prefix is unnecessary as the property refers to the label of the ValueElement component. I might miss something though :P But, again, not to be addressed now just curiosity :)
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 didn't want to confuse it with the whole aggregation label (the one you see on top of the filter)
| <Element | ||
| queryString={queryString} | ||
| resetQuery={this.resetQuery} | ||
| extraContent={extraContent} |
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.
Where is this used? It's a property specific to Overridable?
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.
no, it is if you want to pass something additional to the EmptyResult, f.e. button to add a new instance or more information. It is more flexible this way than to override the whole component just for this.
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.
But is not used in the Element, no?
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.
no it's not used, but I think it should be passed as a prop
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.
Ok I missed the fact that the Element is overridable :) Then, it looks good!
| <Element | ||
| queryString={queryString} | ||
| resetQuery={this.resetQuery} | ||
| extraContent={extraContent} |
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.
Ok I missed the fact that the Element is overridable :) Then, it looks good!
No description provided.