ASP.NET MVC Controls | ComponentOne
In This Topic
    AutoGridTile Class
    In This Topic
    File
    c1.nav.js
    Module
    c1.nav.grid
    Base Class
    GridTile

    Defines the class represents the tile for the auto grid layout.

    Constructor

    Properties

    Methods

    Constructor

    constructor

    constructor(opts?: any): GridTile
    

    Initializes a new GridTile.

    Parameters
    • opts: any
    Optional

    JavaScript object containing initialization data for the tile.

    Inherited From
    GridTile
    Returns
    GridTile

    Properties

    allowDrag

    Gets or sets a boolean value decides whether the tile could be dragged.

    Inherited From
    Tile
    Type
    boolean

    allowHide

    Gets or sets a boolean value decides whether the tiles could be hidden.

    Inherited From
    Tile
    Type
    boolean

    allowMaximize

    Gets or sets a boolean value decides whether the tiles could be maximized.

    Inherited From
    Tile
    Type
    boolean

    allowResize

    Gets or sets a boolean value decides whether the tile could be resized.

    Inherited From
    GridTile
    Type
    boolean

    columnSpan

    Gets or sets the column spans occupied by this tile.

    Inherited From
    GridTile
    Type
    number

    content

    Gets or sets the tile content(text/html) or the selector of the dom element which contains the content.

    Inherited From
    Tile
    Type
    string

    headerText

    Gets or sets the tile header title.

    Inherited From
    Tile
    Type
    string

    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

    maximum

    Gets a boolean value represents whether the tile is maximized.

    Inherited From
    Tile
    Type
    boolean

    maxResizeHeight

    Gets or sets the maximum values of tile's height when resizing

    Inherited From
    Tile
    Type
    number

    maxResizeWidth

    Gets or sets the maximum values of tile's width when resizing

    Inherited From
    Tile
    Type
    number

    parent

    Gets the parent which owns this layoutitem.

    It could be a Group or a LayoutBase.

    Inherited From
    LayoutItem
    Type
    any

    rowSpan

    Gets or sets the row spans occupied by this tile.

    Inherited From
    GridTile
    Type
    number

    showHeader

    Gets or sets a boolean value decides whether to show the header.

    Inherited From
    Tile
    Type
    boolean

    showToolbar

    Gets or sets a boolean value decides whether to show the toolbar.

    Inherited From
    Tile
    Type
    boolean

    visible

    Gets or sets a boolean value decides whether to show the tile.

    Inherited From
    Tile
    Type
    boolean

    Methods

    activate

    activate(): void
    

    Acitvates the current tile.

    Inherited From
    Tile
    Returns
    void

    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

    beginMove

    beginMove(): void
    

    Begins to be moved.

    Inherited From
    Tile
    Returns
    void

    deactivate

    deactivate(): void
    

    Deacitvates the current tile.

    Inherited From
    Tile
    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.

    Returns
    void

    draw

    draw(): void
    

    Draws the tile.

    Inherited From
    GridTile
    Returns
    void

    endMove

    endMove(): void
    

    The moving is to be ended.

    Inherited From
    Tile
    Returns
    void

    initialize

    initialize(options: any): void
    

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

    Parameters
    • options: any

      Object that contains the initialization data.

    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
    • target: EventTarget Optional

      Target element for the event. If null, removes listeners attached to all targets.

    • type: string Optional

      String that specifies the event. If null, removes listeners attached to all events.

    • fn: any Optional

      Handler to remove. If null, removes all handlers.

    • capture: boolean Optional

      Whether the listener is capturing. If null, removes capturing and non-capturing listeners.

    Inherited From
    DisposableObject
    Returns
    number

    render

    render(container?: HTMLElement): HTMLElement
    

    Renders the layoutitem in the specified container.

    Parameters
    • container: HTMLElement Optional

      the container element where the layoutitem renders in.

    Inherited From
    Tile
    Returns
    HTMLElement