W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2007

[whatwg] Structured option element

From: Křištof Želechovski <giecrilj@stegny.2a.pl>
Date: Mon, 27 Aug 2007 09:13:50 +0200
Message-ID: <000a01c7e879$d4d8e6e0$4d01010a@IBM42F76C011DF>
The natural implementation of such a paradigm is using a table with a group
of radio buttons.  It seems the tool you attempt to use does not match the
task you want to perform.
Chris

-----Original Message-----
From: whatwg-bounces@lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Filip Likavcan
Sent: Saturday, August 25, 2007 7:58 PM
To: whatwg at whatwg.org
Subject: [whatwg] Structured option element

Hi,

I would like to propose "structured" <option> element. The <option>
element is now described (=displayed in select box) only by simple
text value. The problem is, that in "real" world the option acts like
object with more properties. There are many cases in which options are
described by more than one property. For example the list of URL's in
the Firefox displays for each item its URL and page title. Another
example: I'm developing e-shop backend application for sellers. Seller
can create/edit an order, manage products on stocks and generate
invoices. When the seller wants to add new product into the order, it
is important for him to know how many products are there on each
stock. Products are displayed in <select> as its options. It would be
great if I could specify multiple properties for the option and the
interface would somehow reflect it. Something like this:

<select name="products">
  <option id="1">
    <property>Product's name</property>
    <property>X</property>
    <property>Y</property>
    ...
   <property>Z</property>
  </option>
</select>

[Product's name | X | Y | Z]

Where X, Y, Z represent the numbers of products on stocks. "|"
represents a column border. Columns should be displayed as columns in
tables (covering entire width of table, able to have specified exact
width, padding, ...).

Maybe this is already covered somehow. I tried to find something in
older e-mails in this mailinglist, but I haven't found anything.

Filip "filer" Likav?an
Received on Monday, 27 August 2007 00:13:50 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:36 UTC