File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ githubFetch<PassCountRepos>({
1717
1818// pick data columns
1919const selectedColumns = ref (dataColumns .value );
20+ // Label to display after exceeding max selected labels.
21+ const selectedItemsLabel = computed (() => ` ${selectedColumns .value .length } checkers are selected; click to customize columns displayed ` );
2022const onToggle = (val : any ) => selectedColumns .value = dataColumns .value .filter (col => val .includes (col ));
2123
2224const basic = useBasicStore ();
@@ -98,7 +100,8 @@ const progressRatio = computed(() => {
98100
99101 <div >
100102 <MultiSelect :modelValue =" selectedColumns" @update:modelValue =" onToggle" :options =" dataColumns"
101- optionLabel =" header" class =" w-full sm:w-64" display =" chip" />
103+ :maxSelectedLabels =" 8" :selectedItemsLabel =" selectedItemsLabel" optionLabel =" header"
104+ class =" w-full sm:w-64" display =" chip" />
102105 </div >
103106
104107 <div >
You can’t perform that action at this time.
0 commit comments