question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AdminLTEOptions not working in v2.4?

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
REJackcommented, Jun 11, 2019

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.

0reactions
h4de5commented, Jun 11, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found