gxp question

11 views
Skip to first unread message

Ivan Willig

unread,
Apr 5, 2013, 2:10:59 PM4/5/13
to j...@opengeo.org
Hey team,

I am trying to figure out how to add a toolBar object to a component and realized that i don't really understand what the actionTarget property does.

In GeoExplorer's configuration https://github.com/opengeo/geonode/blob/mapstory/src/geonode-client/app/static/script/app/GeoExplorer.js#L348

You can see that a lot of these gxp tools have an actionTarget. I need to put a generic ext.js tool bar in that same component.  What the best way of doing that? Also, is there a place where this stuff gets wired up, I feel like I don't really understand whats going on.

Lastly does this question make sense and am I doing it wrong?


Thanks.

--
Ivan Willig
OpenGeo - http://opengeo.org

Ivan Willig

unread,
Apr 5, 2013, 2:17:22 PM4/5/13
to j...@opengeo.org

Ivan Willig

unread,
Apr 5, 2013, 3:04:25 PM4/5/13
to j...@opengeo.org
I kind of figure it out.... Will share when I have a working solution.

Andreas Hocevar

unread,
Apr 6, 2013, 3:26:55 AM4/6/13
to j...@opengeo.org
Hey Ivan,

the actionTarget is just a component id of an Ext component (usually a
toolbar) that you have created somewhere, and the action (usually a
button) will be added to that toolbar.

If you have a plugin that creates a whole toolbar (which I would not
recommend, but I know there is the MapStory TimeSlider), you will want
to use outputTarget to configure where that toolbar goes. But it works
the same: a component id of an Ext component (in this case likely a
Container or Panel) that you want to add the output of the plugin (in
this case a toolbar) to.

Makes sense?
Andreas.
> --
> --
> http://groups.google.com/a/opengeo.org/group/js
>
>
>



--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

Ivan Willig

unread,
Apr 8, 2013, 10:46:31 AM4/8/13
to j...@opengeo.org
Yes. 

I think so.

Ivan Willig

unread,
Apr 8, 2013, 3:12:57 PM4/8/13
to j...@opengeo.org
Reply all
Reply to author
Forward
0 new messages