I created a selector in form of Moodle 3.0 (with formlib.php in Moodle). I want to change the color of each selector. For example, I created a selector as below:
$mform->addElement('header', 'ChartOptions', get_string('ChartOptions','report_chartreport'));
$select1 = $mform->addElement('select', 'TypeofChart', get_string('SelectTypeofChart','report_chartreport'), ['column','Line']);
$mform->setDefault('TypeofChart', 'column'); //Default value
...and I want to set the 'column' option as blue and set the 'Line' option as red. Is this possible?
I searched using Google but don't see any helpful information.