Style

This section is regarding Methods and Properties available in style object of the Inputfields element.


Examples:
    stockChart.rangeSelector.inputFields.style.get(“backgroundColor”);
    stockChart.rangeSelector.inputFields.style.set(“borderColor”, “red”);
    stockChart.rangeSelector.inputFields.style.get(“fontSize”);

Note:
  • You can refer to Style Element for complete list of properties available.
  • StockChart should be rendered before you can access style & its methods / properties.

Methods in Style

Method Description Example
get(String propertyName) Returns the specified property of inputFields style. stockChart.rangeSelector.inputFields.style.get(“width”);
set(String propertyName, Mixed value [,Boolean updateChart = true]) Sets the specified property of inputFields style & optionally updates (default) the StockChart. stockChart.rangeSelector.inputFields.style.set(“fontColor”, “blue”);

Writable Properties in Style:

All Style options become available as properties after StockChart is rendered. You can access them either via get method or dot notation. But you can change/set those values only via set method.

Please refer to Style Element for complete list of properties available.




Try it Yourself by Editing the Code below.


  Also See:    



If you have any questions, please feel free to ask in our forums.Ask Question