Skip to main content

system.kanoa.dashboard.getBreakpoints

Description

Gets breakpoints based on the passed in parameters

Syntax

getBreakpoints(paramsDict, userId)

Parameters:
  • paramsDict (dict)
  • userId (int)

  • Returns:
  • dataset
  • Dictionary

    ParameterTypeRequiredNotes
    breakpointIdint
    breakpointNamestring
    enabledboolean

    Code Examples

    # Example usage
    data = system.kanoa.dashboard.getBreakpoints({'enabled':True})
    print system.kanoa.utilities.convertDatasetToJSON(data)
    > [
    {
    'rowGap': 5,
    'columnCount': 5,
    'enabled': True,
    'breakpointId': 3,
    'changedDate': None,
    'breakpointName': u'Mobile',
    'createdDate': Mon Jul 08 18:33:35 UTC 2024,
    'size': 590,
    'columnGap': 5,
    'createdBy': 39,
    'changedBy': None,
    'columnWidth': None,
    'rowCount': 30,
    'breakpointDescription': None,
    'rowHeight': 50
    },
    {
    'rowGap': 5,
    'columnCount': 10,
    'enabled': True,
    'breakpointId': 1,
    'changedDate': None,
    'breakpointName': u'Tablet',
    'createdDate': Mon Jul 08 18:33:35 UTC 2024,
    'size': 960,
    'columnGap': 5,
    'createdBy': 39,
    'changedBy': None,
    'columnWidth': None,
    'rowCount': 25,
    'breakpointDescription': None,
    'rowHeight': 50
    },
    {
    'rowGap': 5,
    'columnCount': 20,
    'enabled': True,
    'breakpointId': 2,
    'changedDate': None,
    'breakpointName': u'Desktop',
    'createdDate': Mon Jul 08 18:33:35 UTC 2024,
    'size': None,
    'columnGap': 5,
    'createdBy': 39,
    'changedBy': None,
    'columnWidth': None,
    'rowCount': 20,
    'breakpointDescription': None,
    'rowHeight': None
    }
    ]
    >