Skip to content
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

Migration #1

Open
ThemeMetro opened this issue Jul 31, 2023 · 2 comments
Open

Migration #1

ThemeMetro opened this issue Jul 31, 2023 · 2 comments
Labels
question Further information is requested

Comments

@ThemeMetro
Copy link

Hello,

Its possible to migrate from jQuery Menu Editor 1.1.1? If yes then How?

@davicotico
Copy link
Owner

davicotico commented Aug 3, 2023

Hi @ThemeMetro. Yes, it is posible. In order to migrate, you must take into account the following points. This way, you will be able to make the necessary adaptations and replacements.

The data

The data are very similar. You need to change the attribute "title" for "tooltip"

{ 
"href":"http://home.com", // href
"icon":"fas fa-home", // icon
"text":"Home",  // text
"target": "_top",  // target (now this is optional)
"title": "My Home", // tooltip,  <=== Attribute name in Javascript Menu Editor 
"children": [] // children
}

Equivalents methods

jQuery Menu Editor Javascript Menu Editor
setData(data) setArray(data)
getString() getString()

Javascript Menu Editor is not linked to a form or input element, instead is more flexible and have these events and methods:

External plugin

The jQuery plugin "Bootstrap Icon Picker" is no longer necessary. You can choose your own icon picker; however, my new library, Vanilla Javascript Iconpicker, is currently in development stage and I will release it in the upcoming days.

I hope this has helped you. Feel free to reach out to me via Twitter

@davicotico davicotico added the question Further information is requested label Aug 3, 2023
@ThemeMetro
Copy link
Author

ThemeMetro commented Jul 23, 2024

This is conflicting with jQuery. could you please help me to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants