v7.3.0
SupportExamplesFree Trial

TimelineBase
Abstract

Abstract base class used by timeline based components such as Scheduler and Gantt. Based on Grid, supplies a "locked" region for columns and a "normal" for rendering of events etc.

See also

No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • Decimal precision used when displaying durations, used by tooltips and DurationColumn. Specify false to use raw value

  • Get/set end date limit of the timeline. Actions such as timeline scrolling, all types of timeline zooms and shifts will respect this limit.

    Has a corresponding runtime maxDate property.

  • Get/set start date limit of the timeline. Actions such as timeline scrolling, all types of timeline zooms and shifts will respect this limit.

    Has a corresponding runtime minDate property.

  • Preserve the grid's vertical scroll position when changesets are applied, as in the case of remote changes, or when stores are configured with syncDataOnLoad.

    Has a corresponding runtime preserveScroll property.

  • Set true to add a border to this container's element.

  • committingCls : Stringb-sch-committing
    private
    TimelineEventRendering

    The CSS class added to an event when it is currently committing changes

  • The CSS class added to an event when it has unsaved modifications

  • endsOutsideViewCls : Stringb-sch-event-endsoutside
    private
    TimelineEventRendering

    The CSS class added to an event/assignment when it ends outside of the visible time range.

  • eventCls : String
    private

    CSS class to add to rendered events

  • fixedEventCls : Stringb-sch-event-fixed
    private
    TimelineEventRendering

    The CSS class added to an event/assignment when it is not draggable.

  • The CSS class added to an event/assignment when it is newly created in the UI and unsynced with the server.

  • A CSS class to apply to each event in the view on mouseover.

  • startsOutsideViewCls : Stringb-sch-event-startsoutside
    private
    TimelineEventRendering

    The CSS class added to an event/assignment when it starts outside of the visible time range.

  • Custom style spec to add to element

    Has a corresponding runtime style property.

  • timeCellCls : String
    private

    CSS class to add to cells in the timeaxis column

  • Update fields if the record changes

  • Can be set to true to make a focus of a focusable encapsulating element relay focus down into a focusable child. This is normally false to allow mousedown to begin text selection in Popups.

  • Number of columns to use in a grid layout. Applied as grid-template-columns: repeat(n, auto). Also applies the b-columns CSS class to the container.

    Has a corresponding runtime gridColumns property.

  • isolateFields : Booleanfalse
    internal
    Grid

    Specify true to isolate record changes to this container and its ancestors. Prevents record updates from propagating up from here and also prevents record updates from parent from propagating down to us.

  • The tools to add either before or after the title in the Panel header. Each property name is the reference by which an instantiated tool may be retrieved from the live tools property.

    Has a corresponding runtime tools property.

  • Element (or the id of an element) to append this widget's element to. Can be configured, or set once at runtime. To access the element of a rendered widget, see element.

    Has a corresponding runtime appendTo property.

  • Object to apply to elements dataset (each key will be used as a data-attribute on the element)

    Has a corresponding runtime dataset property.

  • A createElement config object or HTML string from which to create the Widget's element.

    Has a corresponding runtime element property.

  • Widget id, if not specified one will be generated. Also used for lookups through Widget.getById

    Has a corresponding runtime id property.

  • Element (or element id) to insert this widget before. If provided, appendTo config is ignored.

    Has a corresponding runtime insertBefore property.

  • Element (or element id) to append this widget element to, as a first child. If provided, appendTo config is ignored.

    Has a corresponding runtime insertFirst property.

  • Internal listeners, that cannot be removed by the user.

  • Configure UI transitions for various actions in the grid.

    • insertRecord : Boolean

      Transition record insertions

    • removeRecord : Boolean

      Transition record removals

    • toggleColumn : Boolean

      Transition column visibility changes

    • expandCollapseColumn : Boolean

      Transition parent/group column expand/collapse

    • toggleRegion : Boolean

      Transition region expand/collapse

    • toggleTreeNode : Boolean

      Transition tree node expand/collapse

    • toggleGroup : Boolean

      Transition group expand/collapse

    • filterRemoval : Booleanfalse

      Transition row removals caused by filtering (under specific conditions)

    Has a corresponding runtime transition property.

  • When this widget is a child of a Container, it will by default be participating in a flexbox layout. This config allows you to set this widget's align-self style.

    Has a corresponding runtime alignSelf property.

  • Automatically set grids height to fit all rows (no scrolling in the grid). In general you should avoid using autoHeight: true, since it will bypass Grids virtual rendering and render all rows at once, which in a larger grid is really bad for performance.

  • Controls whether the panel is collapsed (the body of the panel is hidden while only the header is visible). Only valid if the panel is collapsible.

    Has a corresponding runtime collapsed property.

  • Set to true to stretch the last column in a grid with all fixed width columns to fill extra available space if the grid's width is wider than the sum of all configured column widths.

  • When this widget is a child of a Container, it will by default be participating in a flexbox layout. This config allows you to set this widget's flex style. This may be configured as a single number or a <flex-grow> <flex-shrink> <flex-basis> format string. numeric-only values are interpreted as the flex-grow value.

    Has a corresponding runtime flex property.

  • Widget's height, used to set element style.height. Either specify a valid height string or a number, which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some cases this config is convenient.

    Has a corresponding runtime height property.

  • Configure with true to make widget initially hidden.

    Has a corresponding runtime hidden property.

  • Widget's margin. This may be configured as a single number or a TRBL format string. numeric-only values are interpreted as pixels.

    Has a corresponding runtime margin property.

  • The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that like height, reading the value will return the numeric value in pixels.

    Has a corresponding runtime maxHeight property.

  • The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that like width, reading the value will return the numeric value in pixels.

    Has a corresponding runtime maxWidth property.

  • The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that like width, reading the value will return the numeric value in pixels.

    Has a corresponding runtime minWidth property.

  • Set to false to only measure cell contents when double-clicking the edge between column headers.

  • A widgets weight determines its position among siblings when added to a Container. Higher weights go further down.

  • Widget's width, used to set element style.width. Either specify a valid width string or a number, which will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases this config is convenient.

    Has a corresponding runtime width property.

  • A Mask config object, or a message to be shown when a store is performing a remote operation, or Crud Manager is loading data from the sever. Set to null to disable default load mask.

  • Deprecated:

    7.0.0 Deprecated animateFilterRemovals. Use transition.filterRemoval instead

    Set to true to animate row removals caused by filtering.

  • Deprecated:

    7.0.0 Deprecated animateRemovingRows. Use transition.removeRecord instead

    Controls if removing and inserting rows should be animated. Set to false to prevent those animations, removing the related delays.

  • Set to false to crop text in grid cells without ellipsis (...). When enabled, cells containing pure use display : block, instead of display : flex to allow ellipsis to work. NOTE Only supported in browsers that support :has() CSS selector

    Has a corresponding runtime cellEllipsis property.

  • Set to false to not show column lines. End result might be overruled by/differ between themes.

    Has a corresponding runtime columnLines property.

  • contextMenuTriggerEvent : 'contextmenu'/'click'/'dblclick'contextmenu
    Grid

    Event which is used to show context menus. Available options are: 'contextmenu', 'click', 'dblclick'.

  • dataField : String
    ADVANCED
    Grid

    When this Widget configuration is used in the Grid's RowExpander feature's widget config, provide the field on the expanded record to use for populating this widget's store (if applicable)

  • Region to which columns are added when they have none specified

  • Set to true to destroy the store when the grid is destroyed.

  • Set to true to not get a warning when using another base class than GridRowModel for your grid data. If you do, and would like to use the full feature set of the grid then include the fields from GridRowModel in your model definition.

  • Deprecated:

    7.3.0 Use features : { stickyCells : true } instead

    Set to true to enable the StickyCells feature, which pins cell content to the top of the grid while rows scroll off the top but remain visible.

  • Set to true to listen for CTRL-Z (CMD-Z on Mac OS) keyboard event and trigger undo (redo when SHIFT is pressed). Only applicable when using a StateTrackingManager.

    Has a corresponding runtime enableUndoRedoKeys property.

  • Set to true to hide the footer elements

    Has a corresponding runtime hideFooters property.

  • Set to true to hide the column header elements

    Has a corresponding runtime hideHeaders property.

  • Set to true to hide the Grid's horizontal scrollbar(s)

  • A CSS class to add to hovered row elements

  • An icon to show before the title. Either pass a CSS class as a string, or pass a DomConfig object describing an element to represent the icon.

  • Set to false to disable localization of this object.

  • Time in ms until a longpress is triggered

    Has a corresponding runtime longPressTime property.

  • Grids change the maskDefaults to cover only their body element.

  • Set to true to apply the default mask to the widget. Alternatively, this can be the mask message or a Mask config object.

  • Grid monitors window resize by default.

  • Specify plugins (an array of classes) in config

    Has a corresponding runtime plugins property.

  • True to preserve focused cell after loading new data

  • Specify true to preserve vertical scroll position after store actions that trigger a refresh event, such as loading new data and filtering.

  • Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a menu on click etc, since the tooltip would be displayed at the same time.

  • If you are rendering this widget to a shadow root inside a web component, set this config to the shadowRoot. If not inside a web component, set it to document.body

  • Set to false to not show row lines. End result might be overruled by/differ between themes.

    Has a corresponding runtime rowLines property.

  • Animation transition duration in milliseconds.

    Has a corresponding runtime transitionDuration property.

  • This config is used with PanelCollapserOverlay to programmatically control the visibility of the panel's body. In this mode of collapse, the body of a collapsed panel is a floating overlay. Setting this config to true will show this element, while false will hide it.

  • enableEventAnimations : Booleantrue
    DEPRECATED
    Deprecated:

    7.0.0 Deprecated enableEventAnimations. Use transition.changeEvent instead

    Set to false if you don't want event bar DOM updates to animate.

    Has a corresponding runtime enableEventAnimations property.

  • Configuration values for the ScrollManager class on initialization. Returns the ScrollManager at runtime.

    Has a corresponding runtime scrollManager property.

  • The class to instantiate to use as the scrollable. Defaults to Scroller.

  • Set to true to allow text selection in the grid cells. Note, this cannot be used simultaneously with the RowReorder feature.

  • Set to true to not get a warning when calling getState when there is a column configured without an id. But the recommended action is to always configure columns with an id when using states.

  • You can set this option to false to make the timeline panel start and end on the exact provided startDate/endDate w/o adjusting them.

  • Set to true to force the time columns to fit to the available space (horizontal or vertical depends on mode). Note that setting suppressFit to true, will disable forceFit functionality. Zooming cannot be used when forceFit is set.

    Has a corresponding runtime forceFit property.

  • When set, the text in the major time axis header sticks in the scrolling viewport as long as possible.

  • Set to true to prevent auto calculating of a minimal tickSize to always fit the content to the screen size. Setting this property on true will disable forceFit behaviour.

    Has a corresponding runtime suppressFit property.

  • A TimeAxis config object or instance, used to create a backing data store of 'ticks' providing the input date data for the time axis of timeline panel. Created automatically if none supplied.

    Has a corresponding runtime timeAxis property.

  • The backing view model for the visual representation of the time axis. Either a real instance or a simple config object.

    Has a corresponding runtime timeAxisViewModel property.

  • A valid JS day index between 0-6 (0: Sunday, 1: Monday etc.) to be considered the start day of the week. When omitted, the week start day is retrieved from the active locale class.

  • Set to true to ignore reacting to DOM events (mouseover/mouseout etc) while scrolling. Useful if you want to maximize scroll performance.

  • Deprecated:

    7.0.0 Deprecated animateTreeNodeToggle. Use transition.toggleTreeNode instead

    When the Tree feature is in use and the Store is a tree store, this config may be set to true to visually animate branch node expand and collapse operations.

    This is not supported in Scheduler and Gantt

    Has a corresponding runtime animateTreeNodeToggle property.

  • The bottom CSS absolute position for this widget. If specified, the widget is implicitly configured as positionable.

  • Programmatic control over which column to start in when used in a grid layout.

    Has a corresponding runtime column property.

  • left : Number/String
    internal
    Grid

    The inset-inline-start CSS absolute position for this widget. If specified, the widget is implicitly configured as positionable.

  • recomposeAsync : Booleantrue
    internal
    Grid

    Set this config to false to disable batching DOM updates on animation frames for this widget. This has the effect of synchronously updating the DOM when configs affecting the rendered DOM are modified. Depending on the situation, this could simplify code while increasing time spent updating the DOM.

  • right : Number/String
    internal
    Grid

    The inset-inline-end CSS absolute position for this widget. If specified, the widget is implicitly configured as positionable.

  • Programmatic control over how many columns to span when used in a grid layout.

    Has a corresponding runtime span property.

  • top : Number/String
    internal
    Grid

    The top CSS absolute position for this widget. If specified, the widget is implicitly configured as positionable.

  • maxZoomSteps : Number100
    internal
    ADVANCED
    TimelineSmoothZoom

    Maximum number of interpolated zoom levels to generate between each pair of presets when using smooth zooming. This limits the total number of smooth zoom levels and prevents excessively long zooming chains when presets have a large tick size difference.

    Has a corresponding runtime maxZoomSteps property.

  • Integer number indicating the size of timespan during zooming. When zooming, the timespan is adjusted to make the scrolling area visibleZoomFactor times wider than the timeline area itself. Used in zoomToSpan and zoomToLevel functions.

  • Whether the originally rendered timespan should be preserved while zooming. By default, it is set to false, meaning the timeline panel will adjust the currently rendered timespan to limit the amount of HTML content to render. When setting this option to true, be careful not to allow to zoom a big timespan in seconds resolution for example. That will cause a lot of HTML content to be rendered and affect performance. You can use minZoomLevel and maxZoomLevel config options for that.

  • If true, you can zoom in and out on the time axis using CTRL + mouse wheel.

  • If true, you can zoom to a time span by double-clicking a time axis cell.

