Interface GridsterOptions

Index

Properties

Properties

optional public autogenerate_sytesheet?: boolean

If true, all the CSS required to osition l widgets in their respective col umns and rows will be generated automatically and injectedt the of thed cument.You can set this to false, and write your own CSS targeting rows and cols via data - attributes like so: [data - col = "1"] { left: 10px; } Default = true

optional public avoid_overlapped_widgets?: boolean

Avoid that widgets loaded from the DOM can be overlapped. It is helpful if the positions were bad stored in the database or if there was any conflict. Default = true

optional public collision?: GridsterCollision

An object with all options for Collision class you want to overwrite. @see GridsterCollision or docs for more info.

optional public draggable?: GridsterDraggable

An object with all options for Draggable class you want to overwrite. @see GridsterDraggable or docs for more info.

optional public extra_cols?: number

Add more columns in addition to those that have been calculated. Default = 0

optional public extra_rows?: number

Add more rows in addition to those that have been calculated. Default = 0

optional public max_cols?: number

The maximum columns possible (set to null for no maximum). Default = null

optional public max_size_x?: number

The maximum number of columns that a widget can span. Default = 6

optional public min_cols?: number

The minimum required columns. Default = 1

optional public min_rows?: number

The minimum required rows. Default = 15

optional public serialize_params?: ($w: JQuery, wgd: GridsterCoords) => any

Return the data you want for each widget in the serialization.

optional public widget_base_dimensions?: Array<number>

Base widget dimensions in pixels. The first index for the width and the second for the height. Default = [400, 225]

optional public widget_margins?: Array<number>

Margin between widgets. The first index for the horizontal margin (left, right) and the second for the vertical margin (top, bottom). Default = [10, 10]

optional public widget_selector?: any

Define who will be the draggable widgets. Can be a CSS Selector String or a collection of HTMLElements. Type => string css selector Type => HTMLElement[] Default = 'li'