Skip to content

Latest commit

 

History

History
3300 lines (2156 loc) · 99.3 KB

File metadata and controls

3300 lines (2156 loc) · 99.3 KB

gridstack.component

Classes

GridstackComponent

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:85

Angular component wrapper for GridStack.

This component provides Angular integration for GridStack grids, handling:

  • Grid initialization and lifecycle
  • Dynamic component creation and management
  • Event binding and emission
  • Integration with Angular change detection

Use in combination with GridstackItemComponent for individual grid items.

Example

<gridstack [options]="gridOptions" (change)="onGridChange($event)">
  <div empty-content>Drag widgets here</div>
</gridstack>

Implements

  • OnInit
  • AfterContentInit
  • OnDestroy

Accessors

options
Get Signature
get options(): GridStackOptions;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:120

Get the current running grid options

Returns

GridStackOptions

Set Signature
set options(o): void;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:112

Grid configuration options. Can be set before grid initialization or updated after grid is created.

Example
gridOptions: GridStackOptions = {
  column: 12,
  cellHeight: 'auto',
  animate: true
};
Parameters
Parameter Type
o GridStackOptions
Returns

void

el
Get Signature
get el(): GridCompHTMLElement;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:190

Get the native DOM element that contains grid-specific fields. This element has GridStack properties attached to it.

Returns

GridCompHTMLElement

grid
Get Signature
get grid(): undefined | GridStack;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:201

Get the underlying GridStack instance. Use this to access GridStack API methods directly.

Example
this.gridComponent.grid.addWidget({x: 0, y: 0, w: 2, h: 1});
Returns

undefined | GridStack

Constructors

Constructor
new GridstackComponent(elementRef): GridstackComponent;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:253

Parameters
Parameter Type
elementRef ElementRef<GridCompHTMLElement>
Returns

GridstackComponent

Methods

addComponentToSelectorType()
static addComponentToSelectorType(typeList): void;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:234

Register a list of Angular components for dynamic creation.

Parameters
Parameter Type Description
typeList Type<object>[] Array of component types to register
Returns

void

Example
GridstackComponent.addComponentToSelectorType([
  MyWidgetComponent,
  AnotherWidgetComponent
]);
getSelector()
static getSelector(type): string;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:243

Extract the selector string from an Angular component type.

Parameters
Parameter Type Description
type Type<object> The component type to get selector from
Returns

string

The component's selector string

ngOnInit()
ngOnInit(): void;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:267

A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

Returns

void

Implementation of
OnInit.ngOnInit
ngAfterContentInit()
ngAfterContentInit(): void;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:277

wait until after all DOM is ready to init gridstack children (after angular ngFor and sub-components run first)

Returns

void

Implementation of
AfterContentInit.ngAfterContentInit
ngOnDestroy()
ngOnDestroy(): void;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:285

A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.

Returns

void

Implementation of
OnDestroy.ngOnDestroy
updateAll()
updateAll(): void;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:299

called when the TEMPLATE (not recommended) list of items changes - get a list of nodes and update the layout accordingly (which will take care of adding/removing items changed by Angular)

Returns

void

checkEmpty()
checkEmpty(): void;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:310

check if the grid is empty, if so show alternative content

Returns

void

hookEvents()
protected hookEvents(grid?): void;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:316

get all known events as easy to use Outputs for convenience

Parameters
Parameter Type
grid? GridStack
Returns

void

unhookEvents()
protected unhookEvents(grid?): void;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:343

Parameters
Parameter Type
grid? GridStack
Returns

void

Properties

Property Modifier Type Default value Description Defined in
gridstackItems? public QueryList<GridstackItemComponent> undefined List of template-based grid items (not recommended approach). Used to sync between DOM and GridStack internals when items are defined in templates. Prefer dynamic component creation instead. angular/projects/lib/src/lib/gridstack.component.ts:92
container? public ViewContainerRef undefined Container for dynamic component creation (recommended approach). Used to append grid items programmatically at runtime. angular/projects/lib/src/lib/gridstack.component.ts:97
isEmpty? public boolean undefined Controls whether empty content should be displayed. Set to true to show ng-content with 'empty-content' selector when grid has no items. Example <gridstack [isEmpty]="gridItems.length === 0"> <div empty-content>Drag widgets here to get started</div> </gridstack> angular/projects/lib/src/lib/gridstack.component.ts:133
addedCB public EventEmitter<nodesCB> undefined Emitted when widgets are added to the grid angular/projects/lib/src/lib/gridstack.component.ts:151
changeCB public EventEmitter<nodesCB> undefined Emitted when grid layout changes angular/projects/lib/src/lib/gridstack.component.ts:154
disableCB public EventEmitter<eventCB> undefined Emitted when grid is disabled angular/projects/lib/src/lib/gridstack.component.ts:157
dragCB public EventEmitter<elementCB> undefined Emitted during widget drag operations angular/projects/lib/src/lib/gridstack.component.ts:160
dragStartCB public EventEmitter<elementCB> undefined Emitted when widget drag starts angular/projects/lib/src/lib/gridstack.component.ts:163
dragStopCB public EventEmitter<elementCB> undefined Emitted when widget drag stops angular/projects/lib/src/lib/gridstack.component.ts:166
droppedCB public EventEmitter<droppedCB> undefined Emitted when widget is dropped angular/projects/lib/src/lib/gridstack.component.ts:169
enableCB public EventEmitter<eventCB> undefined Emitted when grid is enabled angular/projects/lib/src/lib/gridstack.component.ts:172
removedCB public EventEmitter<nodesCB> undefined Emitted when widgets are removed from the grid angular/projects/lib/src/lib/gridstack.component.ts:175
resizeCB public EventEmitter<elementCB> undefined Emitted during widget resize operations angular/projects/lib/src/lib/gridstack.component.ts:178
resizeStartCB public EventEmitter<elementCB> undefined Emitted when widget resize starts angular/projects/lib/src/lib/gridstack.component.ts:181
resizeStopCB public EventEmitter<elementCB> undefined Emitted when widget resize stops angular/projects/lib/src/lib/gridstack.component.ts:184
ref public | undefined | ComponentRef<GridstackComponent> undefined Component reference for dynamic component removal. Used internally when this component is created dynamically. angular/projects/lib/src/lib/gridstack.component.ts:207
selectorToType static SelectorToType {} Mapping of component selectors to their types for dynamic creation. This enables dynamic component instantiation from string selectors. Angular doesn't provide public access to this mapping, so we maintain our own. Example GridstackComponent.addComponentToSelectorType([MyWidgetComponent]); angular/projects/lib/src/lib/gridstack.component.ts:220
_options? protected GridStackOptions undefined - angular/projects/lib/src/lib/gridstack.component.ts:248
_grid? protected GridStack undefined - angular/projects/lib/src/lib/gridstack.component.ts:249
_sub protected undefined | Subscription undefined - angular/projects/lib/src/lib/gridstack.component.ts:250
loaded? protected boolean undefined - angular/projects/lib/src/lib/gridstack.component.ts:251
elementRef readonly ElementRef<GridCompHTMLElement> undefined - angular/projects/lib/src/lib/gridstack.component.ts:253

Interfaces

GridCompHTMLElement

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:39

Extended HTMLElement interface for the grid container. Stores a back-reference to the Angular component for integration purposes.

Extends

  • GridHTMLElement

Methods

animate()
animate(keyframes, options?): Animation;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2146

Parameters
Parameter Type
keyframes null | Keyframe[] | PropertyIndexedKeyframes
options? number | KeyframeAnimationOptions
Returns

Animation

Inherited from
GridHTMLElement.animate
getAnimations()
getAnimations(options?): Animation[];

Defined in: node_modules/typescript/lib/lib.dom.d.ts:2147

Parameters
Parameter Type
options? GetAnimationsOptions
Returns

Animation[]

Inherited from
GridHTMLElement.getAnimations
after()
after(...nodes): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:3747

Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

Parameters
Parameter Type
...nodes (string | Node)[]
Returns

void

Inherited from
GridHTMLElement.after
before()
before(...nodes): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:3753

Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

Parameters
Parameter Type
...nodes (string | Node)[]
Returns

void

Inherited from
GridHTMLElement.before
remove()
remove(): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:3755

