hide private methods

This commit is contained in:
Cory LaViska
2021-06-25 20:07:22 -04:00
parent 114dfa3904
commit 12b0365ce0
2 changed files with 6 additions and 6 deletions

View File

@@ -373,8 +373,8 @@
return next(content);
}
// Remove members that don't have a description
const members = component.members?.filter(member => member.description);
// Remove members that are private or don't have a description
const members = component.members?.filter(member => member.description && member.privacy !== 'private');
const methods = members?.filter(prop => prop.kind === 'method' && prop.privacy !== 'private');
const props = members?.filter(prop => {
// Look for a corresponding attribute

View File

@@ -96,23 +96,23 @@ export default class SlButton extends LitElement {
this.button.blur();
}
private handleSlotChange() {
handleSlotChange() {
this.hasLabel = hasSlot(this);
this.hasPrefix = hasSlot(this, 'prefix');
this.hasSuffix = hasSlot(this, 'suffix');
}
private handleBlur() {
handleBlur() {
this.hasFocus = false;
emit(this, 'sl-blur');
}
private handleFocus() {
handleFocus() {
this.hasFocus = true;
emit(this, 'sl-focus');
}
private handleClick(event: MouseEvent) {
handleClick(event: MouseEvent) {
if (this.disabled || this.loading) {
event.preventDefault();
event.stopPropagation();