Skip to content

Commit c868114

Browse files
committed
Classnames in docs
1 parent 644fe28 commit c868114

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

documentation/docs.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,37 @@ $.contextMenu({
209209
});
210210
```
211211

212+
213+
### classNames
214+
215+
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.
216+
217+
`classNames`: `object`
218+
219+
```javascript
220+
// Classname configuration to be able avoid conflicts in frameworks
221+
var options = {
222+
classNames : {
223+
224+
hover: 'hover', // Item hover
225+
disabled: 'disabled', // Item disabled
226+
visible: 'visible', // Item visible
227+
notSelectable: 'not-selectable', // Item not selectable
228+
229+
icon: 'icon', // Base icon class
230+
iconEdit: 'icon-edit',
231+
iconCut: 'icon-cut',
232+
iconCopy: 'icon-copy',
233+
iconPaste: 'icon-paste',
234+
iconDelete: 'icon-delete',
235+
iconAdd: 'icon-add',
236+
iconQuit: 'icon-quit'
237+
238+
}
239+
}
240+
```
241+
242+
212243
### animation
213244

214245
Animation properties take effect on showing and hiding the menu. Duration specifies the duration of the animation in milliseconds. `show` and `hide` specify [jQuery methods](http://api.jquery.com/category/effects/) to show and hide elements.

0 commit comments

Comments
 (0)