Removes node.

Returns

void

Inherited from
GridHTMLElement.remove
replaceWith()
replaceWith(...nodes): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:3761

Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

Parameters
Parameter Type
...nodes (string | Node)[]
Returns

void

Inherited from
GridHTMLElement.replaceWith
attachShadow()
attachShadow(init): ShadowRoot;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5074

Creates a shadow root for element and returns it.

Parameters
Parameter Type
init ShadowRootInit
Returns

ShadowRoot

Inherited from
GridHTMLElement.attachShadow
checkVisibility()
checkVisibility(options?): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5075

Parameters
Parameter Type
options? CheckVisibilityOptions
Returns

boolean

Inherited from
GridHTMLElement.checkVisibility
closest()
Call Signature
closest<K>(selector): null | HTMLElementTagNameMap[K];

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5077

Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.

Type Parameters
Type Parameter
K extends keyof HTMLElementTagNameMap
Parameters
Parameter Type
selector K
Returns

null | HTMLElementTagNameMap[K]

Inherited from
GridHTMLElement.closest
Call Signature
closest<K>(selector): null | SVGElementTagNameMap[K];

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5078

Type Parameters
Type Parameter
K extends keyof SVGElementTagNameMap
Parameters
Parameter Type
selector K
Returns

null | SVGElementTagNameMap[K]

Inherited from
GridHTMLElement.closest
Call Signature
closest<K>(selector): null | MathMLElementTagNameMap[K];

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5079

Type Parameters
Type Parameter
K extends keyof MathMLElementTagNameMap
Parameters
Parameter Type
selector K
Returns

null | MathMLElementTagNameMap[K]

Inherited from
GridHTMLElement.closest
Call Signature
closest<E>(selectors): null | E;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5080

Type Parameters
Type Parameter Default type
E extends Element<E> Element
Parameters
Parameter Type
selectors string
Returns

null | E

Inherited from
GridHTMLElement.closest
getAttribute()
getAttribute(qualifiedName): null | string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5082

Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.

Parameters
Parameter Type
qualifiedName string
Returns

null | string

Inherited from
GridHTMLElement.getAttribute
getAttributeNS()
getAttributeNS(namespace, localName): null | string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5084

Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.

Parameters
Parameter Type
namespace null | string
localName string
Returns

null | string

Inherited from
GridHTMLElement.getAttributeNS
getAttributeNames()
getAttributeNames(): string[];

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5086

Returns the qualified names of all element's attributes. Can contain duplicates.

Returns

string[]

Inherited from
GridHTMLElement.getAttributeNames
getAttributeNode()
getAttributeNode(qualifiedName): null | Attr;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5087

Parameters
Parameter Type
qualifiedName string
Returns

null | Attr

Inherited from
GridHTMLElement.getAttributeNode
getAttributeNodeNS()
getAttributeNodeNS(namespace, localName): null | Attr;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5088

Parameters
Parameter Type
namespace null | string
localName string
Returns

null | Attr

Inherited from
GridHTMLElement.getAttributeNodeNS
getBoundingClientRect()
getBoundingClientRect(): DOMRect;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5089

Returns

DOMRect

Inherited from
GridHTMLElement.getBoundingClientRect
getClientRects()
getClientRects(): DOMRectList;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5090

Returns

DOMRectList

Inherited from
GridHTMLElement.getClientRects
getElementsByClassName()
getElementsByClassName(classNames): HTMLCollectionOf<Element>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5092

Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.

Parameters
Parameter Type
classNames string
Returns

HTMLCollectionOf<Element>

Inherited from
GridHTMLElement.getElementsByClassName
getElementsByTagName()
Call Signature
getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5093

Type Parameters
Type Parameter
K extends keyof HTMLElementTagNameMap
Parameters
Parameter Type
qualifiedName K
Returns

HTMLCollectionOf<HTMLElementTagNameMap[K]>

Inherited from
GridHTMLElement.getElementsByTagName
Call Signature
getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<SVGElementTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5094

Type Parameters
Type Parameter
K extends keyof SVGElementTagNameMap
Parameters
Parameter Type
qualifiedName K
Returns

HTMLCollectionOf<SVGElementTagNameMap[K]>

Inherited from
GridHTMLElement.getElementsByTagName
Call Signature
getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<MathMLElementTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5095

Type Parameters
Type Parameter
K extends keyof MathMLElementTagNameMap
Parameters
Parameter Type
qualifiedName K
Returns

HTMLCollectionOf<MathMLElementTagNameMap[K]>

Inherited from
GridHTMLElement.getElementsByTagName
Call Signature
getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5097

Type Parameters
Type Parameter
K extends keyof HTMLElementDeprecatedTagNameMap
Parameters
Parameter Type
qualifiedName K
Returns

HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>

Deprecated
Inherited from
GridHTMLElement.getElementsByTagName
Call Signature
getElementsByTagName(qualifiedName): HTMLCollectionOf<Element>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5098

Parameters
Parameter Type
qualifiedName string
Returns

HTMLCollectionOf<Element>

Inherited from
GridHTMLElement.getElementsByTagName
getElementsByTagNameNS()
Call Signature
getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<HTMLElement>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5099

Parameters
Parameter Type
namespaceURI "http://www.w3.org/1999/xhtml"
localName string
Returns

HTMLCollectionOf<HTMLElement>

Inherited from
GridHTMLElement.getElementsByTagNameNS
Call Signature
getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<SVGElement>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5100

Parameters
Parameter Type
namespaceURI "http://www.w3.org/2000/svg"
localName string
Returns

HTMLCollectionOf<SVGElement>

Inherited from
GridHTMLElement.getElementsByTagNameNS
Call Signature
getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<MathMLElement>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5101

Parameters
Parameter Type
namespaceURI "http://www.w3.org/1998/Math/MathML"
localName string
Returns

HTMLCollectionOf<MathMLElement>

Inherited from
GridHTMLElement.getElementsByTagNameNS
Call Signature
getElementsByTagNameNS(namespace, localName): HTMLCollectionOf<Element>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5102

Parameters
Parameter Type
namespace null | string
localName string
Returns

HTMLCollectionOf<Element>

Inherited from
GridHTMLElement.getElementsByTagNameNS
hasAttribute()
hasAttribute(qualifiedName): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5104

Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.

Parameters
Parameter Type
qualifiedName string
Returns

boolean

Inherited from
GridHTMLElement.hasAttribute
hasAttributeNS()
hasAttributeNS(namespace, localName): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5106

Returns true if element has an attribute whose namespace is namespace and local name is localName.

Parameters
Parameter Type
namespace null | string
localName string
Returns

boolean

Inherited from
GridHTMLElement.hasAttributeNS
hasAttributes()
hasAttributes(): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5108

Returns true if element has attributes, and false otherwise.

Returns

boolean

Inherited from
GridHTMLElement.hasAttributes
hasPointerCapture()
hasPointerCapture(pointerId): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5109

Parameters
Parameter Type
pointerId number
Returns

boolean

Inherited from
GridHTMLElement.hasPointerCapture
insertAdjacentElement()
insertAdjacentElement(where, element): null | Element;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5110

Parameters
Parameter Type
where InsertPosition
element Element
Returns

null | Element

Inherited from
GridHTMLElement.insertAdjacentElement
insertAdjacentHTML()
insertAdjacentHTML(position, text): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5111

Parameters
Parameter Type
position InsertPosition
text string
Returns

void

Inherited from
GridHTMLElement.insertAdjacentHTML
insertAdjacentText()
insertAdjacentText(where, data): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5112

Parameters
Parameter Type
where InsertPosition
data string
Returns

void

Inherited from
GridHTMLElement.insertAdjacentText
matches()
matches(selectors): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5114

Returns true if matching selectors against element's root yields element, and false otherwise.

Parameters
Parameter Type
selectors string
Returns

boolean

Inherited from
GridHTMLElement.matches
releasePointerCapture()
releasePointerCapture(pointerId): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5115

Parameters
Parameter Type
pointerId number
Returns

void

Inherited from
GridHTMLElement.releasePointerCapture
removeAttribute()
removeAttribute(qualifiedName): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5117

Removes element's first attribute whose qualified name is qualifiedName.

Parameters
Parameter Type
qualifiedName string
Returns

void

