Open Bug 311875 Opened 19 years ago Updated 2 years ago

richlistbox wants element like html:optgroup

Categories

(Toolkit :: UI Widgets, enhancement)

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: surkov, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4

I guess richlistbox should have element for items grouping like it do
html:select. Something like:

<richlistbox>
  <richlistitemset>
    <richlistitem>
      <label value="hello"/>
    </richlistitem>
    <richlistitem>
      <label value="hello"/>
    </richlistitem>
  </richlistitemset>
</richlistbox>

Reproducible: Always
If item group element will be added then it helps to realize xforms:select and
xforms:select1 controls for xul (bug 307627)
cc'ing doron
Depends on: 311877
OS: Windows 2000 → All
Hardware: PC → All
That is really outside the scope of richlistbox.  For XUL XForms, you could write your own binding based on the richlistbox code.
(In reply to comment #3)
> That is really outside the scope of richlistbox.  For XUL XForms, you could
> write your own binding based on the richlistbox code.
> 

Why it is outside? It is useful thing. Why xul should not have widget like html:select? XUL XForms is just example, I see the usability not only for them.
(In reply to comment #3)
>   For XUL XForms, you could
> write your own binding based on the richlistbox code.
> 

I guess the right way to support hierarchical richilistbox is to add new element like richlistgroup to xul specfication. If I'll do a supporting of such sort of richlistboxes for XForms only then it means that the code will not be resuseable. But the widget I guess it's needed.

> That is really outside the scope of richlistbox.

I guess the feauture doesn't make heavier richlistbox implementation and it doesn't cotradict with idea of richlistbox in my mind. Can you explain what exactly wrong with the enhancement?
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.