Instance Settings
A separate GSNewsbar instance is created for each targetted division and has its own settings:
$(selector).gsnewsbar({...});
currentResult | cycleMode | cycleTime | horizontal | linkTarget | manyResults | search | title | verticalCompressed
Name | Type | Default | Comments |
---|---|---|---|
horizontal | boolean | true | Controls the orientation of the newsbar, being horizontal (true )
or vertical (false ). |
verticalCompressed | boolean | false | Controls the how much detail is shown for a vertical newsbar,
being titles only (true ) or all details (false ).
Note that this setting has no effect on horizontal newsbars. |
title | string | '' | The title of the newsbar. It only appears at the top of a vertical newsbar. |
search | string or string[] | 'jquery' | The single term to search for, or a list of terms to cycle through. |
manyResults | boolean | false | Control how many results are returned, being few (false ) or many (true ). |
cycleTime | enumerated | this.cycleManual | Specify the interval between cycles when multiple search terms are provided.
For horizontal newsbars this is the time between individual entries,
whereas for vertical newsbars it is the time between results for multiple search terms.
Use one of ($.gsnewsbar. ) cycleVShort (3 seconds),
cycleShort (3 seconds horizontal, 10 seconds vertical),
cycleMedium (5 seconds horizontal, 15 seconds vertical),
cycleLong (10 seconds horizontal, 30 seconds vertical),
cycleManual (5 seconds horizontal, indefinite vertical). |
cycleMode | enumerated | this.cycleLinear | Specify the order in which search terms are used when multiple are provided.
Use either ($.gsnewsbar. ) cycleRandom or
cycleLinear . |
linkTarget | enumerated | this.targetSelf | Indicate in which window a news entry should open.
Use one of ($.gsnewsbar. ) targetSelf (the current window),
targetBlank (a new window),
targetTop (replacing all frames), or
targetParent (the frameset parent window). |
currentResult | string, object, element | '' | The jQuery selector, jQuery object, or individual element for the a container to show details about the current newsbar entry. If more than one element is selected, only the first is used. Note that this setting only applies to horizontal newsbars. |