[qooxdoo-devel] Plugging custom code in the loader

2010-04-16 Thread Jean-Noël Rivasseau
Hi, What would be the best way to add some custom code in the loader? Actually I just need to add a few lines of JS code before the loading of Qooxdoo begins. So far the only way I have found is using a custom template for the loader. However this has the disadvantage that I now have to maintain

Re: [qooxdoo-devel] qooxdoo weirdness using 'flex' sizing?

2010-04-16 Thread Ken MacDonald
I seem to have suggested the fix myself; I set all 4 controls (List, Table, and 2 buttons in a second column) with minHeight = 120; height = 2000; and {flex: 1} And they all shrink/grow proportionally with each other. Cool. Ken On Fri, Apr 16, 2010 at 9:59 AM, Ken MacDonald wrote: > I've got an

[qooxdoo-devel] qooxdoo weirdness using 'flex' sizing?

2010-04-16 Thread Ken MacDonald
I've got an interesting problem here - I've created a column in a Composite container, and I'm populating it with some things. There's a header and footer for the column that are fixed size and they seem to be working fine; but I'm trying to get the table.Table and form.List in the middle to be the

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread alexander.volik
Thanks a lot, Martin!!! -- View this message in context: http://n2.nabble.com/List-with-checkboxes-handle-events-tp4911878p4912902.html Sent from the qooxdoo mailing list archive at Nabble.com. -- Download Intel® Paral

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread alexander.volik
But arrayWrapper.getItem(0) for example get such data: {"$$hash":"t7","$$user_name":"Keyword 1","$$user_chosen":false,"__userData":{"idBubble":"changeBubble|bubble|nb"}} not {"name":"Keyword 1", "chosen":false} -- View this message in context: http://n2.nabble.com/List-with-checkboxes-handle-e

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread alexander.volik
MartinWittemann wrote: > > If yes, you can use the changeBubble event [2] of the model to get every > change in the model. > I have tried this method but the checkbox clicking does not fire the changeBubble event... It fires only after pushing/removing items to model. Also I don't know how can

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread alexander.volik
MartinWittemann wrote: > > You have to tell the model cration to add the bubble events: > http://demo.qooxdoo.org/current/apiviewer/#qx.data.marshal.Json~createModel > The second parameter has to be set to true. > Thanks, it works! MartinWittemann wrote: > > > alexander.volik wrote: >> >> A

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread MartinWittemann
Hi, sure, you get a qooxdoo object containing your keys as properties. The whole rawdata is wrapped in qooxdoo objects (models). arrayWrapper.getItem(0).getName() will return the name for example. Best, Martin -- View this message in context: http://n2.nabble.com/List-with-checkboxes-handle-e

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread MartinWittemann
Hi, alexander.volik wrote: > > I have a qooxdoo object after model creation > var arrayWrapper = qx.data.marshal.Json.createModel(rawData, true); > And i did not find the method to convert this object to array... > The arrayWrapper itself is the data array and can be accessed with getItem for e

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread MartinWittemann
Hello, alexander.volik wrote: > > I have tried this method but the checkbox clicking does not fire the > changeBubble event... It fires only after pushing/removing items to model. > You have to tell the model cration to add the bubble events: http://demo.qooxdoo.org/current/apiviewer/#qx.data.m

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread MartinWittemann
Hello Alexander, you have some options do get that working. I guess you have bound the selection of the CheckBox's to the model like in the online demo [1]? If yes, you can use the changeBubble event [2] of the model to get every change in the model. Within the data of the event is all informatio

Re: [qooxdoo-devel] Table sorting removes selection

2010-04-16 Thread Fritz Zaucker
The contrib SmartTable has such a feature. Cheers, Fritz On Fri, 16 Apr 2010, smisonl...@googlemail.com wrote: > Hello, > > when i click on the tableheaders to sort the table, the selection is > removed. is their any feature planed to hold the selection? > > ---

[qooxdoo-devel] Table sorting removes selection

2010-04-16 Thread smisonl...@googlemail.com
Hello, when i click on the tableheaders to sort the table, the selection is removed. is their any feature planed to hold the selection? -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. S

Re: [qooxdoo-devel] Table Selection Model

2010-04-16 Thread Fritz Zaucker
You need to use setSelectionMode() instead of setSelectionModel() The complete call would be table.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.MULTIPLE_INTERVAL_SELECTION_TOGGLE); Cheers, Fritz On Fri, 16 Apr 2010, smisonl...@googlemail.com wrote: > i try

[qooxdoo-devel] Table Selection Model

2010-04-16 Thread smisonl...@googlemail.com
i try to change the selectionmodel on a table to select and deselct by clicking and not press STRG too table1.setSelectionModel("MULTIPLE_INTERVAL_SELECTION_TOGGLE"); table1.setSelectionModel(qx.ui.table.selection.Model.MULTIPLE_INTERVAL_SELECTION_TOGGLE); table1.setSelectionModel(5); but th

Re: [qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread Fritz Zaucker
You could attach a listener to the event being generated when the checkbox is changed. Look for addListener() in the API and for the event in the checkbox API (I would guess changeSelection, but I am not sure). Cheers, Fritz On Fri, 16 Apr 2010, alexander.volik wrote: > > I have extend

[qooxdoo-devel] List with checkboxes, handle events

2010-04-16 Thread alexander.volik
I have extended list (with checkbox and label in each line). The list was defined in such way var list = new qx.ui.form.List(); locationKeywordsTab.add(list); var rawData = [{"name":"Keyword 1", "selected":true}, {"name":"Keyword 2", "selected": false}]; var arrayWrapper = qx.data.marshal

Re: [qooxdoo-devel] wigdet.getValue

2010-04-16 Thread Olivier ZORO-BI
Daniel Wagner wrote: > Hi, > > > qx.ui.form.SelectBox.getSelection()[i] > > That's the way to do it. The SelectBox has a single selection, so i > should always be 0. This will return the ListItem, so you'll have to > call getModel() on it to get the user-defined value. > > > Regards, > Daniel > >