Skip to main content

system.kanoa.dashboard.addBreakpoint(breakpointInfo)

Create a new breakpoint


Parameters

breakpointInfo Dictionary

- breakpointNameStringThe name of the breakpoint
- columnCountIntegerThe number of columns for this breakpoint
- columnGapIntegerThe gap between the columns
- columnWidthIntegerThe width in px for each cell. Use None if the cells should stretch
- dashboardIdIntegerThe id of the dashboard this breakpoint is for
- descriptionStringSome information about the breakpoint
- rowCountIntegerThe number of rows for this breakpoint
- rowGapIntegerThe gap between the rows
- rowHeightIntegerThe height in px for each cell. Use None if the cells should stretch
- sizeIntegerThe max screen size for this breakpoint. Use None if for desktops

Returns

breakpointId Integer
message String None if success


Example

userId = 123
breakpointId = system.kanoa.dashboard.addBreakpoint(breakpointInfo, userId)
print(breakpointId) # Print the newly created breakpoint ID