Inherited from
GridHTMLElement.removeAttribute
removeAttributeNS()
removeAttributeNS(namespace, localName): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5119

Removes element's attribute whose namespace is namespace and local name is localName.

Parameters
Parameter Type
namespace null | string
localName string
Returns

void

Inherited from
GridHTMLElement.removeAttributeNS
removeAttributeNode()
removeAttributeNode(attr): Attr;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5120

Parameters
Parameter Type
attr Attr
Returns

Attr

Inherited from
GridHTMLElement.removeAttributeNode
requestFullscreen()
requestFullscreen(options?): Promise<void>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5126

Displays element fullscreen and resolves promise when done.

When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.

Parameters
Parameter Type
options? FullscreenOptions
Returns

Promise<void>

Inherited from
GridHTMLElement.requestFullscreen
requestPointerLock()
requestPointerLock(): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5127

Returns

void

Inherited from
GridHTMLElement.requestPointerLock
scroll()
Call Signature
scroll(options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5128

Parameters
Parameter Type
options? ScrollToOptions
Returns

void

Inherited from
GridHTMLElement.scroll
Call Signature
scroll(x, y): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5129

Parameters
Parameter Type
x number
y number
Returns

void

Inherited from
GridHTMLElement.scroll
scrollBy()
Call Signature
scrollBy(options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5130

Parameters
Parameter Type
options? ScrollToOptions
Returns

void

Inherited from
GridHTMLElement.scrollBy
Call Signature
scrollBy(x, y): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5131

Parameters
Parameter Type
x number
y number
Returns

void

Inherited from
GridHTMLElement.scrollBy
scrollIntoView()
scrollIntoView(arg?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5132

Parameters
Parameter Type
arg? boolean | ScrollIntoViewOptions
Returns

void

Inherited from
GridHTMLElement.scrollIntoView
scrollTo()
Call Signature
scrollTo(options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5133

Parameters
Parameter Type
options? ScrollToOptions
Returns

void

Inherited from
GridHTMLElement.scrollTo
Call Signature
scrollTo(x, y): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5134

Parameters
Parameter Type
x number
y number
Returns

void

Inherited from
GridHTMLElement.scrollTo
setAttribute()
setAttribute(qualifiedName, value): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5136

Sets the value of element's first attribute whose qualified name is qualifiedName to value.

Parameters
Parameter Type
qualifiedName string
value string
Returns

void

Inherited from
GridHTMLElement.setAttribute
setAttributeNS()
setAttributeNS(
   namespace, 
   qualifiedName, 
   value): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5138

Sets the value of element's attribute whose namespace is namespace and local name is localName to value.

Parameters
Parameter Type
namespace null | string
qualifiedName string
value string
Returns

void

Inherited from
GridHTMLElement.setAttributeNS
setAttributeNode()
setAttributeNode(attr): null | Attr;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5139

Parameters
Parameter Type
attr Attr
Returns

null | Attr

Inherited from
GridHTMLElement.setAttributeNode
setAttributeNodeNS()
setAttributeNodeNS(attr): null | Attr;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5140

Parameters
Parameter Type
attr Attr
Returns

null | Attr

Inherited from
GridHTMLElement.setAttributeNodeNS
setPointerCapture()
setPointerCapture(pointerId): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5141

Parameters
Parameter Type
pointerId number
Returns

void

Inherited from
GridHTMLElement.setPointerCapture
toggleAttribute()
toggleAttribute(qualifiedName, force?): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5147

If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.

Returns true if qualifiedName is now present, and false otherwise.

Parameters
Parameter Type
qualifiedName string
force? boolean
Returns

boolean

Inherited from
GridHTMLElement.toggleAttribute
webkitMatchesSelector()
webkitMatchesSelector(selectors): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5149

Parameters
Parameter Type
selectors string
Returns

boolean

Deprecated

This is a legacy alias of matches.

Inherited from
GridHTMLElement.webkitMatchesSelector
dispatchEvent()
dispatchEvent(event): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:5344

Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

Parameters
Parameter Type
event Event
Returns

boolean

Inherited from
GridHTMLElement.dispatchEvent
attachInternals()
attachInternals(): ElementInternals;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:6573

Returns

ElementInternals

Inherited from
GridHTMLElement.attachInternals
click()
click(): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:6574

Returns

void

Inherited from
GridHTMLElement.click
addEventListener()
Call Signature
addEventListener<K>(
   type, 
   listener, 
   options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:6575

Type Parameters
Type Parameter
K extends keyof HTMLElementEventMap
Parameters
Parameter Type
type K
listener (this, ev) => any
options? boolean | AddEventListenerOptions
Returns

void

Inherited from
GridHTMLElement.addEventListener
Call Signature
addEventListener(
   type, 
   listener, 
   options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:6576

Parameters
Parameter Type
type string
listener EventListenerOrEventListenerObject
options? boolean | AddEventListenerOptions
Returns

void

Inherited from
GridHTMLElement.addEventListener
removeEventListener()
Call Signature
removeEventListener<K>(
   type, 
   listener, 
   options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:6577

Type Parameters
Type Parameter
K extends keyof HTMLElementEventMap
Parameters
Parameter Type
type K
listener (this, ev) => any
options? boolean | EventListenerOptions
Returns

void

Inherited from
GridHTMLElement.removeEventListener
Call Signature
removeEventListener(
   type, 
   listener, 
   options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:6578

Parameters
Parameter Type
type string
listener EventListenerOrEventListenerObject
options? boolean | EventListenerOptions
Returns

void

Inherited from
GridHTMLElement.removeEventListener
blur()
blur(): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:7768

Returns

void

Inherited from
GridHTMLElement.blur
focus()
focus(options?): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:7769

Parameters
Parameter Type
options? FocusOptions
Returns

void

Inherited from
GridHTMLElement.focus
appendChild()
appendChild<T>(node): T;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10274

Type Parameters
Type Parameter
T extends Node<T>
Parameters
Parameter Type
node T
Returns

T

Inherited from
GridHTMLElement.appendChild
cloneNode()
cloneNode(deep?): Node;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10276

Returns a copy of node. If deep is true, the copy also includes the node's descendants.

Parameters
Parameter Type
deep? boolean
Returns

Node

Inherited from
GridHTMLElement.cloneNode
compareDocumentPosition()
compareDocumentPosition(other): number;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10278

Returns a bitmask indicating the position of other relative to node.

Parameters
Parameter Type
other Node
Returns

number

Inherited from
GridHTMLElement.compareDocumentPosition
contains()
contains(other): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10280

Returns true if other is an inclusive descendant of node, and false otherwise.

Parameters
Parameter Type
other null | Node
Returns

boolean

Inherited from
GridHTMLElement.contains
getRootNode()
getRootNode(options?): Node;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10282

Returns node's root.

Parameters
Parameter Type
options? GetRootNodeOptions
Returns

Node

Inherited from
GridHTMLElement.getRootNode
hasChildNodes()
hasChildNodes(): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10284

Returns whether node has children.

Returns

boolean

Inherited from
GridHTMLElement.hasChildNodes
insertBefore()
insertBefore<T>(node, child): T;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10285

Type Parameters
Type Parameter
T extends Node<T>
Parameters
Parameter Type
node T
child null | Node
Returns

T

Inherited from
GridHTMLElement.insertBefore
isDefaultNamespace()
isDefaultNamespace(namespace): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10286

Parameters
Parameter Type
namespace null | string
Returns

boolean

Inherited from
GridHTMLElement.isDefaultNamespace
isEqualNode()
isEqualNode(otherNode): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10288

Returns whether node and otherNode have the same properties.

Parameters
Parameter Type
otherNode null | Node
Returns

boolean

Inherited from
GridHTMLElement.isEqualNode
isSameNode()
isSameNode(otherNode): boolean;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10289

Parameters
Parameter Type
otherNode null | Node
Returns

boolean

Inherited from
GridHTMLElement.isSameNode
lookupNamespaceURI()
lookupNamespaceURI(prefix): null | string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10290

Parameters
Parameter Type
prefix null | string
Returns

null | string

Inherited from
GridHTMLElement.lookupNamespaceURI
lookupPrefix()
lookupPrefix(namespace): null | string;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10291

Parameters
Parameter Type
namespace null | string
Returns

null | string

Inherited from
GridHTMLElement.lookupPrefix
normalize()
normalize(): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10293

Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.

Returns

void

Inherited from
GridHTMLElement.normalize
removeChild()
removeChild<T>(child): T;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10294

Type Parameters
Type Parameter
T extends Node<T>
Parameters
Parameter Type
child T
Returns

T

Inherited from
GridHTMLElement.removeChild
replaceChild()
replaceChild<T>(node, child): T;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10295

Type Parameters
Type Parameter
T extends Node<T>
Parameters
Parameter Type
node Node
child T
Returns

T

Inherited from
GridHTMLElement.replaceChild
append()
append(...nodes): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10697

Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

Parameters
Parameter Type
...nodes (string | Node)[]
Returns

void

Inherited from
GridHTMLElement.append
prepend()
prepend(...nodes): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10703

Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

Parameters
Parameter Type
...nodes (string | Node)[]
Returns

void

Inherited from
GridHTMLElement.prepend
querySelector()
Call Signature
querySelector<K>(selectors): null | HTMLElementTagNameMap[K];

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10705

Returns the first element that is a descendant of node that matches selectors.

Type Parameters
Type Parameter
K extends keyof HTMLElementTagNameMap
Parameters
Parameter Type
selectors K
Returns

null | HTMLElementTagNameMap[K]

Inherited from
GridHTMLElement.querySelector
Call Signature
querySelector<K>(selectors): null | SVGElementTagNameMap[K];

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10706

Type Parameters
Type Parameter
K extends keyof SVGElementTagNameMap
Parameters
Parameter Type
selectors K
Returns

null | SVGElementTagNameMap[K]

Inherited from
GridHTMLElement.querySelector
Call Signature
querySelector<K>(selectors): null | MathMLElementTagNameMap[K];

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10707

Type Parameters
Type Parameter
K extends keyof MathMLElementTagNameMap
Parameters
Parameter Type
selectors K
Returns

null | MathMLElementTagNameMap[K]

Inherited from
GridHTMLElement.querySelector
Call Signature
querySelector<K>(selectors): null | HTMLElementDeprecatedTagNameMap[K];

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10709

Type Parameters
Type Parameter
K extends keyof HTMLElementDeprecatedTagNameMap
Parameters
Parameter Type
selectors K
Returns

null | HTMLElementDeprecatedTagNameMap[K]

Deprecated
Inherited from
GridHTMLElement.querySelector
Call Signature
querySelector<E>(selectors): null | E;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10710

Type Parameters
Type Parameter Default type
E extends Element<E> Element
Parameters
Parameter Type
selectors string
Returns

null | E

Inherited from
GridHTMLElement.querySelector
querySelectorAll()
Call Signature
querySelectorAll<K>(selectors): NodeListOf<HTMLElementTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10712

Returns all element descendants of node that match selectors.

Type Parameters
Type Parameter
K extends keyof HTMLElementTagNameMap
Parameters
Parameter Type
selectors K
Returns

NodeListOf<HTMLElementTagNameMap[K]>

Inherited from
GridHTMLElement.querySelectorAll
Call Signature
querySelectorAll<K>(selectors): NodeListOf<SVGElementTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10713

Type Parameters
Type Parameter
K extends keyof SVGElementTagNameMap
Parameters
Parameter Type
selectors K
Returns

NodeListOf<SVGElementTagNameMap[K]>

Inherited from
GridHTMLElement.querySelectorAll
Call Signature
querySelectorAll<K>(selectors): NodeListOf<MathMLElementTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10714

Type Parameters
Type Parameter
K extends keyof MathMLElementTagNameMap
Parameters
Parameter Type
selectors K
Returns

NodeListOf<MathMLElementTagNameMap[K]>

Inherited from
GridHTMLElement.querySelectorAll
Call Signature
querySelectorAll<K>(selectors): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10716

Type Parameters
Type Parameter
K extends keyof HTMLElementDeprecatedTagNameMap
Parameters
Parameter Type
selectors K
Returns

NodeListOf<HTMLElementDeprecatedTagNameMap[K]>

Deprecated
Inherited from
GridHTMLElement.querySelectorAll
Call Signature
querySelectorAll<E>(selectors): NodeListOf<E>;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10717

Type Parameters
Type Parameter Default type
E extends Element<E> Element
Parameters
Parameter Type
selectors string
Returns

NodeListOf<E>

Inherited from
GridHTMLElement.querySelectorAll
replaceChildren()
replaceChildren(...nodes): void;

Defined in: node_modules/typescript/lib/lib.dom.d.ts:10723

Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

Parameters
Parameter Type
...nodes (string | Node)[]
Returns

void

Inherited from
GridHTMLElement.replaceChildren

Properties

Property Modifier Type Description Inherited from Defined in
_gridComp? public GridstackComponent Back-reference to the Angular GridStack component - angular/projects/lib/src/lib/gridstack.component.ts:41
ariaAtomic public null | string - GridHTMLElement.ariaAtomic node_modules/typescript/lib/lib.dom.d.ts:2020
ariaAutoComplete public null | string - GridHTMLElement.ariaAutoComplete node_modules/typescript/lib/lib.dom.d.ts:2021
ariaBusy public null | string - GridHTMLElement.ariaBusy node_modules/typescript/lib/lib.dom.d.ts:2022
ariaChecked public null | string - GridHTMLElement.ariaChecked node_modules/typescript/lib/lib.dom.d.ts:2023
ariaColCount public null | string - GridHTMLElement.ariaColCount node_modules/typescript/lib/lib.dom.d.ts:2024
ariaColIndex public null | string - GridHTMLElement.ariaColIndex node_modules/typescript/lib/lib.dom.d.ts:2025
ariaColSpan public null | string - GridHTMLElement.ariaColSpan node_modules/typescript/lib/lib.dom.d.ts:2026
ariaCurrent public null | string - GridHTMLElement.ariaCurrent node_modules/typescript/lib/lib.dom.d.ts:2027
ariaDisabled public null | string - GridHTMLElement.ariaDisabled node_modules/typescript/lib/lib.dom.d.ts:2028
ariaExpanded public null | string - GridHTMLElement.ariaExpanded node_modules/typescript/lib/lib.dom.d.ts:2029
ariaHasPopup public null | string - GridHTMLElement.ariaHasPopup node_modules/typescript/lib/lib.dom.d.ts:2030
ariaHidden public null | string - GridHTMLElement.ariaHidden node_modules/typescript/lib/lib.dom.d.ts:2031
ariaInvalid public null | string - GridHTMLElement.ariaInvalid node_modules/typescript/lib/lib.dom.d.ts:2032
ariaKeyShortcuts public null | string - GridHTMLElement.ariaKeyShortcuts node_modules/typescript/lib/lib.dom.d.ts:2033
ariaLabel public null | string - GridHTMLElement.ariaLabel node_modules/typescript/lib/lib.dom.d.ts:2034
ariaLevel public null | string - GridHTMLElement.ariaLevel node_modules/typescript/lib/lib.dom.d.ts:2035
ariaLive public null | string - GridHTMLElement.ariaLive node_modules/typescript/lib/lib.dom.d.ts:2036
ariaModal public null | string - GridHTMLElement.ariaModal node_modules/typescript/lib/lib.dom.d.ts:2037
ariaMultiLine public null | string - GridHTMLElement.ariaMultiLine node_modules/typescript/lib/lib.dom.d.ts:2038
ariaMultiSelectable public null | string - GridHTMLElement.ariaMultiSelectable node_modules/typescript/lib/lib.dom.d.ts:2039
ariaOrientation public null | string - GridHTMLElement.ariaOrientation node_modules/typescript/lib/lib.dom.d.ts:2040
ariaPlaceholder public null | string - GridHTMLElement.ariaPlaceholder node_modules/typescript/lib/lib.dom.d.ts:2041
ariaPosInSet public null | string - GridHTMLElement.ariaPosInSet node_modules/typescript/lib/lib.dom.d.ts:2042
ariaPressed public null | string - GridHTMLElement.ariaPressed node_modules/typescript/lib/lib.dom.d.ts:2043
ariaReadOnly public null | string - GridHTMLElement.ariaReadOnly node_modules/typescript/lib/lib.dom.d.ts:2044
ariaRequired public null | string - GridHTMLElement.ariaRequired node_modules/typescript/lib/lib.dom.d.ts:2045
ariaRoleDescription public null | string - GridHTMLElement.ariaRoleDescription node_modules/typescript/lib/lib.dom.d.ts:2046
ariaRowCount public null | string - GridHTMLElement.ariaRowCount node_modules/typescript/lib/lib.dom.d.ts:2047
ariaRowIndex public null | string - GridHTMLElement.ariaRowIndex node_modules/typescript/lib/lib.dom.d.ts:2048
ariaRowSpan public null | string - GridHTMLElement.ariaRowSpan node_modules/typescript/lib/lib.dom.d.ts:2049
ariaSelected public null | string - GridHTMLElement.ariaSelected node_modules/typescript/lib/lib.dom.d.ts:2050
ariaSetSize public null | string - GridHTMLElement.ariaSetSize node_modules/typescript/lib/lib.dom.d.ts:2051
ariaSort public null | string - GridHTMLElement.ariaSort node_modules/typescript/lib/lib.dom.d.ts:2052
ariaValueMax public null | string - GridHTMLElement.ariaValueMax node_modules/typescript/lib/lib.dom.d.ts:2053
ariaValueMin public null | string - GridHTMLElement.ariaValueMin node_modules/typescript/lib/lib.dom.d.ts:2054
ariaValueNow public null | string - GridHTMLElement.ariaValueNow node_modules/typescript/lib/lib.dom.d.ts:2055
ariaValueText public null | string - GridHTMLElement.ariaValueText node_modules/typescript/lib/lib.dom.d.ts:2056
role public null | string - GridHTMLElement.role node_modules/typescript/lib/lib.dom.d.ts:2057
attributes readonly NamedNodeMap - GridHTMLElement.attributes node_modules/typescript/lib/lib.dom.d.ts:5041
classList readonly DOMTokenList Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. GridHTMLElement.classList node_modules/typescript/lib/lib.dom.d.ts:5043
className public string Returns the value of element's class content attribute. Can be set to change it. GridHTMLElement.className node_modules/typescript/lib/lib.dom.d.ts:5045
clientHeight readonly number - GridHTMLElement.clientHeight node_modules/typescript/lib/lib.dom.d.ts:5046
clientLeft readonly number - GridHTMLElement.clientLeft node_modules/typescript/lib/lib.dom.d.ts:5047
clientTop readonly number - GridHTMLElement.clientTop node_modules/typescript/lib/lib.dom.d.ts:5048
clientWidth readonly number - GridHTMLElement.clientWidth node_modules/typescript/lib/lib.dom.d.ts:5049
id public string Returns the value of element's id content attribute. Can be set to change it. GridHTMLElement.id node_modules/typescript/lib/lib.dom.d.ts:5051
localName readonly string Returns the local name. GridHTMLElement.localName node_modules/typescript/lib/lib.dom.d.ts:5053
namespaceURI readonly null | string Returns the namespace. GridHTMLElement.namespaceURI node_modules/typescript/lib/lib.dom.d.ts:5055
onfullscreenchange public null | (this, ev) => any - GridHTMLElement.onfullscreenchange node_modules/typescript/lib/lib.dom.d.ts:5056
onfullscreenerror public null | (this, ev) => any - GridHTMLElement.onfullscreenerror node_modules/typescript/lib/lib.dom.d.ts:5057
outerHTML public string - GridHTMLElement.outerHTML node_modules/typescript/lib/lib.dom.d.ts:5058
ownerDocument readonly Document Returns the node document. Returns null for documents. GridHTMLElement.ownerDocument node_modules/typescript/lib/lib.dom.d.ts:5059
part readonly DOMTokenList - GridHTMLElement.part node_modules/typescript/lib/lib.dom.d.ts:5060
prefix readonly null | string Returns the namespace prefix. GridHTMLElement.prefix node_modules/typescript/lib/lib.dom.d.ts:5062
scrollHeight readonly number - GridHTMLElement.scrollHeight node_modules/typescript/lib/lib.dom.d.ts:5063
scrollLeft public number - GridHTMLElement.scrollLeft node_modules/typescript/lib/lib.dom.d.ts:5064
scrollTop public number - GridHTMLElement.scrollTop node_modules/typescript/lib/lib.dom.d.ts:5065
scrollWidth readonly number - GridHTMLElement.scrollWidth node_modules/typescript/lib/lib.dom.d.ts:5066
shadowRoot readonly null | ShadowRoot Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. GridHTMLElement.shadowRoot node_modules/typescript/lib/lib.dom.d.ts:5068
slot public string Returns the value of element's slot content attribute. Can be set to change it. GridHTMLElement.slot node_modules/typescript/lib/lib.dom.d.ts:5070
tagName readonly string Returns the HTML-uppercased qualified name. GridHTMLElement.tagName node_modules/typescript/lib/lib.dom.d.ts:5072
style readonly CSSStyleDeclaration - GridHTMLElement.style node_modules/typescript/lib/lib.dom.d.ts:5162
contentEditable public string - GridHTMLElement.contentEditable node_modules/typescript/lib/lib.dom.d.ts:5166
enterKeyHint public string - GridHTMLElement.enterKeyHint node_modules/typescript/lib/lib.dom.d.ts:5167
inputMode public string - GridHTMLElement.inputMode node_modules/typescript/lib/lib.dom.d.ts:5168
isContentEditable readonly boolean - GridHTMLElement.isContentEditable node_modules/typescript/lib/lib.dom.d.ts:5169
onabort public null | (this, ev) => any Fires when the user aborts the download. Param The event. GridHTMLElement.onabort node_modules/typescript/lib/lib.dom.d.ts:5856
onanimationcancel public null | (this, ev) => any - GridHTMLElement.onanimationcancel node_modules/typescript/lib/lib.dom.d.ts:5857
onanimationend public null | (this, ev) => any - GridHTMLElement.onanimationend node_modules/typescript/lib/lib.dom.d.ts:5858
onanimationiteration public null | (this, ev) => any - GridHTMLElement.onanimationiteration node_modules/typescript/lib/lib.dom.d.ts:5859
onanimationstart public null | (this, ev) => any - GridHTMLElement.onanimationstart node_modules/typescript/lib/lib.dom.d.ts:5860
onauxclick public null | (this, ev) => any - GridHTMLElement.onauxclick node_modules/typescript/lib/lib.dom.d.ts:5861
onbeforeinput public null | (this, ev) => any - GridHTMLElement.onbeforeinput node_modules/typescript/lib/lib.dom.d.ts:5862
onblur public null | (this, ev) => any Fires when the object loses the input focus. Param The focus event. GridHTMLElement.onblur node_modules/typescript/lib/lib.dom.d.ts:5867
oncancel public null | (this, ev) => any - GridHTMLElement.oncancel node_modules/typescript/lib/lib.dom.d.ts:5868
oncanplay public null | (this, ev) => any Occurs when playback is possible, but would require further buffering. Param The event. GridHTMLElement.oncanplay node_modules/typescript/lib/lib.dom.d.ts:5873
oncanplaythrough public null | (this, ev) => any - GridHTMLElement.oncanplaythrough node_modules/typescript/lib/lib.dom.d.ts:5874
onchange public null | (this, ev) => any Fires when the contents of the object or selection have changed. Param The event. GridHTMLElement.onchange node_modules/typescript/lib/lib.dom.d.ts:5879
onclick public null | (this, ev) => any Fires when the user clicks the left mouse button on the object Param The mouse event. GridHTMLElement.onclick node_modules/typescript/lib/lib.dom.d.ts:5884
onclose public null | (this, ev) => any - GridHTMLElement.onclose node_modules/typescript/lib/lib.dom.d.ts:5885
oncontextmenu public null | (this, ev) => any Fires when the user clicks the right mouse button in the client area, opening the context menu. Param The mouse event. GridHTMLElement.oncontextmenu node_modules/typescript/lib/lib.dom.d.ts:5890
oncopy public null | (this, ev) => any - GridHTMLElement.oncopy node_modules/typescript/lib/lib.dom.d.ts:5891
oncuechange public null | (this, ev) => any - GridHTMLElement.oncuechange node_modules/typescript/lib/lib.dom.d.ts:5892
oncut public null | (this, ev) => any - GridHTMLElement.oncut node_modules/typescript/lib/lib.dom.d.ts:5893
ondblclick public null | (this, ev) => any Fires when the user double-clicks the object. Param The mouse event. GridHTMLElement.ondblclick node_modules/typescript/lib/lib.dom.d.ts:5898
ondrag public null | (this, ev) => any Fires on the source object continuously during a drag operation. Param The event. GridHTMLElement.ondrag node_modules/typescript/lib/lib.dom.d.ts:5903
ondragend public null | (this, ev) => any Fires on the source object when the user releases the mouse at the close of a drag operation. Param The event. GridHTMLElement.ondragend node_modules/typescript/lib/lib.dom.d.ts:5908
ondragenter public null | (this, ev) => any Fires on the target element when the user drags the object to a valid drop target. Param The drag event. GridHTMLElement.ondragenter node_modules/typescript/lib/lib.dom.d.ts:5913
ondragleave public null | (this, ev) => any Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. Param The drag event. GridHTMLElement.ondragleave node_modules/typescript/lib/lib.dom.d.ts:5918
ondragover public null | (this, ev) => any Fires on the target element continuously while the user drags the object over a valid drop target. Param The event. GridHTMLElement.ondragover node_modules/typescript/lib/lib.dom.d.ts:5923
ondragstart public null | (this, ev) => any Fires on the source object when the user starts to drag a text selection or selected object. Param The event. GridHTMLElement.ondragstart node_modules/typescript/lib/lib.dom.d.ts:5928
ondrop public null | (this, ev) => any - GridHTMLElement.ondrop node_modules/typescript/lib/lib.dom.d.ts:5929
ondurationchange public null | (this, ev) => any Occurs when the duration attribute is updated. Param The event. GridHTMLElement.ondurationchange node_modules/typescript/lib/lib.dom.d.ts:5934
onemptied public null | (this, ev) => any Occurs when the media element is reset to its initial state. Param The event. GridHTMLElement.onemptied node_modules/typescript/lib/lib.dom.d.ts:5939
onended public null | (this, ev) => any Occurs when the end of playback is reached. Param The event GridHTMLElement.onended node_modules/typescript/lib/lib.dom.d.ts:5944
onerror public OnErrorEventHandler Fires when an error occurs during object loading. Param The event. GridHTMLElement.onerror node_modules/typescript/lib/lib.dom.d.ts:5949
onfocus public null | (this, ev) => any Fires when the object receives focus. Param The event. GridHTMLElement.onfocus node_modules/typescript/lib/lib.dom.d.ts:5954
onformdata public null | (this, ev) => any - GridHTMLElement.onformdata node_modules/typescript/lib/lib.dom.d.ts:5955
ongotpointercapture public null | (this, ev) => any - GridHTMLElement.ongotpointercapture node_modules/typescript/lib/lib.dom.d.ts:5956
oninput public null | (this, ev) => any - GridHTMLElement.oninput node_modules/typescript/lib/lib.dom.d.ts:5957
oninvalid public null | (this, ev) => any - GridHTMLElement.oninvalid node_modules/typescript/lib/lib.dom.d.ts:5958
onkeydown public null | (this, ev) => any Fires when the user presses a key. Param The keyboard event GridHTMLElement.onkeydown node_modules/typescript/lib/lib.dom.d.ts:5963
onkeypress public null | (this, ev) => any Fires when the user presses an alphanumeric key. Param The event. Deprecated GridHTMLElement.onkeypress node_modules/typescript/lib/lib.dom.d.ts:5969
onkeyup public null | (this, ev) => any Fires when the user releases a key. Param The keyboard event GridHTMLElement.onkeyup node_modules/typescript/lib/lib.dom.d.ts:5974
onload public null | (this, ev) => any Fires immediately after the browser loads the object. Param The event. GridHTMLElement.onload node_modules/typescript/lib/lib.dom.d.ts:5979
onloadeddata public null | (this, ev) => any Occurs when media data is loaded at the current playback position. Param The event. GridHTMLElement.onloadeddata node_modules/typescript/lib/lib.dom.d.ts:5984
onloadedmetadata public null | (this, ev) => any Occurs when the duration and dimensions of the media have been determined. Param The event. GridHTMLElement.onloadedmetadata node_modules/typescript/lib/lib.dom.d.ts:5989
onloadstart public null | (this, ev) => any Occurs when Internet Explorer begins looking for media data. Param The event. GridHTMLElement.onloadstart node_modules/typescript/lib/lib.dom.d.ts:5994
onlostpointercapture public null | (this, ev) => any - GridHTMLElement.onlostpointercapture node_modules/typescript/lib/lib.dom.d.ts:5995
onmousedown public null | (this, ev) => any Fires when the user clicks the object with either mouse button. Param The mouse event. GridHTMLElement.onmousedown node_modules/typescript/lib/lib.dom.d.ts:6000
onmouseenter public null | (this, ev) => any - GridHTMLElement.onmouseenter node_modules/typescript/lib/lib.dom.d.ts:6001
onmouseleave public null | (this, ev) => any - GridHTMLElement.onmouseleave node_modules/typescript/lib/lib.dom.d.ts:6002
onmousemove public null | (this, ev) => any Fires when the user moves the mouse over the object. Param The mouse event. GridHTMLElement.onmousemove node_modules/typescript/lib/lib.dom.d.ts:6007
onmouseout public null | (this, ev) => any Fires when the user moves the mouse pointer outside the boundaries of the object. Param The mouse event. GridHTMLElement.onmouseout node_modules/typescript/lib/lib.dom.d.ts:6012
onmouseover public null | (this, ev) => any Fires when the user moves the mouse pointer into the object. Param The mouse event. GridHTMLElement.onmouseover node_modules/typescript/lib/lib.dom.d.ts:6017
onmouseup public null | (this, ev) => any Fires when the user releases a mouse button while the mouse is over the object. Param The mouse event. GridHTMLElement.onmouseup node_modules/typescript/lib/lib.dom.d.ts:6022
onpaste public null | (this, ev) => any - GridHTMLElement.onpaste node_modules/typescript/lib/lib.dom.d.ts:6023
onpause public null | (this, ev) => any Occurs when playback is paused. Param The event. GridHTMLElement.onpause node_modules/typescript/lib/lib.dom.d.ts:6028
onplay public null | (this, ev) => any Occurs when the play method is requested. Param The event. GridHTMLElement.onplay node_modules/typescript/lib/lib.dom.d.ts:6033
onplaying public null | (this, ev) => any Occurs when the audio or video has started playing. Param The event. GridHTMLElement.onplaying node_modules/typescript/lib/lib.dom.d.ts:6038
onpointercancel public null | (this, ev) => any - GridHTMLElement.onpointercancel node_modules/typescript/lib/lib.dom.d.ts:6039
onpointerdown public null | (this, ev) => any - GridHTMLElement.onpointerdown node_modules/typescript/lib/lib.dom.d.ts:6040
onpointerenter public null | (this, ev) => any - GridHTMLElement.onpointerenter node_modules/typescript/lib/lib.dom.d.ts:6041
onpointerleave public null | (this, ev) => any - GridHTMLElement.onpointerleave node_modules/typescript/lib/lib.dom.d.ts:6042
onpointermove public null | (this, ev) => any - GridHTMLElement.onpointermove node_modules/typescript/lib/lib.dom.d.ts:6043
onpointerout public null | (this, ev) => any - GridHTMLElement.onpointerout node_modules/typescript/lib/lib.dom.d.ts:6044
onpointerover public null | (this, ev) => any - GridHTMLElement.onpointerover node_modules/typescript/lib/lib.dom.d.ts:6045
onpointerup public null | (this, ev) => any - GridHTMLElement.onpointerup node_modules/typescript/lib/lib.dom.d.ts:6046
onprogress public null | (this, ev) => any Occurs to indicate progress while downloading media data. Param The event. GridHTMLElement.onprogress node_modules/typescript/lib/lib.dom.d.ts:6051
onratechange public null | (this, ev) => any Occurs when the playback rate is increased or decreased. Param The event. GridHTMLElement.onratechange node_modules/typescript/lib/lib.dom.d.ts:6056
onreset public null | (this, ev) => any Fires when the user resets a form. Param The event. GridHTMLElement.onreset node_modules/typescript/lib/lib.dom.d.ts:6061
onresize public null | (this, ev) => any - GridHTMLElement.onresize node_modules/typescript/lib/lib.dom.d.ts:6062
onscroll public null | (this, ev) => any Fires when the user repositions the scroll box in the scroll bar on the object. Param The event. GridHTMLElement.onscroll node_modules/typescript/lib/lib.dom.d.ts:6067
onsecuritypolicyviolation public null | (this, ev) => any - GridHTMLElement.onsecuritypolicyviolation node_modules/typescript/lib/lib.dom.d.ts:6068
onseeked public null | (this, ev) => any Occurs when the seek operation ends. Param The event. GridHTMLElement.onseeked node_modules/typescript/lib/lib.dom.d.ts:6073
onseeking public null | (this, ev) => any Occurs when the current playback position is moved. Param The event. GridHTMLElement.onseeking node_modules/typescript/lib/lib.dom.d.ts:6078
onselect public null | (this, ev) => any Fires when the current selection changes. Param The event. GridHTMLElement.onselect node_modules/typescript/lib/lib.dom.d.ts:6083
onselectionchange public null | (this, ev) => any - GridHTMLElement.onselectionchange node_modules/typescript/lib/lib.dom.d.ts:6084
onselectstart public null | (this, ev) => any - GridHTMLElement.onselectstart node_modules/typescript/lib/lib.dom.d.ts:6085
onslotchange public null | (this, ev) => any - GridHTMLElement.onslotchange node_modules/typescript/lib/lib.dom.d.ts:6086
onstalled public null | (this, ev) => any Occurs when the download has stopped. Param The event. GridHTMLElement.onstalled node_modules/typescript/lib/lib.dom.d.ts:6091
onsubmit public null | (this, ev) => any - GridHTMLElement.onsubmit node_modules/typescript/lib/lib.dom.d.ts:6092
onsuspend public null | (this, ev) => any Occurs if the load operation has been intentionally halted. Param The event. GridHTMLElement.onsuspend node_modules/typescript/lib/lib.dom.d.ts:6097
ontimeupdate public null | (this, ev) => any Occurs to indicate the current playback position. Param The event. GridHTMLElement.ontimeupdate node_modules/typescript/lib/lib.dom.d.ts:6102
ontoggle public null | (this, ev) => any - GridHTMLElement.ontoggle node_modules/typescript/lib/lib.dom.d.ts:6103
ontouchcancel? public null | (this, ev) => any - GridHTMLElement.ontouchcancel node_modules/typescript/lib/lib.dom.d.ts:6104
ontouchend? public null | (this, ev) => any - GridHTMLElement.ontouchend node_modules/typescript/lib/lib.dom.d.ts:6105
ontouchmove? public null | (this, ev) => any - GridHTMLElement.ontouchmove node_modules/typescript/lib/lib.dom.d.ts:6106
ontouchstart? public null | (this, ev) => any - GridHTMLElement.ontouchstart node_modules/typescript/lib/lib.dom.d.ts:6107
ontransitioncancel public null | (this, ev) => any - GridHTMLElement.ontransitioncancel node_modules/typescript/lib/lib.dom.d.ts:6108
ontransitionend public null | (this, ev) => any - GridHTMLElement.ontransitionend node_modules/typescript/lib/lib.dom.d.ts:6109
ontransitionrun public null | (this, ev) => any - GridHTMLElement.ontransitionrun node_modules/typescript/lib/lib.dom.d.ts:6110
ontransitionstart public null | (this, ev) => any - GridHTMLElement.ontransitionstart node_modules/typescript/lib/lib.dom.d.ts:6111
onvolumechange public null | (this, ev) => any Occurs when the volume is changed, or playback is muted or unmuted. Param The event. GridHTMLElement.onvolumechange node_modules/typescript/lib/lib.dom.d.ts:6116
onwaiting public null | (this, ev) => any Occurs when playback stops because the next frame of a video resource is not available. Param The event. GridHTMLElement.onwaiting node_modules/typescript/lib/lib.dom.d.ts:6121
onwebkitanimationend public null | (this, ev) => any Deprecated This is a legacy alias of onanimationend. GridHTMLElement.onwebkitanimationend node_modules/typescript/lib/lib.dom.d.ts:6123
onwebkitanimationiteration public null | (this, ev) => any Deprecated This is a legacy alias of onanimationiteration. GridHTMLElement.onwebkitanimationiteration node_modules/typescript/lib/lib.dom.d.ts:6125
onwebkitanimationstart public null | (this, ev) => any Deprecated This is a legacy alias of onanimationstart. GridHTMLElement.onwebkitanimationstart node_modules/typescript/lib/lib.dom.d.ts:6127
onwebkittransitionend public null | (this, ev) => any Deprecated This is a legacy alias of ontransitionend. GridHTMLElement.onwebkittransitionend node_modules/typescript/lib/lib.dom.d.ts:6129
onwheel public null | (this, ev) => any - GridHTMLElement.onwheel node_modules/typescript/lib/lib.dom.d.ts:6130
accessKey public string - GridHTMLElement.accessKey node_modules/typescript/lib/lib.dom.d.ts:6555
accessKeyLabel readonly string - GridHTMLElement.accessKeyLabel node_modules/typescript/lib/lib.dom.d.ts:6556
autocapitalize public string - GridHTMLElement.autocapitalize node_modules/typescript/lib/lib.dom.d.ts:6557
dir public string - GridHTMLElement.dir node_modules/typescript/lib/lib.dom.d.ts:6558
draggable public boolean - GridHTMLElement.draggable node_modules/typescript/lib/lib.dom.d.ts:6559
hidden public boolean - GridHTMLElement.hidden node_modules/typescript/lib/lib.dom.d.ts:6560
inert public boolean - GridHTMLElement.inert node_modules/typescript/lib/lib.dom.d.ts:6561
innerText public string - GridHTMLElement.innerText node_modules/typescript/lib/lib.dom.d.ts:6562
lang public string - GridHTMLElement.lang node_modules/typescript/lib/lib.dom.d.ts:6563
offsetHeight readonly number - GridHTMLElement.offsetHeight node_modules/typescript/lib/lib.dom.d.ts:6564
offsetLeft readonly number - GridHTMLElement.offsetLeft node_modules/typescript/lib/lib.dom.d.ts:6565
offsetParent readonly null | Element - GridHTMLElement.offsetParent node_modules/typescript/lib/lib.dom.d.ts:6566
offsetTop readonly number - GridHTMLElement.offsetTop node_modules/typescript/lib/lib.dom.d.ts:6567
offsetWidth readonly number - GridHTMLElement.offsetWidth node_modules/typescript/lib/lib.dom.d.ts:6568
outerText public string - GridHTMLElement.outerText node_modules/typescript/lib/lib.dom.d.ts:6569
spellcheck public boolean - GridHTMLElement.spellcheck node_modules/typescript/lib/lib.dom.d.ts:6570
title public string - GridHTMLElement.title node_modules/typescript/lib/lib.dom.d.ts:6571
translate public boolean - GridHTMLElement.translate node_modules/typescript/lib/lib.dom.d.ts:6572
autofocus public boolean - GridHTMLElement.autofocus node_modules/typescript/lib/lib.dom.d.ts:7764
dataset readonly DOMStringMap - GridHTMLElement.dataset node_modules/typescript/lib/lib.dom.d.ts:7765
nonce? public string - GridHTMLElement.nonce node_modules/typescript/lib/lib.dom.d.ts:7766
tabIndex public number - GridHTMLElement.tabIndex node_modules/typescript/lib/lib.dom.d.ts:7767
innerHTML public string - GridHTMLElement.innerHTML node_modules/typescript/lib/lib.dom.d.ts:9130
baseURI readonly string Returns node's node document's document base URL. GridHTMLElement.baseURI node_modules/typescript/lib/lib.dom.d.ts:10249
childNodes readonly NodeListOf<ChildNode> Returns the children. GridHTMLElement.childNodes node_modules/typescript/lib/lib.dom.d.ts:10251
firstChild readonly null | ChildNode Returns the first child. GridHTMLElement.firstChild node_modules/typescript/lib/lib.dom.d.ts:10253
isConnected readonly boolean Returns true if node is connected and false otherwise. GridHTMLElement.isConnected node_modules/typescript/lib/lib.dom.d.ts:10255
lastChild readonly null | ChildNode Returns the last child. GridHTMLElement.lastChild node_modules/typescript/lib/lib.dom.d.ts:10257
nextSibling readonly null | ChildNode Returns the next sibling. GridHTMLElement.nextSibling node_modules/typescript/lib/lib.dom.d.ts:10259
nodeName readonly string Returns a string appropriate for the type of node. GridHTMLElement.nodeName node_modules/typescript/lib/lib.dom.d.ts:10261
nodeType readonly number Returns the type of node. GridHTMLElement.nodeType node_modules/typescript/lib/lib.dom.d.ts:10263
nodeValue public null | string - GridHTMLElement.nodeValue node_modules/typescript/lib/lib.dom.d.ts:10264
parentElement readonly null | HTMLElement Returns the parent element. GridHTMLElement.parentElement node_modules/typescript/lib/lib.dom.d.ts:10268
parentNode readonly null | ParentNode Returns the parent. GridHTMLElement.parentNode node_modules/typescript/lib/lib.dom.d.ts:10270
previousSibling readonly null | ChildNode Returns the previous sibling. GridHTMLElement.previousSibling node_modules/typescript/lib/lib.dom.d.ts:10272
textContent public null | string - GridHTMLElement.textContent node_modules/typescript/lib/lib.dom.d.ts:10273
ELEMENT_NODE readonly 1 node is an element. GridHTMLElement.ELEMENT_NODE node_modules/typescript/lib/lib.dom.d.ts:10297
ATTRIBUTE_NODE readonly 2 - GridHTMLElement.ATTRIBUTE_NODE node_modules/typescript/lib/lib.dom.d.ts:10298
TEXT_NODE readonly 3 node is a Text node. GridHTMLElement.TEXT_NODE node_modules/typescript/lib/lib.dom.d.ts:10300
CDATA_SECTION_NODE readonly 4 node is a CDATASection node. GridHTMLElement.CDATA_SECTION_NODE node_modules/typescript/lib/lib.dom.d.ts:10302
ENTITY_REFERENCE_NODE readonly 5 - GridHTMLElement.ENTITY_REFERENCE_NODE node_modules/typescript/lib/lib.dom.d.ts:10303
ENTITY_NODE readonly 6 - GridHTMLElement.ENTITY_NODE node_modules/typescript/lib/lib.dom.d.ts:10304
PROCESSING_INSTRUCTION_NODE readonly 7 node is a ProcessingInstruction node. GridHTMLElement.PROCESSING_INSTRUCTION_NODE node_modules/typescript/lib/lib.dom.d.ts:10306
COMMENT_NODE readonly 8 node is a Comment node. GridHTMLElement.COMMENT_NODE node_modules/typescript/lib/lib.dom.d.ts:10308
DOCUMENT_NODE readonly 9 node is a document. GridHTMLElement.DOCUMENT_NODE node_modules/typescript/lib/lib.dom.d.ts:10310
DOCUMENT_TYPE_NODE readonly 10 node is a doctype. GridHTMLElement.DOCUMENT_TYPE_NODE node_modules/typescript/lib/lib.dom.d.ts:10312
DOCUMENT_FRAGMENT_NODE readonly 11 node is a DocumentFragment node. GridHTMLElement.DOCUMENT_FRAGMENT_NODE node_modules/typescript/lib/lib.dom.d.ts:10314
NOTATION_NODE readonly 12 - GridHTMLElement.NOTATION_NODE node_modules/typescript/lib/lib.dom.d.ts:10315
DOCUMENT_POSITION_DISCONNECTED readonly 1 Set when node and other are not in the same tree. GridHTMLElement.DOCUMENT_POSITION_DISCONNECTED node_modules/typescript/lib/lib.dom.d.ts:10317
DOCUMENT_POSITION_PRECEDING readonly 2 Set when other is preceding node. GridHTMLElement.DOCUMENT_POSITION_PRECEDING node_modules/typescript/lib/lib.dom.d.ts:10319
DOCUMENT_POSITION_FOLLOWING readonly 4 Set when other is following node. GridHTMLElement.DOCUMENT_POSITION_FOLLOWING node_modules/typescript/lib/lib.dom.d.ts:10321
DOCUMENT_POSITION_CONTAINS readonly 8 Set when other is an ancestor of node. GridHTMLElement.DOCUMENT_POSITION_CONTAINS node_modules/typescript/lib/lib.dom.d.ts:10323
DOCUMENT_POSITION_CONTAINED_BY readonly 16 Set when other is a descendant of node. GridHTMLElement.DOCUMENT_POSITION_CONTAINED_BY node_modules/typescript/lib/lib.dom.d.ts:10325
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC readonly 32 - GridHTMLElement.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC node_modules/typescript/lib/lib.dom.d.ts:10326
nextElementSibling readonly null | Element Returns the first following sibling that is an element, and null otherwise. GridHTMLElement.nextElementSibling node_modules/typescript/lib/lib.dom.d.ts:10416
previousElementSibling readonly null | Element Returns the first preceding sibling that is an element, and null otherwise. GridHTMLElement.previousElementSibling node_modules/typescript/lib/lib.dom.d.ts:10418
childElementCount readonly number - GridHTMLElement.childElementCount node_modules/typescript/lib/lib.dom.d.ts:10685
children readonly HTMLCollection Returns the child elements. GridHTMLElement.children node_modules/typescript/lib/lib.dom.d.ts:10687
firstElementChild readonly null | Element Returns the first child that is an element, and null otherwise. GridHTMLElement.firstElementChild node_modules/typescript/lib/lib.dom.d.ts:10689
lastElementChild readonly null | Element Returns the last child that is an element, and null otherwise. GridHTMLElement.lastElementChild node_modules/typescript/lib/lib.dom.d.ts:10691
assignedSlot readonly null | HTMLSlotElement - GridHTMLElement.assignedSlot node_modules/typescript/lib/lib.dom.d.ts:13933

Functions

gsCreateNgComponents()

function gsCreateNgComponents(
   host, 
   n, 
   add, 
   isGrid): undefined | HTMLElement;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:354

can be used when a new item needs to be created, which we do as a Angular component, or deleted (skip)

Parameters

Parameter Type
host HTMLElement | GridCompHTMLElement
n NgGridStackNode
add boolean
isGrid boolean

Returns

undefined | HTMLElement


gsSaveAdditionalNgInfo()

function gsSaveAdditionalNgInfo(n, w): void;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:439

called for each item in the grid - check if additional information needs to be saved. Note: since this is options minus gridstack protected members using Utils.removeInternalForSave(), this typically doesn't need to do anything. However your custom Component @Input() are now supported using BaseWidget.serialize()

Parameters

Parameter Type
n NgGridStackNode
w NgGridStackWidget

Returns

void


gsUpdateNgComponents()

function gsUpdateNgComponents(n): void;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:458

track when widgeta re updated (rather than created) to make sure we de-serialize them as well

Parameters

Parameter Type
n NgGridStackNode

Returns

void

Type Aliases

eventCB

type eventCB = object;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:24

Callback for general events (enable, disable, etc.)

Properties

event
event: Event;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:24


elementCB

type elementCB = object;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:27

Callback for element-specific events (resize, drag, etc.)

Properties

event
event: Event;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:27

el
el: GridItemHTMLElement;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:27


nodesCB

type nodesCB = object;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:30

Callback for events affecting multiple nodes (change, etc.)

Properties

event
event: Event;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:30

nodes
nodes: GridStackNode[];

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:30


droppedCB

type droppedCB = object;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:33

Callback for drop events with before/after node state

Properties

event
event: Event;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:33

previousNode
previousNode: GridStackNode;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:33

newNode
newNode: GridStackNode;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:33


SelectorToType

type SelectorToType = object;

Defined in: angular/projects/lib/src/lib/gridstack.component.ts:48

Mapping of selector strings to Angular component types. Used for dynamic component creation based on widget selectors.

Index Signature

[key: string]: Type<object>