WXGRIDCELLCHOICEEDITOR(3erl)

wxGridCellChoiceEditor(3erl) β€” Erlang Module Definition πŸ’…

Okay bestie, welcome to the wxGridCellChoiceEditor page. It’s the Erlang module definition, and it’s literally all about a grid cell editor that lets the user pick from a list of strings. Iconic behavior, no cap. πŸŽ€


πŸ’– NAME πŸ’–

wxGridCellChoiceEditor β€” Functions for wxGridCellChoiceEditor class. That’s the name, and yes it’s a whole mouthful, but it ate. πŸ’…

✨ DESCRIPTION ✨

Grid cell editor for string data providing the user a choice from a list of strings. It’s giving β€œdropdown energy, but make it a grid cell,” and honestly? Obsessed. πŸ¦‹

See:

  • wxGridCellEditor
  • wxGridCellAutoWrapStringEditor (not implemented in wx)
  • wxGridCellBoolEditor
  • wxGridCellEnumEditor (not implemented in wx)
  • wxGridCellFloatEditor
  • wxGridCellNumberEditor
  • wxGridCellTextEditor
  • wxGridCellDateEditor (not implemented in wx)

This class is derived (and can use functions) from: wxGridCellEditor.

wxWidgets docs: wxGridCellChoiceEditor.

πŸ¦‹ DATA TYPES πŸ¦‹

One data type, and it’s right here:

wxGridCellChoiceEditor() = wx:wx_object()

πŸ‘‘ EXPORTS πŸ‘‘

Okay, the exports. These are the functions you can call, bestie β€” every signature and type stays exactly as it is. 🌈

🌸 new(Choices) -> wxGridCellChoiceEditor() 🌸

Types:

Choices = [unicode:chardata()]

Takes Choices, which is a list of unicode:chardata(). Slay. ⭐

πŸ“ new(Choices, Options :: [Option]) -> wxGridCellChoiceEditor() πŸ“

Types:

Choices = [unicode:chardata()]
Option = {allowOthers, boolean()}

Choice cell renderer ctor. This one takes Choices and Options, where each option is {allowOthers, boolean()}. 🫢

πŸ’œ setParameters(This, Params) -> ok πŸ’œ

Types:

This = wxGridCellChoiceEditor()
Params = unicode:chardata()

Parameters string format is "item1[,item2[...,itemN]]". That’s the format, exactly β€” no improvising, bestie. πŸŽ€

This method can be called before the editor is used for the first time, or later, in which case it replaces the previously specified strings with the new ones. So yes: later means the old strings get swapped out for the new ones. Periodt. ✨

🧚 destroy(This :: wxGridCellChoiceEditor()) -> ok 🧚

Destroys the object. That’s it. Bye-bye, editor πŸ’€βœ¨


Cute little footer sign-off: wxWidgets team, version wx 2.2.2.1 β€” and there’s no date line in this footer, bestie, just those two and a whole lot of grid-editor energy. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from