Skip to content

Conversation

@bbrala
Copy link
Member

@bbrala bbrala commented Sep 20, 2015

Added option for defining classnames. The default classnames will change soon so there will be no conflicts anymore with bootstrap and such. To give people who fixed this in their own CSS a chance to easily change it back i added the options for the classnames.

(object) options.classNames
Specifies the base class names of the contextmenu elements. This can be used to change the class names of some classes that might conflict with frameworks like Bootstrap.

// Classname configuration to be able avoid conflicts in frameworks
classNames : {

    hover:          'hover',          // Item hover
    disabled:       'disabled',       // Item disabled
    visible:        'visible',        // Item visible
    notSelectable:  'not-selectable', // Item not selectable

    icon:           'icon',           // Base icon class
    iconEdit:       'icon-edit',
    iconCut:        'icon-cut',
    iconCopy:       'icon-copy',
    iconPaste:      'icon-paste',
    iconDelete:     'icon-delete',
    iconAdd:        'icon-add',
    iconQuit:       'icon-quit'

}

…ssnames

Conflicts:
	dist/jquery.contextMenu.js
	dist/jquery.contextMenu.min.js
	dist/jquery.contextMenu.min.js.map
…shoudl at least enable people to adjust the used classnames to avoid conflicts. Not sure it this will make it yet.
bbrala added a commit that referenced this pull request Sep 20, 2015
@bbrala bbrala merged commit 6c38e9f into master Sep 20, 2015
@bbrala bbrala deleted the feature-dynamic-classnames branch October 28, 2015 15:05
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