Skip to main content
Version: Current

foundation-layout.custombutton

Home > @genesislcap/foundation-layout > CustomButton

CustomButton type

Definition of a custom button which will be added to all layout items.

Signature:

export type CustomButton = {
svg: string;
onClick: (button: HTMLElement, element: HTMLElement) => void;
};

Remarks

svg - string of the SVG to use for the button. Needs to be in the format data:image/svg+xml;base64,<<base64 encoded definition>>. onClick - function which will be called when the button is clicked. The clicked button and the contained element associated with the clicked button will be passed to the function.