Nighttime Work Session 😎
Guys... seriously... I've had quite a coding day for someone who doesn't actually code full-time professionally for a living. Lots of good progress made and it's now time to take a bit of a break. Here's another of those awesome Chill Music Lab vibes to settle us in 🙂
So Much Code...
When a normal input control is used on an interface, the code is minimal because most of the functionality is handled behind the scenes. But when we build our own UI elements from scratch, we have to account for all the different functionality ourselves. And this gets harder as we add effects like rollovers to different parts of the control, and harder still when you can't parse arguments into method/function calls in the markup, meaning you need multiple methods where one would normally suffice.
I wanted to have a stylised look to drop-down lists, and to make rollover effects for each part of the control (including the items in the list), and each of these elements needs a handful of methods to handle the different effects... basically, lots of lines of code which isn't itself difficult, but cumbersome.
So I'll be working on these things for a while yet, and that's before we look at the dynamic positioning of all these different parts of each control 🥴
Like I said... time for a break 🙂
Stay awesome,
EMH