SpreadJS Documentation
Using Custom Themes from ThemeRoller

You can create a custom jQuery theme using the ThemeRoller and then use the theme with SpreadJS.

You can find the ThemeRoller at jqueryui.com/themeroller.

Create the custom theme and then add the link to the page after the SpreadJS link. For example:

<link href=”css/gcspread.sheets.x.xx.xxxxx.x.css” rel=”stylesheet” type=”text/css” />

<link href="css/black-tie/jquery-ui.css " rel="stylesheet" type="text/css" />

You may also wish to use a timer to refresh the widget if downloading the theme from a server.

Using Code

This example uses a timer.

JavaScript
Copy Code

<link href="./css/gcspread.sheets.excel2013white.9.40.20153.0.css" rel="stylesheet" type="text/css" title="rocket-jqueryui" />

 $("#sampleDiv").data("spread");
 var spread1 = new GcSpread.Sheets.Spread($("#ss")[0]);
            $('#themes').change(function () {
                $("link[title='rocket-jqueryui']").attr("href", $(this).val());
                setTimeout(
                        function () {
                            var spread1 = $("#sampleDiv").data("spread");
                            spread1.repaint();
                        }, 500);
            });

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.