menubar

defines whether the default menubar is shown or specifies the menubar configuration

boolean|object|array menubar;

Example

webix.ui({
    view: "editor",
    value: "<p>Hello World!</p>",
    menubar: [                                                  
        // sets the "file" menu group with certain options
        {                                                       
            id: "file",                                         
            data: [{ id: "new" }, { id: "print" }],             
        },                                                      
        // sets the "edit" menu group with default options 
        {                                                       
            id: "edit",                                         
        },                                                      
    ],                                                          
    upload: "https://docs.webix.com/richtext-backend/images"
});


Default value:

false
Details

You can use the default set of menu options, render particular options, or specify some custom options. Check the related section.

As menubar is a reactive property, you can also access and alter it via the widget state:

// enabling the menubar
$$("editor").getState().menubar = true;
See also
Back to top