You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/docs.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -209,6 +209,37 @@ $.contextMenu({
209
209
});
210
210
```
211
211
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
+
212
243
### animation
213
244
214
245
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