You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assuming normal sidebar behavior, your angular component could implement AfterViewInit and using an @ViewChild(SemanticSidebarComponent) you could call .show().
import { Component, AfterViewInit } from "@angular/core";
import { SemanticSidebarComponent } from "ng-semantic";
@Component({/* Component data here */})
export class AppComponent
{
@ViewChild(SemanticSidebarComponent)
sidebar: SemanticSidebarComponent;
ngAfterViewInit()
{
this.sidebar.show();
}
}
Hi,
If I wanted to show a sidebar by default, what would I need to do?
Thanks
--tolga
The text was updated successfully, but these errors were encountered: