mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			274 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			274 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # Options
 | |
| ## Read an option
 | |
| 
 | |
| Add the import to the service (make sure the relative path is correct):
 | |
| 
 | |
| ```javascript
 | |
| import options from "../../services/options.js";
 | |
| ```
 | |
| 
 | |
| Them simply read the option:
 | |
| 
 | |
| ```javascript
 | |
| this.firstDayOfWeek = options.getInt("firstDayOfWeek");
 | |
| ``` |