Module Ext_menu_Menu


module Ext_menu_Menu: sig .. end
A menu object. This is the container to which you ...

A menu object. This is the container to which you may add menu items.

Menus may contain either menu items, or general Components. Menus may also contain docked items because it extends Ext.panel.Panel.

By default, non menu items are indented so that they line up with the text of menu items. clearing the icon column. To make a contained general Component left aligned configure the child Component with `indent: false.

By default, Menus are absolutely positioned, floating Components. By configuring a Menu with floating: false, a Menu may be used as a child of a Container.

Ext.create('Ext.menu.Menu', {
    width: 100,
    margin: '0 0 10 0',
    floating: false,  // usually you want this set to True (default)
    renderTo: Ext.getBody(),  // usually rendered by it's containing component
    items: [{
        text: 'regular item 1'
    },{
        text: 'regular item 2'
    },{
        text: 'regular item 3'
    }]
});

Ext.create('Ext.menu.Menu', {
    width: 100,
    plain: true,
    floating: false,  // usually you want this set to True (default)
    renderTo: Ext.getBody(),  // usually rendered by it's containing component
    items: [{
        text: 'plain item 1'
    },{
        text: 'plain item 2'
    },{
        text: 'plain item 3'
    }]
});


class type t = object .. end
class type configs = object .. end
class type events = object .. end
class type statics = object .. end
val of_configs : configs Js.t -> t Js.t
of_configs c casts a config object c to an instance of class t
val to_configs : t Js.t -> configs Js.t
to_configs o casts instance o of class t to a config object