Docs Home

sb.css.styleSheet

@File: /surebert/css/styleSheet.js

@Description: A constructor used to load additional CSS styleSheets into the page. Each styleSheet has a hide and show method. The stylesheet is hidden by default.


@Param: String url The address of the stylesheet to load can be on or off site
@Param: String stackPosition Determines if the stylesheet loads before or after all other styles sheets. If set to 'before' it loads on as the first stylesheet so that all other styles override the values set within it, if not specified, the styleSheet loads at the end so that styles defined in it override all previous styles
@Example:

var mySheet= new sb.css.styleSheet('http://www.example.com/format.css');

sb.css.styleSheet.prototype

@File: /surebert/css/styleSheet.js

@Description: All sb.css.styleSheet.prototype examples below assume a sb.css.styleSheet instance created liek this


@Example:

var mySheet= new sb.css.styleSheet('http://www.example.com/format.css');

sb.css.styleSheet.prototype.show

@File: /surebert/css/styleSheet.js

@Description: Disables the stylesheet


@Example:

    mySheet.hide();
    

sb.css.styleSheet.prototype.show

@File: /surebert/css/styleSheet.js

@Description: Enables the stylesheet


@Example:

    mySheet.show();
    

sb.css.styleSheet.prototype.toggle

@File: /surebert/css/styleSheet.js

@Description: Toggles the display stylesheet


@Example:

    mySheet.toggle();
    

sb.css.styleSheets

@File: /surebert/css/styleSheet.js

@Description: A collection of all stylesheets added as sb.css.styleSheet instances. Can show or hide all.

sb.css.styleSheets.hide

@File: /surebert/css/styleSheet.js

@Description: Hides all stylesheets added as sb.css.styleSheet instances


@Example:
 sb.css.styleSheets.hide();
    

sb.css.styleSheets.show

@File: /surebert/css/styleSheet.js

@Description: Shows all stylesheets added as sb.css.styleSheet instances


@Example:
 sb.css.styleSheets.show();