UIElement.id

Get widget ID.

All UIElement may have a string as unique identifier like in HTML

  1. void id(const(char)[] identifier)
  2. const(char)[] id()
    class UIElement
    nothrow @nogc final pure
    const(char)[]
    id
    ()

Return Value

Type: const(char)[]

The widget identifier, or "" if no ID. The result is an interior slice, that is invalidated if the ID is reassigned.

Meta