AdminLTEOptions not working in v2.4?
See original GitHub issueI’m using version 2.4 for setting up a simple admin panel for a client and I just wanted to customize the default collapse/expand icons, so here’s my setup:
<script>
var AdminLTEOptions = {
boxWidgetOptions: {
boxWidgetIcons: {
collapse: 'fa-chevron-up',
open: 'fa-chevron-down',
remove: 'fa-times'
}
}
};
</script>
<script src="/js/adminlte.min.js"></script>
<div class="box box-default collapsed-box">
<div class="box-header">
<h3 class="box-title">Notes</h3>
<div class="box-tools">
<a class="btn btn-box-tool" href="#">
<i class="fa fa-plus"></i> Add
</a>
<button type="button" class="btn btn-box-tool" data-widget="collapse">
<i class="fa fa-chevron-down"></i>
</button>
</div>
</div>
...
</div>
The expand button above works, but the icon that’s changing is the “plus” one. I’m assuming the AdminLTEOption
var is not working anymore like in previous versions?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:7 (1 by maintainers)
Top Results From Across the Web
AdminLTE 2 | Documentation
AdminLTE is a popular open source WebApp template for admin dashboards and control panels. It is a responsive HTML template that is based...
Read more >Layout | AdminLTE 3 Documentation
AdminLTE 3.0 provides a set of options to apply to your main layout. Each one of these classes can be added to the...
Read more >Layout | AdminLTE v3 Documentation
AdminLTE 3.1 provides a set of options to apply to your main layout. Each one of these classes can be added to the...
Read more >Customizing and Downsizing AdminLTE to Match Your Business
Thus, very simply and effectively reducing the loading time for your app. Conclusion. In this tutorial we learned how to use LESS variables...
Read more >AdminLTE 2 | Dashboard
Is this template really for free? That's unbelievable! ... You better believe it! ... Working with AdminLTE on a great new app! Wanna...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
AdminLTEOptions was removed with v2.4, you can now set simply data attributes to change options. I look over the documentation to display all new options and remove the AdminLTEOptions part.
as of version 2.4.12
AdminLTEOptions
is still listed in the documentation, but nowhere in the source. so it seems not to be in use at all.