public
Description: JavaScript Application Framework - JS library only
Home | Edit | New

Scroll_view

Note: The :outlet setting has been removed in SC version 0.9.16, so only use it if you use a previous version.

A scroll view is a container for all views that need a scroll bar.

Syntax:


<% scroll_view :name_of_scroll_view, :outlet => true/false, :height => 400 do %>
  // content of scroll view
<% end %>

Attributes:

  • name_of_scroll_view :: the name the scroll view will be accessible through
  • outlet :: Whether or not the scrollview needs to be accessible via JavaScript. If the content of the scroll view is dynamic, outlet must be set to true
  • height: the height in pixels you want the scroll view to be

NOTE: Height is a mandatory field for scroll view. You must either set a height in the view helper, or through CSS. You cannot use height: auto.

Last edited by mauritslamers, Thu Aug 28 08:37:39 -0700 2008
Home | Edit | New
Versions: