Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/onokumus/metismenu-angular

angular component for metismenu
https://github.com/onokumus/metismenu-angular

Last synced: 3 months ago
JSON representation

angular component for metismenu

Awesome Lists containing this project

README

        

# @metismenu/angular
> angular component for metismenu

## Getting started
### Install
Install with [npm](https://www.npmjs.com/):

```sh
$ npm install @metismenu/angular metismenujs
```

Install with [yarn](https://yarnpkg.com):

```sh
$ yarn add @metismenu/angular metismenujs
```

## Usage
Edit `app.module.ts` file
```js
import { MetismenuAngularModule } from "@metismenu/angular";

// import
@NgModule({
imports: [
MetismenuAngularModule,
...
]
})
```

Edit `angular.json` file

```json
"styles": [
"./node_modules/metismenujs/scss/metismenujs.scss",
"src/styles.scss"
]

```

> Use `metis-menu` selector. It can be used with a valid html tag or just as ``` ```.

```html


```
#### OR

```html

  • Item 1


  • Menu 1



  • Menu 2


  • Item 2
  • ```

    ## Properties

    #### toggle
    Type: `string (true | false)`

    Default: `true`

    For auto collapse support.

    ```html


      ...

    ```

    #### triggerElement
    Type: `css selector`

    Default: `a`

    ```html


    ...

    ```

    #### parentTrigger
    Type: `css selector`

    Default: `li`

    ```html


    ...


    ```

    #### subMenu
    Type: `css selector`

    Default: `ul`

    ```html

    ...

    ```

    ## Example Repo
    [https://github.com/onokumus/metismenu-angular-example](https://github.com/onokumus/metismenu-angular-example)

    ## Demo
    [https://onokumus.com/metismenu-angular-example/](https://onokumus.com/metismenu-angular-example/)

    ## About

    ### Related projects
    - [metismenu](https://www.npmjs.com/package/metismenu): A jQuery menu plugin | [homepage](https://github.com/onokumus/metismenu#readme "A jQuery menu plugin")
    - [metismenujs](https://www.npmjs.com/package/metismenujs): MetisMenu with Vanilla-JS | [homepage](https://github.com/onokumus/metismenujs#readme "MetisMenu with Vanilla-JS")

    ### Contributing
    Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).

    ### Author
    **Osman Nuri Okumus**
    + [GitHub Profile](https://github.com/onokumus)
    + [Twitter Profile](https://twitter.com/onokumus)
    + [LinkedIn Profile](https://linkedin.com/in/onokumus)

    ### License
    Copyright © 2020, [Osman Nuri Okumus](https://github.com/onokumus).
    Released under the [MIT License](LICENSE).

    This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.2.