Footer
FooterSDK
FooterSDK =
object
Utilities to interact with the footer.
Properties
addToSlot
addToSlot:
DefineAddToSlotFn<FooterSlotContent>
Add a component to a slot.
Param
The slot to add the component to.
Param
The content to add to the slot.
Example
ts
addToSlot(FooterSlot.FooterSlotPrimary, {
kind: "Command",
commandId: "my-command",
icon: "my-icon",
});
addToSlot(FooterSlot.FooterSlotPrimary, {
kind: "Button",
label: "My button",
icon: "fas fa-rocket",
onClick: () => {
console.log("Button clicked");
},
});
addToSlot(FooterSlot.FooterSlotSecondary, {
kind: "Custom",
component: MyComponent,
});FooterSlotContent
FooterSlotContent =
object
Content that can be added to footer slots.
Properties
footer-primary
footer-primary:
ButtonSlotContent|CustomSlotContent|CommandSlotContent
footer-secondary
footer-secondary:
ButtonSlotContent|CustomSlotContent|CommandSlotContent
FooterSlot
constFooterSlot:object
The slots in the Footer UI.
Type Declaration
FooterSlotPrimary
readonlyFooterSlotPrimary:"footer-primary"
FooterSlotSecondary
readonlyFooterSlotSecondary:"footer-secondary"
