-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsampleModule.tsx
More file actions
27 lines (26 loc) · 872 Bytes
/
sampleModule.tsx
File metadata and controls
27 lines (26 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import * as React from 'react';
import { declareModule, ExtraJsxPlace, makeExtrajsxModule } from '../../../src/runtime/runtime';
declareModule(
makeExtrajsxModule({
manifest: {
name: '@collboard/sample-colldev-module',
title: { en: 'Hello world' },
description: {
en: 'Simple sample hello world button for Collboard.com',
},
},
place: ExtraJsxPlace.EdgeRight,
createExtraJsx() {
return (
<button
onClick={async () => {
alert(`Hello from testing of Collboard modules SDK!`);
}}
className="button button-primary button-vertical"
>
<span>🥑 Hello World!</span>
</button>
);
},
}),
);