XUL:description
From MDC
« XUL Reference home [ Examples | Attributes | Properties | Methods | Related ]
This element is used to create a block of text. The text can be set either with the value attribute or by placing text inside the open and close description tags. The value attribute is used to set text that appears in a single line. If text appears as a child of the description, it will wrap to multiple lines. It may contain arbitrary markup, which can be styled as needed.
More information is available in the XUL tutorial.
- Properties
- accessibleType, crop, disabled, tabIndex, value
- Style classes
- header, indent, monospace, plain, small-margin
[edit] Examples
<description> This is a long section of text that is displayed. </description>
[edit] Attributes
|
Inherited from XUL element |
- crop
- Type: one of the values below
- If the label of the element is too big to fit in its given space, the text will be cropped on the side specified by the
cropattribute. An ellipsis will be used in place of the cropped text. If the box direction is reversed, the cropping is reversed.
-
start: The text will be cropped on its left side. -
end: The text will be cropped on its right side. -
left: Deprecated The text will be cropped on its left side. -
right: Deprecated The text will be cropped on its right side. -
center: The text will be cropped in the middle, showing both the start and end of the text normally. -
none: The text will be not be cropped using an ellipsis. However, the text will simply be cut off if it is too large. The side depends on the CSS text alignment.
- disabled
- Type: boolean
- Indicates whether the element is disabled or not. If this element is set to
truethe element is disabled. Disabled elements are usually drawn with grayed-out text. If the element is disabled, it does not respond to user actions, it cannot be focused, and thecommandevent will not fire.
- tabindex
- Type: integer
- The tab order of the element. The tab order is the order in which the focus is moved when the user presses the "tab" key. Elements with a higher
tabindexare later in the tab sequence.
- value
- Type: string
- The string attribute allows you to associate a data value with an element. It is not used for any specific purpose, but you can access it with a script for your own use.
[edit] Properties
|
Inherited from XUL element Inherited from DOM element |
- accessibleType
- Type: integer
- A value indicating the type of accessibility object for the element.
[edit] Methods
|
Inherited from XUL element Inherited from DOM element |
[edit] Style classes
- header
- A class used for headings. Typically, this will cause the text to appear bold.
- indent
- This class causes the text to be indented on its left side.
- monospace
- This class causes the text to be displayed in a monospace font.
- plain
- This class causes the element to be displayed with no border or margin.
- small-margin
- This class causes the text to be displayed with a smaller margin.
[edit] Related
TBD