Link
footerButton
Creates a button in the footer
moises.link.footerButton
Parameters
Parameter | Type | Description |
---|---|---|
label | string | Display label for the button |
icon | string | Icon identifier for the button |
onClick | Function | Callback function triggered when button is clicked |
Returns:
void
- Does not return a value
Usage Example
import { initMoisesExtension } from '@moises.ai/extension'
const useMoisesExtension = initMoisesExtension({
id: 'my-extension',
name: 'My Extension',
description: 'Extension description',
icon: 'icon',
version: '1.0.0',
author: 'author'
})
const { moises } = useMoisesExtension()
moises.link.footerButton(
{ label: "Footer Action", icon: "action-icon" },
() => {
console.log("Footer button clicked")
}
)
This file is automatically generated. Do not edit manually.