Skip to content

Commit

Permalink
fix(menu): fix api
Browse files Browse the repository at this point in the history
  • Loading branch information
alyleui committed Oct 27, 2018
1 parent c6dc4d5 commit d8f1ae5
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/lib/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@ import { LyOverlay, OverlayFromTemplateRef, LyTheme2, shadowBuilder } from '@aly

const STYLE_PRIORITY = -1;

export type position = 'left' | 'right' | 'top' | 'bottom' | 'center' | 'middle';
export class Origin {
horizontal: position;
vertical: position;
}

const menuStyles = theme => ({
const STYLES = theme => ({
root: {
background: theme.background.primary.default,
borderRadius: '2px',
Expand Down Expand Up @@ -64,8 +58,15 @@ const menuStyles = theme => ({
exportAs: 'lyMenu'
})
export class LyMenu {
classes = this.theme.addStyleSheet(menuStyles, STYLE_PRIORITY);
/** Destroy menu */
/**
* styles
* @ignore
*/
classes = this.theme.addStyleSheet(STYLES, STYLE_PRIORITY);
/**
* Destroy menu
* @ignore
*/
destroy: () => void;
@Input() ref: LyMenuTriggerFor;
@HostBinding('@menuEnter') menuEnter;
Expand Down

0 comments on commit d8f1ae5

Please sign in to comment.