Start of Content Area

Object documentation ToggleLink API  Locate the document in its SAP Library structure

A ToggleLink is a link that can display two different states. They are displayed with a triangle symbol:

checked = false

This graphic is explained in the accompanying text

checked = true

This graphic is explained in the accompanying text

Description of UI Element Properties

·        checked
Specifies whether or not the ToggleLink is toggled.

·        text
Describes the text to be displayed.

·        textDirection
Specifies the text direction and allows you to use a MenuActionItem element for texts in languages which require a specific text direction.
The textDirection property can be filled with the following values and is represented by the enumeration type WDTextDirection.

inherit

The text direction is inherited from the parent element. Therefore, the text direction is identical to the one of the parent element.

ltr

The text runs from left to right.

rtl

The text runs from right to left.

The default value for this property is inherit.

Overview of Inherited and Additional Properties

Name

Interface

Type

Initial Value

Bindable

Value Required

checked

IWDAbstractToggle

boolean

false

bindable_mandatory

No

enabled

IWDUIElement

boolean

true

bindable

No

text

IWDToggleLink

String

 

bindable

No

textDirection

IWDAbstractToggle

WDTextDirection

inherit

bindable

No

tooltip

IWDUIElement

String

 

bindable

No

visible

IWDUIElement

WDVisibility

visible

bindable

No

Events

The onToggle event is executed when the ToggleLink is toggled. The parameter is the new status of the element.

Name

Class

Parameter

onToggle

IWDAbstractToggle

(boolean checked)

 

 

End of Content Area