Skip to content

Add logic to parse data attributes on treeview plugin #5859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 22, 2025

Conversation

dfsmania
Copy link
Contributor

Add changes on src/ts/treeview.ts file to parse next data attributes in order to configure the treeview plugin from HTML markup.

  • data-accordion
  • data-animation-speed

The data-accordion was already used in the source code, see file src/html/components/dashboard/_sidenav.astro at line 35, but it was never parsed by the plugin:

<ul
  class="nav sidebar-menu flex-column"
  data-lte-toggle="treeview"
  role="menu"
  data-accordion="false"
>

As a sidenote, what the status of this package @REJack @danny007in , are you guys still working on it? I'm curious because I'm working on an integration of AdminLTE v4 for Laravel and I need to know what to expect on the future around this package...

Copy link

netlify bot commented Jun 19, 2025

Deploy Preview for adminlte-v4 ready!

Name Link
🔨 Latest commit 7b77a56
🔍 Latest deploy log https://app.netlify.com/projects/adminlte-v4/deploys/68547c9fd9f4aa0008b04f0f
😎 Deploy Preview https://deploy-preview-5859--adminlte-v4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@puikinsh puikinsh merged commit e634d5e into ColorlibHQ:master Jun 22, 2025
10 checks passed
@dfsmania dfsmania deleted the parse-data-attr-on-treeview branch June 23, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants