Options
All
  • Public
  • Public/Protected
  • All
Menu

GridView columns or rows can accept comma separated strings with absolute pixel value, percent value and star (*).

For example, 20% of total width for first column, 200 pixel for last column and rest of the space is for middle = "20%, *, 200"

You can have only one star specification.

example

 <!-- Header spans for three columns in first row -->
 <header row="0" column="0:3"></header>

 <!-- menu is on first column -->
 <menu row="1" column="0"></menu>

 <!-- Grid splitter splits 1st and 3rd column and itself lies in 2nd column -->
 <AtomGridSplitter row="1" column="1" direction="vertical" />

 <!-- Section fills remaining area -->
 <section row="1" column="2"></section>

 <!-- Help sits on last column -->
 <Help row="1" column="3"></Help>

Hierarchy

Implements

Index

Constructors

constructor

Properties

app

app: App

columns

columns: string

data

data: any

defaultControlStyle

defaultControlStyle: any

disposables

disposables: AtomDisposableList

element

element: HTMLElement

localViewModel

localViewModel: any

Protected pendingInits

pendingInits: Array<function>

rows

rows: string

viewModel

viewModel: any

Static isControl

isControl: true = true

Accessors

controlStyle

parent

theme

vsProps

  • get vsProps(): object | object | __type

Methods

append

atomParent

beginEdit

bind

  • bind(element: HTMLElement, name: string, path: PathList[], twoWays?: boolean | string[], valueFunc?: function, source?: any): IDisposable

bindEvent

  • bindEvent(element: HTMLElement, name?: string, method?: EventListenerOrEventListenerObject, key?: string): IDisposable

Protected create

  • create(): void

dispose

  • dispose(e?: HTMLElement): void

hasProperty

  • hasProperty(name: string): boolean
  • Control checks if property is declared on the control or not. Since TypeScript no longer creates enumerable properties, we have to inspect name and PropertyMap which is generated by @BindableProperty or the value is not set to undefined.

    Parameters

    • name: string

      name of Property

    Returns boolean

invalidate

  • invalidate(): void

onPropertyChanged

  • onPropertyChanged(name: string): void

Protected onUpdateSize

  • onUpdateSize(): void

onUpdateUI

  • onUpdateUI(): void

Protected preCreate

  • preCreate(): void

registerDisposable

Protected removeAllChildren

  • removeAllChildren(e: HTMLElement): void

Protected render

  • render(node: XNode, e?: any, creator?: any): void

resize

  • resize(item: "column" | "row", index: number, delta: number): void

Protected resolve

  • resolve<TService>(c: TService, selfName?: string | function): IAnyInstanceType<TService>

runAfterInit

  • runAfterInit(f: function): void

Protected setElementClass

  • setElementClass(element: HTMLElement, value: any, clear?: boolean): void

Protected setElementValue

  • setElementValue(element: HTMLElement, name: string, value: any): void

setLocalValue

  • setLocalValue(element: HTMLElement, name: string, value: any): void

setPrimitiveValue

  • setPrimitiveValue(element: HTMLElement, name: string, value: any): void

unbind

  • unbind(element: HTMLElement, name?: string): void

unbindEvent

  • unbindEvent(element: HTMLElement, name?: string, method?: EventListenerOrEventListenerObject, key?: string): void

updateSize

  • updateSize(): void

Static getCellInfo

  • getCellInfo(e: HTMLElement): object

Generated using TypeDoc