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

refactor: RadialMenu.js, function.prototype -> class && polishing && bugfixing #4

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

j3nda
Copy link

@j3nda j3nda commented Jul 9, 2023

i want to re-use this for my radio23 project, so i needed to make it more cleaner than it was. and here are changes, which im using inc.

j3nda added 16 commits July 7, 2023 17:04
=
RadialMenu.defaultValues: {
	ui: {
		classes: {
			menuContainer: "menuHolder", // whole radial-menu container, created dynamically!
			menu: "menu",
			menuCreate: "menu inner", // main menu [{menuCreate} inner]
			menuCreateNested: "menu outer", // nested menu [{menuCreate} outer]
			itemSelected: "selected", // item, which is [selected]
			itemIcon: "icons", // item's icon
			itemSector: "sector", // item, which is active
			itemDummy: "dummy", // item, which is not active
			buttonCenter: "center", // button (close, back) ~ centered!
		},
		icons: {
			back: {title: "Back", icon: "#return"},
			close: {title: "Close", icon: "#close"},
		}
	}
}
=
menu.js:
var menuItems = [
...
    {
        id   : 'drive',
        title: 'Drive',
        icon: '#drive',
        selected: true
    },
...
]
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.

1 participant