prevButton

sets the Previous button or changes its name

boolean|string prevButton;

Example

webix.ui({
    view: "hint",
    id: "hint",
    steps: [
        {
            el: ".div1",
            title: "Welcome to Booking App!",
            text: "Click here to check out regular flights",
            event:"click"
        },
        {
            el: ".div2",
            title: "Get Flights Info in a Click!",
            text: "Click here to take a look at all flights info",
            event:"click"
        }
    ],
    prevButton: "Back"  // the new caption of the button
});
 
// another hint
webix.ui({
    view: "hint",
    id: "hint",
    steps: [
        {
            el: ".webix_column.webix_first",
            eventEl: ".webix_table_checkbox",
            title: "Working with a datatable is easy",
            text: "You can select elements here. Check the first checkbox",
            event:"click"
 
        },
        {
            el: "button",
            title: "Pager can navigate to the previous and next page",
            text: "Click 'skip' to exit or click the prev button to start once again",
            event: "click"
        }
    ],
    prevButton: false   // the Previous button won't be rendered
});


Default value:

true
Details

By default, the label of the button is set to "Previous", if you specify a string (say "Back"), then it's going to be the new name of the button.

See also
  • API
  • Articles
  • Back to top