mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-03 21:34:30 +08:00
19 lines
386 B
TypeScript
19 lines
386 B
TypeScript
import { computed, ref } from "vue";
|
|
|
|
export function useMultiselect() {
|
|
const editing = ref(false);
|
|
const ariaExpanded = computed(() => {
|
|
return editing.value ? "true" : "false";
|
|
});
|
|
|
|
function onOpen() {
|
|
editing.value = true;
|
|
}
|
|
|
|
function onClose() {
|
|
editing.value = false;
|
|
}
|
|
|
|
return { editing, ariaExpanded, onOpen, onClose };
|
|
}
|