Re: 2 UI comments on the Alpha Sneak Preview
Christian Stocker <[email protected]> Thu, 25 Sep 2003 11:15:21 +0200
| Newsgroups | gmane.editors.bitflux.devel |
|---|---|
| Message-ID | <[email protected]> |
On 9/23/03 4:19 PM, Christian Stocker wrote:
>> 2. Modal Dialogs
>> The dialogs used to create tables, links, or insert images are pretty
>> poor (are they JS confirm()ations ?).
>
>
> They are f***ing ugly ;) And it's even worse on OSX as they stupidly
> slide-in in a too slow speed...
>
> I completely agree with you. I just didn't write a widget until now to
> get them nicer and easy configurable. I first just needed the
> functionality.
Ok, it's implemented now, meaning we have now a modalbox widget, which
is useable ,) Table/Image/Link dialogs are already using it.
a simple example:
var mod = mozilla.getWidgetModalBox("Create Table", callbackfunction);
mod.addItem("rows",2,"textfield","number of rows");
mod.addItem("cols",2,"textfield","number of cols");
mod.show(100,50, "fixed");
and you get your modalbox
It's certainly extensible. At the moment it supports textfield and
select fields (if you go to "Edit Attributes" in a table, you see it
there, the values of that select box are taken from the relax-ng file)
chregu
--
bx-editor-dev mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev