FullCalendar Change Week View to Vertical List instead of Horizontal Table Columns

后端 未结 2 465
温柔的废话
温柔的废话 2021-01-07 05:02

Anyway to change the way the Days show in the Week View? I\'d rather see a vertical list of the vents by day instead of the horizontal table view of the days. reasoning is i

2条回答
  •  天命终不由人
    2021-01-07 05:23

    UPDATE: I expanded on the below and came up with a better solution, with labels for each day.

    Here's an updated example fiddle: http://jsfiddle.net/nomatteus/dVGN2/3/

    example screenshot


    Here's a link to my answer in action: http://jsfiddle.net/nomatteus/VSXSB/2/

    There is no way to do this without modifying the source code. However, you can make a simple edit to display the days vertically. In the BasicWeekView.js file, change

    renderBasic(1, colCnt, false);
    

    to

    renderBasic(colCnt, 1, false);
    

    For reference, the renderBasic function paramaters are rowCount, colCount, showNumbers.

    I'd recommend copying the BasicWeekView code and use it to make your own view, so you can make other modifications as necessary (and also still have access to the basic week view).

提交回复
热议问题