Multiple Sheets, JavaScript Programming Example of Multiple Sheets in SpreadSheet

JavaScript Programming Example of Multiple Sheets in SpreadSheet

If you want to add several sheets into a SpreadSheet, use the coding sample below. Note that you can download this piece of code for free. Don't miss the opportunity to use the programming examples by Webix for your web development projects.

JS Code

webix.ready(function(){
  webix.ui({
    view:"spreadsheet",
    id:"sheet",
    toolbar: "full",
    data:{
      sheets: [
        {
          name: "Tab 1",
          content:{
            data:[
              [1,1,"Page 1"]
            ]
          }
        },
        {
          name: "Tab 2",
          content:{
            data:[
              [1,1,"Page 2"]
            ]
          }
        },
        {
          name: "Tab 3",
          content:{
            data:[
              [1,1,"Page 3"]
            ]
          }
        }
      ]
    },
    bottombar:true
  });
});