Ngx-admin: HI my requirement is on default page loads menu-sidebar compact view not on expand view ? can anybody help out .

Created on 27 Sep 2018  路  2Comments  路  Source: akveo/ngx-admin

Issue type

I'm submitting a ... (check one with "x")

  • [ ] bug report
  • [x] feature request
  • [ ] question about the decisions made in the repository

Issue description

Current behavior:

Expected behavior:

Steps to reproduce:

Related code:

insert short code snippets here

Other information:

npm, node, OS, Browser

<!--
Node, npm: `node --version` and `npm --version`
OS: Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
Browser: Chrome/Safari/Firefox/etc?
-->

Angular, Nebular

<!--
Check your `package-lock.json` or locate a `package.json` in the `node_modules` folder.
-->

Most helpful comment

@siddu177

In sample.layout.ts

tag="menu-sidebar"
responsive
state="compacted" \\\ADD THIS LINE
[end]="sidebar.id === 'end'">

All 2 comments

@siddu177

In sample.layout.ts

tag="menu-sidebar"
responsive
state="compacted" \\\ADD THIS LINE
[end]="sidebar.id === 'end'">

Hi @siddu177. Answer above is correct, you need to set nb-sidebar's state. Like this: <nb-sidebar state="compacted"></nb-sidebar>
You can find all configuration options for any nebular component at the docs.

Thanks for support @Prefix1802!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kalaijagdai picture Kalaijagdai  路  4Comments

queirozfcom picture queirozfcom  路  4Comments

burtonator picture burtonator  路  3Comments

AZm1n picture AZm1n  路  4Comments

tal-shahar picture tal-shahar  路  3Comments