You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now when a presentation receives GLMPresentationUpdated it does not update its
own actions.
For example bellow is some code to see this behaviour.
When the action from the composite presentation is triggered it updates the action
from the contained presentations but not its action.
Also if there is just one presentation in the composite then, due to how a composite
with one presentation is implemented, it won't update any action.
|browser|
browser := GLMTabulator new.
browser row: #aRow.
browser transmit to: #aRow; andShow: [ :composite |
composite
title: 'Composite';
updateOn: Announcement from: [ browser announcer ];
dynamicActions: [ :list || actions |
actions := OrderedCollection new.
actions add:
((GLMGenericAction new)
action: [ :presentation :model | browser announce: Announcement];
icon: GLMUIThemeExtraIcons glamorousAdd;
title: DateAndTime now asString;
yourself).
actions
].
composite list
title: 'List 1';
updateOn: Announcement from: [ browser announcer ];
dynamicActions: [ :list || actions |
actions := OrderedCollection new.
actions add:
((GLMGenericAction new)
action: [ :presentation :model | browser announce: Announcement];
icon: GLMUIThemeExtraIcons glamorousAdd;
title: DateAndTime now asString;
yourself).
actions
].
composite list
title: 'List 2'].
browser openOn: (1 to: 10)
Reported by chisvasileandrei on 2013-02-07 15:45:30
The text was updated successfully, but these errors were encountered:
Originally reported on Google Code with ID 912
Reported by
chisvasileandrei
on 2013-02-07 15:45:30The text was updated successfully, but these errors were encountered: