editing function
import { NoCodeComponentDefinition } from "@easyblocks/core";
export const simpleBannerDefinition: NoCodeComponentDefinition = {
// ...
editing: ({ values, editingInfo }) => {
return {
components: {
Buttons: values.Buttons.map(() => ({
direction: "horizontal",
})),
Title: {
fields: [
{
...editingInfo.fields.find((field) => field.path === "gap")!,
label: "Bottom gap",
},
],
},
},
};
},
};Changing fields visibility
Disabling selection of child components
Last updated