Cannot update GLMTabulator containing list with Separators

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot update GLMTabulator containing list with Separators

Peter Uhnák
Hi,

apparently it is not possible to update a GLMTabulator if it contains a list pane with separators. Tested in P6 & P7.

```
data := { { #one. #two. #three } asOrderedCollection. { #alpha. #beta } asOrderedCollection } asOrderedCollection.

browser := GLMTabulator new.

browser column: #list; column: #actions.

browser transmit to: #list; andShow: [ :a |
a fastList
withSeparators
].

browser transmit to: #actions; andShow: [ :a |
a actionList
act: [ :actionList | data last add: #dynamic. browser update ] entitled: 'Add Item';
act: [ :actionList | data last remove: #dynamic ifAbsent: [  ]. browser update ] entitled: 'Remove Item'.
].

browser openOn: data.
```

Inline image 1

Thanks,
Peter

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Cannot update GLMTabulator containing list with Separators

Andrei Chis
Hi,

Indeed, seems that #resetElements is missing in GLMFastListOutlineDataSource. I added in in the latest version of Moose/FastTable for Pharo 6.1.

Cheers,
Andrei


On Wed, Oct 18, 2017 at 12:05 PM, Peter Uhnák <[hidden email]> wrote:
Hi,

apparently it is not possible to update a GLMTabulator if it contains a list pane with separators. Tested in P6 & P7.

```
data := { { #one. #two. #three } asOrderedCollection. { #alpha. #beta } asOrderedCollection } asOrderedCollection.

browser := GLMTabulator new.

browser column: #list; column: #actions.

browser transmit to: #list; andShow: [ :a |
a fastList
withSeparators
].

browser transmit to: #actions; andShow: [ :a |
a actionList
act: [ :actionList | data last add: #dynamic. browser update ] entitled: 'Add Item';
act: [ :actionList | data last remove: #dynamic ifAbsent: [  ]. browser update ] entitled: 'Remove Item'.
].

browser openOn: data.
```

Inline image 1

Thanks,
Peter

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev