@@ -63,6 +63,8 @@ DropDown.defineProperty(DropDown, "dropdownHeight", {default = 5, type = "number
6363DropDown .defineProperty (DropDown , " selectedText" , {default = " " , type = " string" })
6464--- @property dropSymbol string "\31" Indicator for dropdown state
6565DropDown .defineProperty (DropDown , " dropSymbol" , {default = " \31 " , type = " string" })
66+ --- @property undropSymbol string "\31" Indicator for dropdown state
67+ DropDown .defineProperty (DropDown , " undropSymbol" , {default = " \17 " , type = " string" })
6668
6769--- Creates a new DropDown instance
6870--- @shortDescription Creates a new DropDown instance
@@ -204,7 +206,7 @@ function DropDown:render()
204206 self .set (" height" , actualHeight )
205207 end
206208
207- self :blit (1 , 1 , text .. string.rep (" " , width - # text - 1 ) .. (isOpen and " \31 " or " \17 " ),
209+ self :blit (1 , 1 , text .. string.rep (" " , width - # text - 1 ) .. (isOpen and self . getResolved ( " dropSymbol " ) or self . getResolved ( " undropSymbol " ) ),
208210 string.rep (tHex [self .getResolved (" foreground" )], width ),
209211 string.rep (tHex [self .getResolved (" background" )], width ))
210212end
0 commit comments