Skip to content

Commit

Permalink
proper export constants
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Mar 30, 2020
1 parent d5d35c7 commit 063d51f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
}
const lineup = LineUpJS.asTaggle(document.querySelector('article div'), arr);

lineup.on('dialogOpened', (dialog) => {
lineup.on(LineUpJS.Taggle.EVENT_DIALOG_OPENED, (dialog) => {
console.log('dialog opened', dialog);
});

lineup.on('dialogClosed', (dialog, action) => {
lineup.on(LineUpJS.Taggle.EVENT_DIALOG_CLOSED, (dialog, action) => {
console.log('dialog closed', dialog, action);
});
};
Expand Down
5 changes: 5 additions & 0 deletions src/ui/LineUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import EngineRenderer from './EngineRenderer';
import SidePanel from './panel/SidePanel';

export default class LineUp extends ALineUp {
static readonly EVENT_SELECTION_CHANGED = ALineUp.EVENT_SELECTION_CHANGED;
static readonly EVENT_DIALOG_OPENED = ALineUp.EVENT_DIALOG_OPENED;
static readonly EVENT_DIALOG_CLOSED = ALineUp.EVENT_DIALOG_CLOSED;
static readonly EVENT_HIGHLIGHT_CHANGED = ALineUp.EVENT_HIGHLIGHT_CHANGED;

private readonly renderer: EngineRenderer | null;
private readonly panel: SidePanel | null;

Expand Down
5 changes: 5 additions & 0 deletions src/ui/taggle/Taggle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ import {spaceFillingRule} from './rules';
import TaggleRenderer from './TaggleRenderer';

export default class Taggle extends ALineUp {
static readonly EVENT_SELECTION_CHANGED = ALineUp.EVENT_SELECTION_CHANGED;
static readonly EVENT_DIALOG_OPENED = ALineUp.EVENT_DIALOG_OPENED;
static readonly EVENT_DIALOG_CLOSED = ALineUp.EVENT_DIALOG_CLOSED;
static readonly EVENT_HIGHLIGHT_CHANGED = ALineUp.EVENT_HIGHLIGHT_CHANGED;

private readonly spaceFilling: HTMLElement | null;
private readonly renderer: TaggleRenderer | null;
private readonly panel: SidePanel | null;
Expand Down

0 comments on commit 063d51f

Please sign in to comment.