main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
380 bytes
|
Line | |
---|
1 | import { StringElement } from 'minim';
|
---|
2 | class Annotation extends StringElement {
|
---|
3 | // classes: warning | error
|
---|
4 |
|
---|
5 | constructor(content, meta, attributes) {
|
---|
6 | super(content, meta, attributes);
|
---|
7 | this.element = 'annotation';
|
---|
8 | }
|
---|
9 | get code() {
|
---|
10 | return this.attributes.get('code');
|
---|
11 | }
|
---|
12 | set code(value) {
|
---|
13 | this.attributes.set('code', value);
|
---|
14 | }
|
---|
15 | }
|
---|
16 | export default Annotation; |
---|
Note:
See
TracBrowser
for help on using the repository browser.