Ticket #612 (closed Enhancement: fixed)
Topicmaps: make the topicmap viewmodel class portable
Reported by: | jri | Owned by: | jri |
---|---|---|---|
Priority: | Major | Milestone: | Release 4.2 |
Component: | DeepaMehta Standard Distribution | Version: | 4.1.3 |
Keywords: | Cc: | dgf, Malte, joern | |
Complexity: | 3 | Area: | Application Framework / API |
Module: | deepamehta-topicmaps |
Description
... so that it can be used by 3rd party webclients.
Change History
comment:2 Changed 11 years ago by Jörg Richter
Topicmaps: make TopicmapViewmodel? portable (#612).
The class TopicmapViewmodel? can be used by a 3rd party webclient.
To do so it must pass its RESTClient instance to the TopicmapViewmodel? constructor:
var restc = new RESTClient() var topicmap = new TopicmapViewmodel(1234, {is_writable: true, customizers: []}, restc)
In your plugin's main page don't forget to load 3 scripts from the standard distro:
<script src="/de.deepamehta.webclient/script/util/rest_client.js"></script> <script src="/de.deepamehta.webclient/script/model/topic.js"></script> <script src="/de.deepamehta.topicmaps/script/topicmap_viewmodel.js"></script>
That is the DM4 Webclient and DM4 Topicmaps modules must be part of your DM installation.
Alternatively you could include these 3 scripts in your plugin.
See #612.
Note: See
TracTickets for help on using
tickets.