GC.Spread.Sheets.Slicers Namespace > ItemSlicer type : style Method |
var instance = new GC.Spread.Sheets.Slicers.ItemSlicer(name, slicerData, columnName); var returnValue; // Type: any returnValue = instance.style(value);
function style( value : any ) : any;
The style is json data, it's json schema is as follows:
{
"$schema" : "http://json-schema.org/draft-04/schema#",
"title" : "style",
"type" : "object",
"properties" : {
"wholeSlicerStyle" : {
"$ref" : "#/definitions/StyleInfo"
},
"headerStyle" : {
"$ref" : "#/definitions/StyleInfo"
},
"selectedItemWithDataStyle" : {
"$ref" : "#/definitions/StyleInfo"
},
"selectedItemWithNoDataStyle" : {
"$ref" : "#/definitions/StyleInfo"
},
"unSelectedItemWithDataStyle" : {
"$ref" : "#/definitions/StyleInfo"
},
"unSelectedItemWithNoDataStyle" : {
"$ref" : "#/definitions/StyleInfo"
},
"hoveredSelectedItemWithDataStyle" : {
"$ref" : "#/definitions/StyleInfo"
},
"hoveredSelectedItemWithNoDataStyle" : {
"$ref" : "#/definitions/StyleInfo"
},
"hoveredUnSelectedItemWithDataStyle" : {
"$ref" : "#/definitions/StyleInfo"
},
"hoveredUnSelectedItemWithNoDataStyle" : {
"$ref" : "#/definitions/StyleInfo"
}
},
"definitions" : {
"StyleInfo" : {
"type" : "object",
"properties" : {
"backColor" : {
"type" : "string"
},
"foreColor" : {
"type" : "string"
},
"font" : {
"type" : "string"
},
"borderLeft" : {
"$ref" : "#/definitions/SlicerBorder"
},
"borderTop" : {
"$ref" : "#/definitions/SlicerBorder"
},
"borderRight" : {
"$ref" : "#/definitions/SlicerBorder"
},
"borderBottom" : {
"$ref" : "#/definitions/SlicerBorder"
},
"textDecoration":{
"type" : "string"
}
}
},
"SlicerBorder":{
"type":"object",
"properties":{
"borderWidth":{
"type":"number"
},
"borderStyle":{
"type":"string"
},
"borderColor":{
"type":"string"
}
}
}
}
}