SpreadJS Documentation > Developer's Guide > Managing the User Interface > Using a Slicer > Setting the Table Slicer Styles |
You can use a built-in style or set a style for specific areas such as the header.
Refer to the SlicerStyles class for a list of built-in styles. Refer to the SlicerStyle class for a list of specific areas and the SlicerStyleInfo class for the styles that can be changed. Use the SlicerBorder class to create a border for a style.
This example creates a table and adds a slicer with a header style.
JavaScript |
Copy Code
|
---|---|
//create a table var hstyle = new GcSpread.Sheets.SlicerStyleInfo(); //add a slicer to the sheet and return the slicer instance. |