deckboard icon indicating copy to clipboard operation
deckboard copied to clipboard

custom extensions questions

Open Smallinger opened this issue 4 years ago • 6 comments

Hello, atm i work on my own extension and my first question is how are the this.configs works ? i try this here

		this.configs = {
			tokenapi: {
				type: 'string',
				name: 'token',
				descriptions: '',
				value: [
					"yourtokenhere"
				]
			}
		};

but this is not working.

my other question is, is it possible to change the color / icon over a extension directly so that i can make myself a state button.

Smallinger avatar May 13 '21 16:05 Smallinger

replace type: 'string' with type: 'text' and it should be working:

this.configs = {
	tokenapi: {
		type: 'text',
		name: 'token',
		descriptions: '',
		value: "yourtokenhere"
	}
};

rivafarabi avatar May 14 '21 06:05 rivafarabi

hmm, after adding this

const { dialog } = require('electron');
const { Extension, log, INPUT_METHOD, PLATFORMS } = require('deckboard-kit');

class MyFirstExtension extends Extension {	
        constructor() {
		super();
		this.name = 'myextension options';
		this.platforms = [PLATFORMS.WINDOWS, PLATFORMS.MAC];
		this.configs = {
			tokenapi: {
				type: 'text',
				name: 'token',
				descriptions: '',
				value: "yourtokenhere"
			}
		};
		this.inputs = [....

The Extension is loading but under configs there is all blank. t_e8vpRa

i use the 0.3.0 devkit with the newest 1.9.94 Deckboard PC app

Smallinger avatar May 14 '21 09:05 Smallinger

ok, after build and install the file, its working looks like the projekt folder in /extension/myproject get cached, is there a way to delete it ?

Smallinger avatar May 14 '21 10:05 Smallinger

ok. soo if i use "type: 'text'" then the value get not saved in settings.json or in deckboad it self only array works

Smallinger avatar May 14 '21 10:05 Smallinger

second one, if you press save you musst restart the application to get the new value loaded.

Smallinger avatar May 14 '21 10:05 Smallinger

This issue is stale because it has been open for 1 year with no activity.

github-actions[bot] avatar Nov 26 '25 02:11 github-actions[bot]

This issue was closed because it has been inactive for 39 days since being marked as stale.

github-actions[bot] avatar Dec 26 '25 03:12 github-actions[bot]