Skip to content
Snippets Groups Projects
Select Git revision
  • 2911fe5303b9f2a21fd39108d98bb228f42f541b
  • main default
  • 7.2.0
3 results

actions.js

Blame
  • actions.js 342 B
    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)
    			},
    		},
    	})
    }