Skip to content
Snippets Groups Projects
actions.js 342 B
Newer Older
  • Learn to ignore specific revisions
  • Tobias Ullerich's avatar
    Tobias Ullerich committed
    module.exports = function (self) {
    	self.setActionDefinitions({
    		sample_action: {
    			name: 'Trigger Pad',
    			options: [
    				{
    					id: 'num',
    					type: 'number',
    					label: 'Test',
    					default: 5,
    					min: 0,
    					max: 100,
    				},
    			],
    			callback: async (event) => {
    				console.log('Hello world!', event.options.num)
    			},
    		},
    	})
    }