File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ This is a webcomponent to use in HTML or more complex web projects.
10
10
If the dependency is up set properly (instructions will follow), the component can be used like this:
11
11
12
12
``` html
13
+ <head >
14
+ ...
15
+ <!-- use the code !-->
16
+ <script src =" https://cdn.jsdelivr.net/npm/@kit-data-manager/mapping-service-input@latest/dist/com_mapping-service-input.es.js" ></script >
17
+ </head >
13
18
<body >
14
19
<!-- use the component !-->
15
20
<mapping-input base-url =" http://localhost:8090/" id =" input-component" ></mapping-input >
@@ -21,5 +26,23 @@ If the dependency is up set properly (instructions will follow), the component c
21
26
- ` base-url ` : string, base-url to your Mapping Service instance
22
27
23
28
29
+ ## Methods
30
+ - ` executeMapping(true) ` : To trigger the mapping process, you can include the following HTML code in your project:
31
+ (true in the method argument will trigger mapping + download of the result)
32
+
33
+ ``` html
34
+ ...
35
+ <!-- use the method !-->
36
+
37
+ `<div class =" ui center aligned grid" >
38
+ <button type =" submit" class =" ui primary button" id =" submit" onclick ="
39
+ var component = document.getElementById('input-component');
40
+ component.executeMapping(true)" >Map document
41
+ </button >
42
+ </div >`
43
+
44
+ ```
45
+
46
+
24
47
25
48
You can’t perform that action at this time.
0 commit comments