SUI.style
Holds a set of CSS/style related utility functions.
Defined in: style.js| Attr. | Type | Name / Description | 
|---|---|---|
| public | 
					 addClass(e, clss) Add a CSS class selector to the CSS class selector list of an element.  | 	
			|
| public | 
					 removeClass(e, clss) Remove a CSS class selector from the CSS class selector list of an element.  | 	
			|
| public | int | 
					
					
						 Get the width of the system scroll bars.  | 	
			
| public | 
					 setClass(e, clss) Set the CSS class selector of an element (overwrites existing).  | 	
			|
| public | 
					 setRect(dest, t, l, w, h) Set the top, left, width and height style properties in one go. Either by passing all four values or by passing an other element to copy the values from.  | 	
			|
| public | 
					 textLength(t) Measure the text length of of a string.  | 	
			
Methods
- public addClass( HTMLElementNode e, String clss)
 - 
				
Add a CSS class selector to the CSS class selector list of an element.
Parameters:
Name Type Description HTMLElementNode e HTML element of which to add a the class selector. String clss The CSS selector string to add.  - public removeClass( HTMLElementNode e, String clss)
 - 
				
Remove a CSS class selector from the CSS class selector list of an element.
Parameters:
Name Type Description HTMLElementNode e HTML element of which to add a the class selector. String clss The CSS selector string to remove.  - public int scrollbarWidth()
 - 
				
Get the width of the system scroll bars.
Returns:
int The width of the system scroll bars.
 - public setClass( HTMLElementNode e, String clss)
 - 
				
Set the CSS class selector of an element (overwrites existing).
Parameters:
Name Type Description HTMLElementNode e HTML element of which to set the class name. String clss The new CSS selector string.  - public setRect( HTMLElementNode dest, HTMLElementNode | int t, int l, int w, int h)
 - 
				
Set the top, left, width and height style properties in one go. Either by passing all four values or by passing an other element to copy the values from.
Parameters:
Name Type Description HTMLElementNode dest The element of which to set the style properties. HTMLElementNode | int t A the new top value in pixels, or a reference element to copy the four style attributes from. int l The new left value in pixels, or none if the t parameter was a reference element. int w The new width value in pixels, or none if the t parameter was a reference element. int h The new height value in pixels, or none if the t parameter was a reference element.  - public textLength( String t)
 - 
				
Measure the text length of of a string.
Parameters:
Name Type Description String t The text to measure the length of.  



