optionskendo.drawing.OptionsStore
The configuration options of the gradient.
Example
<div id="surface"></div>
<script>
var draw = kendo.drawing;
var geom = kendo.geometry;
var linearGradient = new draw.LinearGradient({
stops: [
{ offset: 0, color: "#ff0080", opacity: 1 },
{ offset: 1, color: "#8000ff", opacity: 1 }
]
});
// Access the options field
console.log("Gradient options:", linearGradient.options);
console.log("Options type:", typeof linearGradient.options);
var surface = draw.Surface.create($("#surface"));
var rect = new draw.Rect(new geom.Rect([10, 10], [100, 30]), {
fill: linearGradient
});
surface.draw(rect);
</script>
In this article