I'm trying to create a simple extension for Directus which adds a button at the header on collection list page (a button nearby "+" button)
When a user selects some of collection items, then he clicks the button and sees an alert message with text: "You selected N items of [collection name]"
Do I need to use the type interface when I use npx create-directus-extension@latest
?
(I'm using Docker for Directus)
interfaceis used for custom field interfaces (like custom input components for fields). But you are modifying a collection list page UI, not a field input. You should use type:moduleif you are dealing with UI elements into the Directus Admin Panel. Try usingcustom hookstoo. Since you are using Docker, ensure to mount your extension into/directus/extensionsfolder