get(String propertyName)

Returns the specified style property of inputFields.

Parameters:
        propertyName: Name of the property

Example: stockChart.rangeSelector.inputFields.style.get(“backgroundColor”);
Note:
  • You can refer to Style Element for complete list of properties available.
  • StockChart should be rendered before you can use get method.
  1. var stockChart = new CanvasJS.StockChart("container",
  2. {
  3. .
  4. .
  5. rangeSelector: {
  6. inputFields: {
  7. style: {
  8. .
  9. //style properties of inputFields
  10. .
  11. }
  12. .
  13. }
  14. }
  15. .
  16. .
  17. });
  18. stockChart.render();
  19.  
  20. console.log(stockChart.rangeSelector.inputFields.style.get("fontSize"));

Properties accessible via get method

Please refer to Style Element for the complete list of properties that can be accessed via get method.

Try Editing The Code

  Also See:    


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