Skip to content

Enum.md

cfloutier edited this page Apr 27, 2024 · 3 revisions

InlineEnum.cs

This class defines a simple set of choices presented on a single line.

image

Attributes

image

  • The labels can be setup using the Labels attribute. Values should be separated using ';' chars.

the labels can alos be st in code using the labels property

Binding

The control can be bound with a KTools.EnumSetting<TEnum>. see Settings

ex :

panel.Q<InlineEnum>("enum").Bind(settings.enum_item, "Label 1;Label 2");

if labels are not the the UI will use the Enum values names

uss classes

  • the buttons uses the .toggle_button class
  • the InlineEnum used the .inline_enum class

Clone this wiki locally