MCPcopy Create free account
hub / github.com/eclipsesource/jsonforms / useComputedLabel

Function useComputedLabel

packages/vue-vuetify/src/util/composition.ts:81–95  ·  view source on GitHub ↗
(
  input: I,
  appliedOptions: ReturnType<typeof useControlAppliedOptions>,
)

Source from the content-addressed store, hash-verified

79};
80
81export const useComputedLabel = <
82 T extends { label: string; required: boolean },
83 I extends { control: ComputedRef<T> },
84>(
85 input: I,
86 appliedOptions: ReturnType<typeof useControlAppliedOptions>,
87) => {
88 return computed((): string => {
89 return computeLabel(
90 input.control.value.label,
91 input.control.value.required,
92 !!appliedOptions.value?.hideRequiredAsterisk,
93 );
94 });
95};
96
97export const isControlEditable = (control: {
98 enabled: boolean;

Callers 2

useVuetifyControlFunction · 0.85
useVuetifyArrayControlFunction · 0.85

Calls 1

computeLabelFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…