Skip to content

Commit

Permalink
Merge pull request #106 from nih-sparc/add-ability-to-expand-dropdown…
Browse files Browse the repository at this point in the history
…-multiselect

Add ability to expand/collapse categories remotely
  • Loading branch information
egauzens authored May 18, 2022
2 parents 64b2c51 + 347e662 commit e021f17
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nih-sparc/sparc-design-system-components",
"version": "0.26.15",
"version": "0.26.16",
"private": false,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
3 changes: 3 additions & 0 deletions src/components/DropdownMultiselect/src/DropdownLabel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export default {
this.collapsed = !this.collapsed
}
return this.collapsed
},
setCollapsed(isCollapsed) {
this.collapsed = isCollapsed
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<div class="sparc-design-system-component-dropdown-multiselect">
<dropdown-label
ref="label"
:disabled="!enabled"
:label="category.label"
:tooltip="tooltip"
Expand Down Expand Up @@ -251,6 +252,9 @@ export default {
} else {
this.showAll = false
}
},
setCollapsed: function(isCollapsed) {
this.$refs.label.setCollapsed(isCollapsed)
}
}
}
Expand Down

0 comments on commit e021f17

Please sign in to comment.