nbslot_edit: add documentation and handle more edge cases
This commit is contained in:
		@@ -189,10 +189,16 @@
 | 
			
		||||
		</attribute>
 | 
			
		||||
		<attribute name='min_rows' get='1' set='1'  type='int' size='1' >
 | 
			
		||||
			<digest>Minimum number of rows to display</digest>
 | 
			
		||||
			<description>Defines the minimum number of rows to display if scrollable is enabled and layout is set to 1.
 | 
			
		||||
				If a preset is stored in a slot with a higher value than min_row, then min_row is ignored and presets are displayed up to the highest stored one.
 | 
			
		||||
			<description>Defines the minimum number of rows to display if scrollable is enabled.
 | 
			
		||||
				min_rows gets overridden if the objects size can fit more rows than defined by min_rows, and/or if a stored preset is in a row above min_row.
 | 
			
		||||
				In other words, min_rows is applied as long as scrollable is enabled, the objects size can fit more rows than min_row without scrolling (the size of a row being defined by bubblesize and margin), or a stored preset lives in a row above min_row.
 | 
			
		||||
			</description>
 | 
			
		||||
		</attribute>
 | 
			
		||||
		</attribute>
 | 
			
		||||
			<attribute name='nbslot_edit' get='1' set='1'  type='bool' size='1' >
 | 
			
		||||
			<digest>Add/remove rows of presets</digest>
 | 
			
		||||
			<description>When enabled, adds a "-" and "+" buttons at the end of the presets list which, when clicked, respectively remove or add a row of empty slot(s). The minimum number of rows is capped by min_rows.</description>
 | 
			
		||||
		</attribute>
 | 
			
		||||
		<attribute name='pattrstorage' get='1' set='1'  type='symbol' size='1' >
 | 
			
		||||
			<digest>pattrstorage object to bind to</digest>
 | 
			
		||||
			<description>Set the name of the [pattrstorage] to bind to. Its outlet must be connected to the [tc.preset] inlet.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user