SpreadJS Documentation
Slicer API Changes
SpreadJS Documentation > Developer's Guide > Getting Started > API Changes > Slicer API Changes

The GC.Spread.Sheets.Slicers.SlicerCollection namespace has been added.

The following table lists changes to the slicer namespaces:

V9 V11
GcSpread.Sheets.ItemSlicer GC.Spread.Sheets.Slicers.ItemSlicer
GcSpread.Sheets.SlicerStyleInfo GC.Spread.Sheets.Slicers.SlicerStyleInfo
GcSpread.Sheets.SlicerBorder GC.Spread.Sheets.Slicers.SlicerBorder
GcSpread.Sheets.SlicerStyle GC.Spread.Sheets.Slicers.SlicerStyle
GcSpread.Sheets.SlicerStyles GC.Spread.Sheets.Slicers.SlicerStyles
GcSpread.Sheets.TableSlicerData GC.Spread.Sheets.Slicers.TableSlicerData
GcSpread.Sheets.Slicer GC.Spread.Sheets.Slicers.Slicer

The following methods have changed:

V9 V11
addSlicer(name,tableName,columnName,style) slicers.add(name, tableName, columnName, style)
removeSlicer(name) slicers.remove(name)
getSlicer(name) slicers.get(name)
getSlicers(tableName,columnName) slicers.all(tableName,columnName)

 The following slicer items have changed:

V9 V11
ItemSlicer(name) ItemSlicer(name,slicerData,columnName)
setData(slicerData,columnName)