new ItemOptions()
The RadialMenu.ItemOptions structure contains options that an item of
RadialMenu control can handle. The options include the caption, image, color and so on. One or more options can be applied to an item using the
Item.Options property.
Every option of the RadialMenu.ItemOptions type has associated a property of the Item object. For instance, the option:
caption {string}, defines the item's ex-HTML caption
is associated with the property:
Caption {string}, defines the item's ex-HTML caption
which means that the following statements are equivalent:
oItem.Options = {caption: "font"}
oItem.SetOptions({caption: "font"})
oItem.Caption = "font"
oItem.SetCaption("font")
where oItem is an object of
Item type
Members
(static) caption :string
The caption field defines the item's
ex-HTML caption. The caption is shown on the "items" portion of the control. The
subCaption field defines the item's caption (ex-HTML format, shown under the "sub-items" portion only). You can include pictures in the caption using the <img> tag. For instance, the caption "<img>logo</img>" displays the "logo" image within the item's caption. The "logo" image can be added using the exontrol.
HTMLPicture.Add method. The
image field specifies the image to be displayed on the "items" portion of the control, while the caption field specifies the caption (ex-HTML format) to be displayed on the "items" portion of the control.
The caption field is mapped to the Item.Caption property, which means that the following statements are equivalent:
oItem.Options = {caption: "font"}
oItem.SetOptions({caption: "font"})
oItem.Caption = "font"
oItem.SetCaption("font")
Type:
Example
null {null}, indicates no caption
"caption" {string}, declares a plain-caption
"<b>text</b>" {string}, displays the text in bold
"<img>logo</img>" {string}, displays the "logo" image. The image can be added using the exontrol.HTMLPicture.Add method
caption
(static) color :string
The color field specifies the item's background color displayed in the "items" portion of the control. The
subColor field specifies the item's background color in the "sub-items" portion. The
shapes field defines the shapes used by each part of the control, allowing customization of its appearance. By default, items are displayed as pie shapes, while on the sub-items layer they appear as ring arcs. No color is applied by default, so the item's background is transparent.
The color field is mapped to the Item.Color property, which means that the following statements are equivalent:
oItem.Options = {color: "red"}
oItem.SetOptions({color: "red"})
oItem.Color = "red"
oItem.SetColor("red")
Type:
Example
null {null}, indicates no color
"red" {string}, defines a red-pie
"rgb(255,0,0)" {string}, defines a red-pie
"rgba(255,0,0,0.5)" {string}, defines a 50% red-pie
color
(static) enabled :boolean
The enabled field indicates whether the item (including the root item) and all its descendent items are enabled or disabled. Setting the enabled field to false disables the item and all its descendent items, while setting it to true enables the item (if its parent is enabled) and all its descendent items. The
allowToggleExpand field defines whether the user can expand/collapse the item while it is disabled. By default, the enabled field is set to true, which means that all items are enabled by default.
The enabled field is mapped to the Item.Enabled property, which means that the following statements are equivalent:
oItem.Options = {enabled: false}
oItem.SetOptions({enabled: false})
oItem.Enabled = false
oItem.SetEnabled(false)
Type:
Example
false {boolean}, disables the item (including all its descendent items)
true {boolean}, enables the item
enabled
(static) image :string
The image field specifies the name of the image or picture the item displays ("items" section only). The image can be added using the exontrol.
HTMLPicture.Add method. You can also display a picture in the
caption field using the <img>
ex-HTML tag. The
DisplayParentType.imageAlign field specifies the alignment of the image relative to the caption (valid for the content only). The
DisplayParentType.imageSize field specifies the aspect-ratio to display the image.
The image field is mapped to the Item.Image property, which means that the following statements are equivalent:
oItem.Options = {image: "logo"}
oItem.SetOptions({image: "logo"})
oItem.Image = "logo"
oItem.SetImage("logo")
Type:
Example
null {null}, indicates no image
"logo" {string}, displays the "logo" image
image
(static) key :string
The key field specifies the key associated with the item. Specifies the key associated with the item. If no key is provided, the item's plain-caption can be used to request an item. The plain-caption includes no
ex-HTML tags, such as <b>, <fgcolor> and so on. For instance, the caption "<fgcolor red>logo</fgcolor>" has the plain-caption "logo". The key can be used to request an item using the
Root.Item(key) method.
The key field is mapped to the Item.Key property, which means that the following statements are equivalent:
oItem.Options = {key: "logo"}
oItem.SetOptions({key: "logo"})
oItem.Key = "logo"
oItem.SetKey("logo")
Type:
Example
"logo" {string}, defines the item with the giving key (logo). You can use the Root.Item("logo") method to request the item giving its key.
key
(static) parent :Item
The parent field retrieves the parent of the item. Use the Item.
Parent property to get the parent of an item. The parent of the root item is null, while the parent of any other item is an object of
Item type. The parent field is read-only. You can use the
Item.Add() method to add a child item to an item, which automatically sets the parent of the child item to the item. The
GoBack() method of the control allows you to browse back to the parent of the current browsed item, while the
Item() method allows you to request an item giving its key or caption.
Type:
- Since:
Example
The following statements are equivalent:
oItem.GetParent() {Item}, gets the parent of the item
oItem.Parent {Item}, gets the parent of the item
where oItem is an object of Item type
parent
(static) subCaption :string
The subCaption field defines the item's caption (
ex-HTML format, shown under the "sub-items" portion only). The
subImage field defines the item's image to be displayed by "sub-items" section only. The
caption field is shown on the "items" portion of the control. You can include pictures in the subCaption using the <img> tag. For instance, the subCaption "<img>logo</img>" displays the "logo" image within the item's sub-caption. The "logo" image can be added using the exontrol.
HTMLPicture.Add method. The subImage field specifies the image to be displayed on the "sub-items" portion of the control, while the subCaption field specifies the caption (ex-HTML format) to be displayed on the "sub-items" portion of the control.
The subCaption field is mapped to the Item.SubCaption property, which means that the following statements are equivalent:
oItem.Options = {subCaption: "font"}
oItem.SetOptions({subCaption: "font"})
oItem.SubCaption = "font"
oItem.SetSubCaption("font")
Type:
Example
null {null}, indicates no caption
"caption" {string}, declares a plain-caption
"<b>text</b>" {string}, displays the text in bold
"<img>logo</img>" {string}, displays the "logo" image. The image can be added using the exontrol.HTMLPicture.Add method
subCaption
(static) subColor :string
The subColor field defines the item's background color to be shown on the "sub-items" portion of the control. The
color field specifies the item's background color displayed in the "items" portion of the control. The subColor field specifies the item's background color in the "sub-items" portion. The
shapes field defines the shapes used by each part of the control, allowing customization of its appearance. By default, items are displayed as pie shapes, while on the sub-items layer they appear as ring arcs. No color is applied by default, so the item's background is transparent.
The subColor field is mapped to the Item.SubColor property, which means that the following statements are equivalent:
oItem.Options = {subColor: "red"}
oItem.SetOptions({subColor: "red"})
oItem.SubColor = "red"
oItem.SetSubColor("red")
Type:
Example
null {null}, indicates no color
"red" {string}, defines a red-pie
"rgb(255,0,0)" {string}, defines a red-pie
"rgba(255,0,0,0.5)" {string}, defines a 50% red-pie
subColor
(static) subImage :string
The subImage field defines the item's image to be displayed by "sub-items" section only. The image can be added using the exontrol.
HTMLPicture.Add method. You can also display a picture in the
subCaption field using the <img>
ex-HTML tag. The
DisplayParentType.imageAlign field specifies the alignment of the sub-image relative to the sub-caption (valid for the content only). The
DisplayParentType.imageSize field specifies the aspect-ratio to display the sub-image.
The subImage field is mapped to the Item.SubImage property, which means that the following statements are equivalent:
oItem.Options = {subImage: "logo"}
oItem.SetOptions({subImage: "logo"})
oItem.SubImage = "logo"
oItem.SetSubImage("logo")
Type:
Example
null {null}, indicates no image
"logo" {string}, displays the "logo" image
subImage
(static) visible :boolean
The visible field indicates whether the item (excepts the root item, which is always visible) and all its descendent items are visible or hidden. Setting the visible field to false hides the item and all its descendent items, while setting it to true shows the item (if its parent is visible) and all its descendent items. By default, the visible field is set to true, which means that all items are visible by default.
The visible field is mapped to the Item.Visible property, which means that the following statements are equivalent:
oItem.Options = {visible: false}
oItem.SetOptions({visible: false})
oItem.Visible = false
oItem.SetVisible(false)
Type:
Example
false {boolean}, hides the item (including all its descendent items)
true {boolean}, shows the item
visible