none
Argument of type '10' is not assignable to parameter of type 'CanvasColumnFactor'. RRS feed

  • Question

  • Why we cannot create a page section with the configuration of two columns with the first one filling the 2 of the 12 column of the layout and the second column filling 10 of the 12 column of layout.

     

    When i use the code bellow:

    const page = await ClientsidePageFromFile(sp.web.getFileByServerRelativeUrl("/sites/" + b[1] + "/SitePages/Home1.aspx"));
    let section = page.addSection();
    let leftColumn = section.addColumn(4);
    let rightColumn = section.addColumn(10);

    I get the message error "Argument of type '10' is not assignable to parameter of type 'CanvasColumnFactor'.".
    Saturday, September 11, 2021 5:30 PM