mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	
		
			
				
	
	
	
		
			619 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			619 B
		
	
	
	
	
	
	
	
Creating a new option
- Go to 
options_interface.tsand add the option toOptionDefinitions, specifying its intended data type (boolean, string, number). Note that in the end the option will still be stored as a string, but this aids in type safety across the application. - To add a new option with a set default, go to 
options_init.tsin the server and add a new entry in thedefaultOptions. - Make the option adjustable by the client
By default options are not adjustable or visible to the client. To do so, modifyroutes/api/options.tsto add the newly added option toALLOWED_OPTIONS.