open

gets/sets the status of whether the dropdown is open or closed

Examples



const dropdown = $.makeDropdown($.w/2, $.h/2, 100, [
    "Option A",
    "Option B",
    "Option C"
]);

dropdown.open=true;
function update() {
    dropdown.draw();
    $.text.print(dropdown.x, dropdown.y-25, "Open:"+dropdown.open);
}