A single cell of a listbox. By default it only contains text but iconic and checkbox listcells are also available.
(example needed)
cropcrop attribute. An ellipsis will be used in place of the cropped text. If the box direction is reversed, the cropping is reversed.startendleftrightcenternonenone and the displayed text is larger than this maximum width, you may be able to use the max-width CSS property (or the maxwidth attribute) to override this size. For example, for a menuitem in a menu you can add the following CSS rule when you want to use the value none:menupopup > menuitem, menupopup > menu { max-width: none; }
disabledcommand event will not fire. In the case of form elements, it will not be submitted. Do not set the attribute to true, as this will suggest you can set it to false to enable the element again, which is not the case.
disabled attribute is allowed only for form controls. Using it with an anchor tag (an <a> link) will have no effect.disabled property which, except for menus and menuitems, is normally preferred to use of the attribute, as it may need to update additional state.type| Inherited Properties |
listcell-iconicimage attribute. Note that both an image and a label are added when this style is set. The label will take up extra space even when no label text is set. If it is desired to center the image, use CSS to hide the label.If you need to right-align a cell's contents, you can do so like this:
cell = document.createElement("listcell");
cell.setAttribute("label", "This is the cell's label");
cell.setAttribute("style", "text-align:right");
listbox, listcol, listcols, listhead, listheader, listitem