Highslide JS API Reference

Close Move
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam dapibus leo quis nisl. In lectus. Vivamus consectetuer pede in nisl. Mauris cursus pretium mauris. Suspendisse condimentum mi ac tellus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec sed enim. Ut vel ipsum. Cras consequat velit et justo. Donec mollis, mi at tincidunt vehicula, nisl mi luctus risus, quis scelerisque arcu nibh ac nisi. Sed risus. Curabitur urna. Aliquam vitae nisl. Quisque imperdiet semper justo. Pellentesque nonummy pretium tellus.
Resize

Object: hs

Variables

Functions

Events

Object: hs.Expander

Variables

Functions

Events



hs.maincontentId

The id of an element to open in a HTML expander using self rendering content wrapper.
Read more in the tutorial for more ways to add maincontent.

Details

Requires inline
Type string
Default value null
Overrideable inline Yes

Example

Open content from a div elsewhere on the page

<div id="my-content" class="highslide-maincontent">
	This is the main content, everything else is self rendering.
</div>
<a class="highslide textbutton" href="javascript:;" 
   onclick="return hs.htmlExpand(this, { maincontentId: 'my-content' })">Open</a>

See the effect:

This is the main content, everything else is self rendering.
Open

See also

New, Edit