\ColorField
Class ColorField
Synopsis
class ColorField
extends TextField
{
- // members
- private static string $primary_color = '#3f51b5';
- private static string $secondary_color = '#ff4081';
- private static array $colors = ;
- // methods
- public void __construct()
- public HTMLText Field()
- public bool validate()
- protected string getTextColor()
Hierarchy
Extends
- TextField
Members
private
- $colors — array
- $primary_color — string
- $secondary_color — string
Methods
protected
- getTextColor() — Set the colour to be white or black depending on the shade of the background colour of the Field.