RasterSplitter.splitRight( panelNo, size, newContent )

Inserts new content at the right side of a panel. The panel identified by panelNo is further splitted into left and right panels, resulting in a new splitter instance. The right panel (panel 1) will be size pixels wide. The left panel (panel 2) will take the remaining horizontal space.

The former content (prior to the split operation occuring) is placed in the new left panel. The newContent (if any) is placed in the new right panel. If no new content was given, the new right panel is left empty.

Parameters

Name Type   Description
panelNo number ID of the panel to be splitted: 1 or 2.
size number Width of the inserted right panel.
newContent value One of the following: a string containing the ID of a DOM element, a reference to a DOM element, or another raster control object. If this argument is null or omitted, the right panel is left empty.

Returns

Type Description
object The splitter resulting from this operation. Panel 1 will be aligned to the right with a width of size pixels; panel 2 will be at the left holding the former content.
Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López