ComponentOne ASP.NET MVC Controls
ManualGridGroup Class
File
c1.nav.js
Module
c1.nav.grid
Base Class
GridGroup

Defines the class represents the group for the manual grid layout.

Constructor

Properties

Methods

Constructor

constructor

constructor(opts?: any): ManualGridGroup

Initializes a new ManualGridGroup.

Parameters
Optional

JavaScript object containing initialization data for the group.

Returns
ManualGridGroup

Properties

children

Gets the child layoutitems.

Inherited From
Group
Type
LayoutItemCollection

hostElement

Gets the outest element which represents this layoutitem.

Inherited From
LayoutItem
Type
HTMLElement

layout

Gets the layout which owns this item.

Inherited From
LayoutItem
Type
LayoutBase

parent

Gets the parent which owns this layoutitem.

It could be a Group or a LayoutBase.

Inherited From
LayoutItem
Type
any

Methods

addEventListener

addEventListener(target: EventTarget, type: string, fn: any, capture?: boolean): void

Adds an event listener to an element owned by this Control.

The control keeps a list of attached listeners and their handlers, making it easier to remove them when the control is disposed (see the dispose and removeEventListener methods).

Failing to remove event listeners may cause memory leaks.

Parameters
  • target: EventTarget

    Target element for the event.

  • type: string

    String that specifies the event.

  • fn: any

    Function to execute when the event occurs.

  • capture: boolean
Optional

Whether the listener is capturing.

Inherited From
DisposableObject
Returns
void

dispose

dispose(fullDispose?: boolean): void

Disposes the object.

Parameters
Optional

A boolean value decides wehter to keep the current status when disposing. If true, all the current status will be cleared. Otherwise, keep the current status.

Inherited From
GridGroup
Returns
void

draw

draw(): void

Draws the group.

Returns
void

initialize

initialize(options: any): void

Initializes the object by copying the properties from a given object.

Parameters
Inherited From
LayoutItem
Returns
void

remove

remove(): boolean

Removes the current layoutitem from its parent.

Inherited From
LayoutItem
Returns
boolean

removeEventListener

removeEventListener(target?: EventTarget, type?: string, fn?: any, capture?: boolean): number

Removes one or more event listeners attached to elements owned by this Control.

Parameters
Inherited From
DisposableObject
Returns
number

render

render(container?: HTMLElement): HTMLElement

Renders the layoutitem in the specified container.

Parameters
Inherited From
LayoutItem
Returns
HTMLElement