Properties

Properties are getters/setters or publicly accessible variables on this class
  • isDelayable : Booleantrue
    READONLY
    static
    ADVANCED
    Delayable
    Identifies an object as an instance of Delayable class, or subclass thereof.
  • isEvents : Booleantrue
    READONLY
    static
    ADVANCED
    Events
    Identifies an object as an instance of Events class, or subclass thereof.
  • isGridElementEvents : Booleantrue
    READONLY
    static
    ADVANCED
    GridElementEvents
    Identifies an object as an instance of GridElementEvents class, or subclass thereof.
  • isGridFeatures : Booleantrue
    READONLY
    static
    ADVANCED
    GridFeatures
    Identifies an object as an instance of GridFeatures class, or subclass thereof.
  • isGridResponsive : Booleantrue
    READONLY
    static
    ADVANCED
    GridResponsive
    Identifies an object as an instance of GridResponsive class, or subclass thereof.
  • isGridSelection : Booleantrue
    READONLY
    static
    ADVANCED
    GridSelection
    Identifies an object as an instance of GridSelection class, or subclass thereof.
  • isGridState : Booleantrue
    READONLY
    static
    ADVANCED
    GridState
    Identifies an object as an instance of GridState class, or subclass thereof.
  • isGridSubGrids : Booleantrue
    READONLY
    static
    ADVANCED
    GridSubGrids
    Identifies an object as an instance of GridSubGrids class, or subclass thereof.
  • isKeyMap : Booleantrue
    READONLY
    static
    ADVANCED
    KeyMap
    Identifies an object as an instance of KeyMap class, or subclass thereof.
  • isLoadMaskable : Booleantrue
    READONLY
    static
    ADVANCED
    LoadMaskable
    Identifies an object as an instance of LoadMaskable class, or subclass thereof.
  • isLocalizable : Booleantrue
    READONLY
    static
    ADVANCED
    Localizable
    Identifies an object as an instance of Localizable class, or subclass thereof.
  • isPluggable : Booleantrue
    READONLY
    static
    ADVANCED
    Pluggable
    Identifies an object as an instance of Pluggable class, or subclass thereof.
  • isRTL : Booleantrue
    READONLY
    static
    ADVANCED
    RTL
    Identifies an object as an instance of RTL class, or subclass thereof.
  • isRecurringEvents : Booleantrue
    READONLY
    static
    ADVANCED
    RecurringEvents
    Identifies an object as an instance of RecurringEvents class, or subclass thereof.
  • isState : Booleantrue
    READONLY
    static
    ADVANCED
    State
    Identifies an object as an instance of State class, or subclass thereof.
  • isTimelineBase : Booleantrue
    READONLY
    static
    ADVANCED
    Identifies an object as an instance of TimelineBase class, or subclass thereof.
  • isTimelineDateMapper : Booleantrue
    READONLY
    static
    ADVANCED
    TimelineDateMapper
    Identifies an object as an instance of TimelineDateMapper class, or subclass thereof.
  • isTimelineDomEvents : Booleantrue
    READONLY
    static
    ADVANCED
    TimelineDomEvents
    Identifies an object as an instance of TimelineDomEvents class, or subclass thereof.
  • Identifies an object as an instance of TimelineEventRendering class, or subclass thereof.
  • isTimelineScroll : Booleantrue
    READONLY
    static
    ADVANCED
    TimelineScroll
    Identifies an object as an instance of TimelineScroll class, or subclass thereof.
  • isTimelineSmoothZoom : Booleantrue
    READONLY
    static
    ADVANCED
    TimelineSmoothZoom
    Identifies an object as an instance of TimelineSmoothZoom class, or subclass thereof.
  • isTimelineState : Booleantrue
    READONLY
    static
    ADVANCED
    TimelineState
    Identifies an object as an instance of TimelineState class, or subclass thereof.
  • isTimelineViewPresets : Booleantrue
    READONLY
    static
    ADVANCED
    TimelineViewPresets
    Identifies an object as an instance of TimelineViewPresets class, or subclass thereof.
  • isTimelineZoomable : Booleantrue
    READONLY
    static
    ADVANCED
    TimelineZoomable
    Identifies an object as an instance of TimelineZoomable class, or subclass thereof.
  • isToolable : Booleantrue
    READONLY
    static
    ADVANCED
    Toolable
    Identifies an object as an instance of Toolable class, or subclass thereof.
  • properties : Object
    internal
    static
    Grid

    A class property getter for the default values of internal properties for this class.

  • Predefined event colors, useful in combos etc.

  • Predefined event styles , useful in combos etc.

  • all : Widget[]
    internal
    READONLY
    static
    Grid

    Returns an array containing all existing Widgets. The returned array is generated by this call and is not an internal structure.

  • focusVisible : Boolean
    internal
    READONLY
    static
    Grid

    This property yields true if the currently focused element has been reached through other means than mouse click. If the activeElement matches :focus-visible.

  • recomposeAsync : Boolean
    internal
    static
    Grid

    Get/set the recomposeAsync config for all widgets. Setting this value will set the config for all existing widgets and will be the default value for newly created widgets. Set this value to null to disable the default setting for new widgets while leaving existing widgets unaffected.

    Has a corresponding recomposeAsync config.

  • tooltip : Tooltip
    READONLY
    static
    Grid

    The shared Tooltip instance which handles tooltips which are not configured with newInstance : true.

  • Get/set end date limit of the timeline. Actions such as timeline scrolling, all types of timeline zooms and shifts will respect this limit.

    Has a corresponding maxDate config.

  • Get/set start date limit of the timeline. Actions such as timeline scrolling, all types of timeline zooms and shifts will respect this limit.

    Has a corresponding minDate config.

  • Preserve the grid's vertical scroll position when changesets are applied, as in the case of remote changes, or when stores are configured with syncDataOnLoad.

    Has a corresponding preserveScroll config.

  • Get the PresetStore created for the Scheduler, or set an array of ViewPreset config objects.

    Has a corresponding presets config.

  • subGrids : Object<String, SubGrid>
    READONLY
    GridSubGrids

    An object containing the SubGrid region instances, indexed by subGrid id ('locked', normal'...)

  • Get/set the current view preset

    Has a corresponding viewPreset config.

  • emptyArray : Array
    internal
    READONLY
    Grid

    An empty array that can be used as a default value.

  • emptyObject : Object
    internal
    READONLY
    Grid

    An empty object that can be used as a default value.

  • isContainer : Booleantrue
    READONLY
    ADVANCED
    Grid
    Identifies an object as an instance of Container class, or subclass thereof.
  • isGrid : Booleantrue
    READONLY
    ADVANCED
    Grid
    Identifies an object as an instance of Grid class, or subclass thereof.
  • isGridBase : Booleantrue
    READONLY
    ADVANCED
    Grid
    Identifies an object as an instance of GridBase class, or subclass thereof.
  • isPanel : Booleantrue
    READONLY
    ADVANCED
    Grid
    Identifies an object as an instance of Panel class, or subclass thereof.
  • isTimelineBase : Booleantrue
    READONLY
    ADVANCED
    Identifies an object as an instance of TimelineBase class, or subclass thereof.
  • isWidget : Booleantrue
    READONLY
    ADVANCED
    Grid
    Identifies an object as an instance of Widget class, or subclass thereof.
  • Number of columns to use in a grid layout. Applied as grid-template-columns: repeat(n, auto). Also applies the b-columns CSS class to the container.

    Has a corresponding gridColumns config.

  • initialItems : Boolean
    internal
    READONLY
    Grid

    This property is true until the container's initial items config has been processed. This property is set to false by the updateItems method.

  • bbar : Toolbar
    READONLY
    Grid

    Get toolbar Toolbar docked to the bottom of the panel

    Has a corresponding bbar config.

  • tbar : Toolbar
    READONLY
    Grid

    Get toolbar Toolbar docked to the top of the panel

    Has a corresponding tbar config.

  • The tools as specified by the tools configuration. Each is a Tool instance which may be hidden, shown and observed and styled just like any other widget.

    Has a corresponding tools config.

  • Element (or the id of an element) to append this widget's element to. Can be configured, or set once at runtime. To access the element of a rendered widget, see element.

    Has a corresponding appendTo config.

  • contentElement : HTMLElement
    READONLY
    ADVANCED
    Grid

    The child element into which content should be placed. This means where html should be put, or, for Containers, where child items should be rendered.

  • Get widgets elements dataset or assign to it

    Has a corresponding dataset config.

  • Get this widget's encapsulating HTMLElement, which is created along with the widget but added to DOM at render time.

    Has a corresponding element config.

  • focusElement : HTMLElement
    READONLY
    ADVANCED
    Grid

    Get this widget's primary focus holding element if this widget is itself focusable, or contains focusable widgets.

  • focusability : Focusability
    internal
    READONLY
    Grid

    Returns an object describing the focus and keyboard navigation aspects of this widget's focusElement.

  • focusableElement : HTMLElement
    READONLY
    ADVANCED
    Grid

    Returns this widget's focusElement if that element can currently be given focus (e.g., this widget is not disabled, or hidden).

  • hasPainted : Boolean
    internal
    READONLY
    Grid

    This property is set to true after processing the initial paint for the widget. It remains false during the initial paint. The intended use for this flag is to avoid processing that will be handled by the first paint (similar to not firing events during the widget's initial configuration). If this field is true, the initial paint has already taken place, otherwise, it has yet to run. This field differs from isPainted which checks that the widget's element is attached to the DOM.

  • Get/set widgets id

    Has a corresponding id config.

  • Element (or element id) to insert this widget before. If provided, appendTo config is ignored.

    Has a corresponding insertBefore config.

  • Element (or element id) to append this widget element to, as a first child. If provided, appendTo config is ignored.

    Has a corresponding insertFirst config.

  • overflowElement : HTMLElement
    READONLY
    ADVANCED
    Grid

    The child element which scrolls if any. This means the element used by the scrollable.

  • staticClassList : DomClassList
    internal
    READONLY
    Grid

    Returns the DomClassList for this widget's class. This object should not be mutated.

  • Get/set widgets elements style. The setter accepts a cssText string or a style config object, the getter always returns a CSSStyleDeclaration

    Has a corresponding style config.

  • The currently hovered timeline context. This is updated as the mouse or pointer moves over the timeline.

  • Returns the center date of the currently visible timespan of scheduler.

  • contentHeight : Number
    private
    READONLY
    Grid

    Returns content height calculated from row manager

  • keyMapElement : HTMLElement
    private
    READONLY
    KeyMap

    Override to attach the keyMap keydown event listener to something else than this.element

  • keyMapSubComponents : Object
    private
    READONLY
    KeyMap

    Override to make keyMap resolve subcomponent actions to something else than this.features.

  • Get/set this widget's align-self flexbox setting. This may be set to modify how this widget is aligned within the cross axis of a flexbox layout container.

    Has a corresponding alignSelf config.

  • Body height

  • Controls whether the panel is collapsed (the body of the panel is hidden while only the header is visible). Only valid if the panel is collapsible.

    Has a corresponding collapsed config.

  • This property is true if the panel is currently collapsing.

  • collapsingExpanding : Boolean
    internal
    READONLY
    Grid

    This property is true if the panel is currently either collapsing or expanding.

  • This property is true if the panel is currently expanding.

  • Footer height

  • Header height

  • Get element's offsetHeight or sets its style.height, or specified height if element no created yet.

    Has a corresponding height config.

  • Get element's margin property. This may be configured as a single number or a TRBL format string. numeric-only values are interpreted as pixels.

    Has a corresponding margin config.

  • Get/set element's maxHeight. Getter returns max-height from elements style, which is always a string. Setter accepts either a String or a Number (which will have 'px' appended). Note that like height, reading the value will return the numeric value in pixels.

    Has a corresponding maxHeight config.

  • Get/set elements maxWidth. Getter returns max-width from elements style, which is always a string. Setter accepts either a String or a Number (which will have 'px' appended). Note that like width, reading the value will return the numeric value in pixels.

    Has a corresponding maxWidth config.

  • Get/set element's minHeight. Getter returns min-height from elements style, which is always a string. Setter accepts either a String or a Number (which will have 'px' appended). Note that like height, reading the value will return the numeric value in pixels.

    Has a corresponding minHeight config.

  • Get/set elements minWidth. Getter returns min-width from elements style, which is always a string. Setter accepts either a String or a Number (which will have 'px' appended). Note that like width, reading the value will return the numeric value in pixels.

    Has a corresponding minWidth config.

  • Accessor to the Scroller which can be used to both set and read scroll information.

    Has a corresponding scrollable config.

  • Get elements offsetWidth or sets its style.width, or specified width if element not created yet.

    Has a corresponding width config.

  • config : Object
    READONLY
    ADVANCED
    Grid

    Returns a copy of the full configuration which was used to configure this object.

  • isConstructing : Boolean
    READONLY
    ADVANCED
    Grid

    This property is set to true before the constructor returns.

  • isDestroying : Boolean
    READONLY
    ADVANCED
    Grid

    This property is set to true on entry to the destroy method. It remains on the objects after returning from destroy(). If isDestroyed is true, this property will also be true, so there is no need to test for both (for example, comp.isDestroying || comp.isDestroyed).

  • assignedId : String
    private
    READONLY
    Grid

    Get id assigned by user (not generated id)

  • Set to false to crop text in grid cells without ellipsis (...). When enabled, cells containing pure use display : block, instead of display : flex to allow ellipsis to work. NOTE Only supported in browsers that support :has() CSS selector

    Has a corresponding cellEllipsis config.

  • Set to false to not show column lines. End result might be overruled by/differ between themes.

    Has a corresponding columnLines config.

  • disabled : Boolean/'inert'
    Grid

    Get/set element's disabled state. Set to 'inert' to also set the inert DOM attribute.

    Has a corresponding disabled config.

  • Set to true to listen for CTRL-Z (CMD-Z on Mac OS) keyboard event and trigger undo (redo when SHIFT is pressed). Only applicable when using a StateTrackingManager.

    Has a corresponding enableUndoRedoKeys config.

  • true if no id was set, will use generated id instead (widget1, ...). Toggle automatically on creation

  • Set to true to hide the footer elements

    Has a corresponding hideFooters config.

  • Set to true to hide the column header elements

    Has a corresponding hideHeaders config.

  • The currently hovered grid cell

  • This readonly property is true for normal widgets in the items of a container. It is false for special widgets such as a tbar.

  • Get the global LocaleHelper

  • Get the global LocaleManager

  • Time in ms until a longpress is triggered

    Has a corresponding longPressTime config.

  • plugins : Object<String, InstancePlugin>
    READONLY
    ADVANCED
    Pluggable

    Map of applied plugins

    Has a corresponding plugins config.

  • Get currently used responsive level (as string)

  • Set to false to not show row lines. End result might be overruled by/differ between themes.

    Has a corresponding rowLines config.

  • tab : Tab
    READONLY
    Grid

    The tab created for this widget when it is placed in a TabPanel.

    Has a corresponding tab config.

  • Animation transition duration in milliseconds.

    Has a corresponding transitionDuration config.

  • bottomRow : Row
    private
    READONLY
    Grid

    Get the Row currently displayed furthest down.

  • Get the topmost visible grid row

  • Get the last visible grid row

  • topRow : Row
    private
    READONLY
    Grid

    Get the Row that is currently displayed at top.

  • enableEventAnimations : Booleantrue
    DEPRECATED
    Deprecated:

    7.0.0 Deprecated enableEventAnimations. Use transition.changeEvent instead

    Set to false if you don't want event bar DOM updates to animate.

    Has a corresponding enableEventAnimations config.

  • Returns true if any of the events/tasks or feature injected elements (such as ResourceTimeRanges) are within the timeAxis

  • Configuration values for the ScrollManager class on initialization. Returns the ScrollManager at runtime.

    Has a corresponding scrollManager config.

  • Get/set vertical scroll

  • In cell selection mode, this will get the cell selector for the (last) selected cell. Set to an available cell selector to select only that cell. Or use selectCell() instead.

  • CSS selector for the currently selected cell. Format is "[data-index=index] [data-column-id=column]".

  • In cell selection mode, this will get the cell selectors for all selected cells. Set to an array of available cell selectors. Or use selectCells() instead.

  • The last selected record. Set to select a row or use Grid#selectRow. Set to null to deselect all

  • isStateful : Boolean
    READONLY
    ADVANCED
    State

    Returns true if this instance implements the State interface.

  • isStatefulActive : Boolean
    internal
    READONLY
    State

    Returns true if this instance is ready to participate in state activities.

  • Returns the state key to use for this instance. This will be either the stateId or the id (if explicitly specified and stateful is not false).

  • statefulness : Object
    private
    READONLY
    State

    Returns an object whose truthy keys are the config properties to include in this object's state.

  • Set to true to force the time columns to fit to the available space (horizontal or vertical depends on mode). Note that setting suppressFit to true, will disable forceFit functionality. Zooming cannot be used when forceFit is set.

    Has a corresponding forceFit config.

  • Returns the partnered timelines.

  • Set to true to prevent auto calculating of a minimal tickSize to always fit the content to the screen size. Setting this property on true will disable forceFit behaviour.

    Has a corresponding suppressFit config.

  • timeAxis : TimeAxis
    READONLY

    A backing data store of 'ticks' providing the input date data for the time axis of timeline panel.

    Has a corresponding timeAxis config.

  • Returns the TimeAxisColumn instance

  • Returns the subGrid containing the time axis

  • Returns the html element for the subGrid containing the time axis

  • The internal view model, describing the visual representation of the time axis.

    Has a corresponding timeAxisViewModel config.

  • Gets or sets timeline's state. Check out TimelineState mixin for details.

  • Deprecated:

    7.0.0 Deprecated animateTreeNodeToggle. Use transition.toggleTreeNode instead

    When the Tree feature is in use and the Store is a tree store, this config may be set to true to visually animate branch node expand and collapse operations.

    This is not supported in Scheduler and Gantt

    Has a corresponding animateTreeNodeToggle config.

  • Determines visibility by checking if the Widget is hidden, or any ancestor is hidden and that it has an element which is visible in the DOM

  • Programmatic control over which column to start in when used in a grid layout.

    Has a corresponding column config.

  • isComposable : Boolean
    internal
    READONLY
    Grid

    Returns true if this class uses compose() to render itself.

  • overflowTwin : Widget
    internal
    READONLY
    Grid

    This widget's twin that is placed in an overflow menu when this widget has been hidden by its owner, typically a Toolbar due to overflow. The overflowTwin is created lazily by ensureOverflowTwin.

  • Programmatic control over how many columns to span when used in a grid layout.

    Has a corresponding span config.

  • Get this Widget's next sibling in the parent Container, or, if not in a Container, the next sibling widget in the same parentElement.

  • Get this Widget's parent when used as a child in a Container,

  • Get this Widget's previous sibling in the parent Container, or, if not in a Container, the previous sibling widget in the same parentElement.

  • widgetMap : Object<String, Widget>
    READONLY
    Grid

    An object which contains a map of descendant widgets keyed by their ref. All descendant widgets will be available in the widgetMap.

  • Get/set the maxZoomLevel value

    Has a corresponding maxZoomLevel config.

  • maxZoomSteps : Number100
    internal
    ADVANCED
    TimelineSmoothZoom

    Maximum number of interpolated zoom levels to generate between each pair of presets when using smooth zooming. This limits the total number of smooth zoom levels and prevents excessively long zooming chains when presets have a large tick size difference.

    Has a corresponding maxZoomSteps config.

  • Sets the minZoomLevel value

    Has a corresponding minZoomLevel config.

Functions

Functions are methods available for calling on the class
  • onClassMixedIn( )
    internal
    static
    Grid

    This optional class method is called when a class is mixed in using the mixin() method.

  • initScroll( )
    private

    Overrides initScroll from Grid, listens for horizontal scroll to do virtual event rendering

  • Refreshes the grid with transitions enabled.

  • emptyCache( )
    internal
    Grid

    Clear caches, forces all calls to fromCache to requery dom. Called on render/rerender.

  • Applies the start and end date to each event store request (formatted in the same way as the start date field, defined in the EventStore Model class).

  • Internal function used to hook destroy() calls when using thisObj

  • Internal function used restore hooked destroy() calls when using thisObj

  • doDestroy( )
    internal
    Events

    Auto detaches listeners registered from start, if set as detachable

  • Init listeners for a bunch of dom events. All events are handled by handleEvent().

  • once( )
    private
    Events

    Internal function used to run a callback function after an event is triggered

  • Removes all listeners registered to this object by the application.

  • Remember scroll position when store is about to apply a changeset

  • Creates a fake subgrid with one row and measures its height. Result is used as rowHeight.

  • onThemeChange( )
    private
    Grid

    Handler for global theme change event (triggered by shared.js). Remeasures row height.

  • Recalculates virtual scrollbars widths and scrollWidth

  • Restore scroll position. Go to the topmost row formerly in the view that is still present in the dataset.

  • Adds extra classes to the Grid element after it's been configured. Also iterates through features, thus ensuring they have been initialized.

  • Used internally to get a range of cell selectors from a start selector to an end selector.

  • collapseAll( )
    FROM-FEATURE
    NON-LAZY-LOAD
    Grid

    Collapse all groups. This function is exposed on Grid and can thus be called as grid.collapseAll()

    Added by the Group feature, only available when that feature is enabled.

  • expandAll( )
    FROM-FEATURE
    NON-LAZY-LOAD
    Grid

    Expand all groups. This function is exposed on Grid and can thus be called as grid.expandAll()

    Added by the Group feature, only available when that feature is enabled.

  • Called on keyMapElement keyDown

  • finalizeInit( )
    internal
    Grid

    Called by the Base constructor after all configs have been applied.

  • Find closes bigger level, aka level we want to use.

  • Resumes CSS transitions after a row / event has been updated

  • Hide the load mask.

  • Collapse the panel.

  • Expand the panel.

  • Template method which may be implemented in subclasses to initialize any plugins. This method is empty in the Pluggable base class.

  • Rerenders all grid headers

  • Rerenders the grids rows, headers and footers, completely replacing all row elements with new ones

  • Rerenders all grid rows, completely replacing all row elements with new ones

  • Triggered from Grid view when the store changes. This might happen if store events are batched and then resumed. Deselects all records which have been removed.

  • Triggered from Grid view when the id of a record has changed. Update the collection indices.

  • Triggered from Grid view when records get removed from the store. Deselects all records which have been removed.

  • Triggered from Grid view when all records get removed from the store. Deselects all records.

  • selectAll( )
    NON-LAZY-LOAD
    GridSelection

    This selects all rows. If store is filtered, this will merge the selection of all visible rows with any selection made prior to filtering.

  • bindStore( )
    private
    Grid

    Hooks up data store listeners

  • onStoreAdd( )
    private
    Grid

    Refreshes rows when data is added to the store

  • Hides load mask after a load request ends either in success or failure

  • Shows a load mask while the connected store is loading

  • Responds to exceptions signalled by the store

  • Rerenders a cell if a record is updated in the store

  • Adds listeners for DOM events for the scheduler and its events. Which events is specified in Scheduler#schedulerEvents.

  • Relays mouseout events as eventmouseleave if out from rendered event. Also removes Scheduler#overScheduledEventClass from the hovered element.

  • Relays mouseover events as eventmouseenter if over rendered event. Also adds Scheduler#overScheduledEventClass to the hovered element.

  • This handles the scheduler being scrolled below the mouse by trackpad or keyboard events. The context, if present needs to be recalculated.

  • Builds the smooth zoom index - a flat array of zoom levels between presets.

  • Cancels any in-progress smooth zoom animation.

  • refreshGroups( )
    private
    FROM-FEATURE
    NON-LAZY-LOAD
    Grid

    Refreshes the store tree grouping by re-applying the current transformation.

    // Refresh groups
    grid.refreshGroups();
    

    Added by the TreeGroup feature, only available when that feature is enabled.

  • afterRecompose( )
    internal
    Grid

    This method is called following an update to the widget's rendered DOM.

  • Disable the widget

  • Enable the widget

  • Unmask the widget

  • fixSizes( )
    private
    Grid

    Sets widths and heights for headers, rows and other parts of the grid as needed

Events

Events are triggered for certain actions in this class and can be listened for to react to those actions in your code
  • Fired when a FillHandle drag operation is aborted.

    Added by the FillHandle feature, only available when that feature is enabled.

  • recompose
    ADVANCED
    Grid

    This event is fired after a widget's elements have been synchronized due to a direct or indirect call to recompose, if this results in some change to the widget's rendered DOM elements.

  • unsplit
    FROM-FEATURE
    Grid

    Fires when un-splitting the Grid.

    Added by the Split feature, only available when that feature is enabled.

Event handlers

Event handlers are callbacks called as a result of certain actions in this class
  • Called when a FillHandle drag operation is aborted.

    Added by the FillHandle feature, only available when that feature is enabled.

  • onRecompose
    ADVANCED
    Grid

    This event is called after a widget's elements have been synchronized due to a direct or indirect call to recompose, if this results in some change to the widget's rendered DOM elements.

  • onUnsplit
    FROM-FEATURE
    Grid

    Called when un-splitting the Grid.

    Added by the Split feature, only available when that feature is enabled.

Type definitions