Action Menu API
Initialization
import { ActionMenu } from "@svar-ui/react-menu";
import { getOptions } from "./data";
const options = getOptions();
export default function App() {
return <ActionMenu options={options} />;
}
Related resources
- Visit the Features Guide to learn more about the widget's functionality.
- Explore the samples to visualize the available features.
Properties
| at | Optional. Specifies the position of Action Menu relative to the target node |
| css | Optional. Adds a custom style to the menu |
| dataKey | Optional. Specifies the id of the elements to show Action Menu for |
| filter | Optional. Specifies what context to show for the specified targets |
| options | Optional. Specifies a set of options for Action Menu |
| resolver | Optional. Enables the multi-area mode and defines whether an element needs a menu |
Events
| click | Optional.Fires on clicking an item of Action Menu or outside the menu |