如何在Angular2中实现可折叠边栏? [英] How to implement Collapsible side bar in Angular2?

查看:65
本文介绍了如何在Angular2中实现可折叠边栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习angular2,并希望实现可折叠的侧边栏,类似于 https://almsaeedstudio .com/themes/AdminLTE/index2.html ,在Angular 2中?我尝试查找示例,但找不到任何示例.您可以为此提供示例或文档吗?

I'm learning angular2 and looking to implement a collapsible sidebar, similar to https://almsaeedstudio.com/themes/AdminLTE/index2.html, in Angular 2? I tried looking up examples but couldn't find any. Can you provide examples or documentation for it?

推荐答案

您可以使用ng2-bootstrap:

You could use ng2-bootstrap:

https://valor-software.com/ng2-bootstrap/#/手风琴

您还可以在源代码中检查其实现方式:

You can also check in the source code how it's implemented:

https://github.com/valor-software/ng2-bootstrap/tree/development/components/accordion

这篇关于如何在Angular2中实现可折叠边栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