Skip to content

Struct ui::Select

zaun_client::ui::Select · Struct

pub struct Select(…)

A select menu.

pub fn strings<impl Into<String>>(custom_id: impl Into<String>, options: &[(&str, &str)]) -> Self

Choices of (label, value).

pub fn entities<impl Into<String>>(kind: EntityKind, custom_id: impl Into<String>) -> Self

Members, roles or channels.

pub fn placeholder<impl Into<String>>(self, text: impl Into<String>) -> Self

The text shown before a choice.

pub fn range(self, min: u32, max: u32) -> Self

How many may be chosen.

pub fn build(self) -> Component

The component.

Clone, Debug, Eq, PartialEq, StructuralPartialEq

Full rustdoc page