-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
26 deletions.
There are no files selected for viewing
51 changes: 27 additions & 24 deletions
51
ngx-multi-level-push-menu/src/multi-level-push-menu/multi-level-push-menu.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,41 @@ | ||
export class MultiLevelPushMenuOptions { | ||
constructor( | ||
public collapsed?: boolean, // Initialize menu in collapsed/expanded mode | ||
public menuID?: string, // ID of <nav> element. | ||
public wrapperClass?: string, // Wrapper CSS class. | ||
public menuInactiveClass?: string, // CSS class for inactive wrappers. | ||
public menu?: MultiLevelPushMenu, // JS array of menu items (if markup not provided). | ||
public menuWidth?: string, // Wrapper width (integer, '%', 'px', 'em'). | ||
public menuHeight?: string, // Menu height (integer, '%', 'px', 'em'). | ||
public backText?: string, // Text for 'Back' menu item. | ||
public backItemClass?: string, // CSS class for back menu item. | ||
public backItemIcon?: string, // FontAvesome icon used for back menu item. | ||
public groupIcon?: string, // FontAvesome icon used for menu items contaning sub-items. | ||
public mode?: string, // Menu sliding mode?: overlap/cover. | ||
public overlapWidth?: string, // Width in px of menu wrappers overlap | ||
public preventItemClick?: boolean, // set to false if you do not need event callback functionality per item click | ||
public preventGroupItemClick?: boolean, // set to false if you do not need event callback functionality per group item click | ||
public direction?: string, // set to 'rtl' for reverse sliding direction | ||
public fullCollapse?: boolean, // set to true to fully hide base level holder when collapsed | ||
public swipe?: string // or 'touchscreen', or 'desktop', or 'none'. everything else is concidered as 'none' | ||
) {} | ||
public collapsed?: boolean, // Initialize menu in collapsed/expanded mode | ||
public menuID?: string, // ID of <nav> element. | ||
public wrapperClass?: string, // Wrapper CSS class. | ||
public menuInactiveClass?: string, // CSS class for inactive wrappers. | ||
public menu?: MultiLevelPushMenu, // JS array of menu items (if markup not provided). | ||
public menuWidth?: string, // Wrapper width (integer, '%', 'px', 'em'). | ||
public menuHeight?: string, // Menu height (integer, '%', 'px', 'em'). | ||
public backText?: string, // Text for 'Back' menu item. | ||
public backItemClass?: string, // CSS class for back menu item. | ||
public backItemIcon?: string, // FontAvesome icon used for back menu item. | ||
public groupIcon?: string, // FontAvesome icon used for menu items contaning sub-items. | ||
public mode?: string, // Menu sliding mode?: overlap/cover. | ||
public overlapWidth?: string, // Width in px of menu wrappers overlap | ||
public preventItemClick?: boolean, // set to false if you do not need event callback functionality per item click | ||
public preventGroupItemClick?: boolean, // set to false if you do not need event callback functionality per group item click | ||
public direction?: string, // set to 'rtl' for reverse sliding direction | ||
public fullCollapse?: boolean, // set to true to fully hide base level holder when collapsed | ||
public swipe?: string // or 'touchscreen', or 'desktop', or 'none'. everything else is concidered as 'none' | ||
) { } | ||
} | ||
|
||
export class MultiLevelPushMenu { | ||
constructor( | ||
public title?: string, | ||
public id?: string, | ||
public icon?: string, | ||
public title?: string, | ||
public id?: string, | ||
public icon?: string, | ||
public items?: Array<MultiLevelPushMenuItem> | ||
) { } | ||
} | ||
|
||
export class MultiLevelPushMenuItem { | ||
constructor( | ||
public name?: string, | ||
public link?: string | ||
public title?: string, | ||
public name?: string, | ||
public icon?: string, | ||
public link?: string, | ||
public items?: Array<MultiLevelPushMenuItem> | ||
) { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters