sap.gantt.GanttChartWithTable.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.GanttChartWithTable with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.gantt.GanttChartBase.extend.
Parameters:
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
{function} | Created class / constructor function |
Returns a metadata object for class sap.gantt.GanttChartWithTable.
Returns:
Adds some column to the aggregation columns
.
Parameters:
Returns:
Adds some customToolbarItem to the aggregation customToolbarItems
.
Parameters:
{sap.ui.core.Control} | oCustomToolbarItem | the customToolbarItem to add; if empty, nothing is inserted |
Returns:
autoResizeColumn(iColId)
Triggers automatic resizing of a column to the widest content.(experimental!)
Parameters:
See:
sap.ui.table.Table.autoResizeColumn |
Binds aggregation
customToolbarItems
to model data.
See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo
.
Parameters:
{object} | oBindingInfo | The binding information |
Returns:
Collapses the row for the given row index in the selection panel
Parameters:
{int} | iRowIndex | index of the row to expand |
Returns:
See:
sap.ui.table.Table.collapse |
deselectRelationships(aIds?): boolean
Deselects relationships and returns a success code.
Parameters:
{array} | aIds? | List of the relationships that you want to deselect |
Returns:
{boolean} | - If any selection change is applied, returns true. |
deselectRows(aIds?): boolean
Deselects rows and returns a success code.
Parameters:
{array} | aIds? | List of the rows that you want to deselect |
Returns:
{boolean} | - If any selection change is applied, returns true. |
deselectShapes(aIds?): boolean
Deselects in-row shapes and returns a success code.
Parameters:
{array} | aIds? | List the shapes that you want to deselect |
Returns:
{boolean} | If any selection change is applied, returns true. |
Destroys all the columns in the aggregation columns
.
Returns:
Destroys all the customToolbarItems in the aggregation customToolbarItems
.
Returns:
Expands the row for the given row index in the selection panel
Parameters:
{int} | iRowIndex | Index of the row to expand |
Returns:
See:
sap.ui.table.Table.expand |
Expands the selection panel to the given level
Parameters:
{int} | iLevel | Level of the selection panel to expand |
Returns:
See:
sap.ui.table.TreeTable.expandToLevel |
getAllSelections(): object
Gets all selected rows, shapes, and relationships
Returns:
{object} | The returned object contains "rows" for all selected rows, "shapes" for all selected shapes, and "relationships" for all selected relationships |
getCellCallback(): object
Gets current value of property
cellCallback
.
A customized cell callback function.
This property is used in combination with configuration property hierarchies
. If aggregation columns
is provided, property hierarchies
and cellCallback
is ignored. Otherwise property hierarchies
must provide column configurations that cellCallback can consume. And if cellCallback is not provided, a default cellCallback adds sap.m.Label
to fill cells.
Returns:
{object} | Value of property cellCallback |
Gets content of aggregation
columns
.
Aggregation delegated to sap.ui.table.Table
.
If this aggregation is provided, call back property cellCallBack
and column configuration in property hierarchies
will be ignored.
Returns:
Gets content of aggregation
customToolbarItems
.
Controls to be place in Gantt chart toolbar.
This aggregation is only used when custom toolbar item group is configured to be shown in Gantt chart toolbar. Different from the build-in buttons which are configured to be shown or hidden, these are free controls created by application, only they are placed in container toolbar by sap.gantt.GanttChartWithTable
.
A common recommendation is, if the source select group is enabled and application wants to pre-configure container layouts, the chance to change custom toolbar items is in event handler to event ganttChartSwitchRequested
.
Returns:
getFirstVisibleRow(): int
Gets the first visible row of the selection panel.
Returns:
{int} | the first visible row index |
See:
sap.ui.table.Table.getFirstVisibleRow |
getFixedColumnCount(): int
Gets current value of property
fixedColumnCount
.
Property propagated from sap.ui.table.Table
.
Returns:
{int} | Value of property fixedColumnCount |
getRowByShapeUid(sShapeUid?): object
Get row object by shape uid
Parameters:
{string} | sShapeUid? | shape uid |
Returns:
getSelectedIndex(): int[]
Retrieves the lead selection index. The lead selection index is, among other things, used to determine the start and end of a selection range, when using Shift-Click to select multiple entries.
Returns:
{int[]} | An array containing all selected indexes (ascending ordered integers) |
See:
sap.ui.table.Table.getSelectedIndex |
getSelectedRelationships(): array
Gets selected relationships.
Returns:
{array} | Returns all selected relationships in the chart |
getSelectedRows(): array
Gets selected rows.
Returns:
{array} | Returns all selected rows |
getSelectedShapes(): array
Gets selected in-row shapes.
Returns:
{array} | Returns all selected shapes in the chart |
getToolbarSchemeKey(): string
Returns the effective toolbar scheme key.
Returns:
{string} | - Toolbar scheme key. |
getVisibleRowCount(): int
Gets the number of visible rows in the selection panel.
Returns:
{int} | The first visible row index |
See:
sap.ui.table.Table.getVisibleRowCount |
indexOfColumn(oColumn): int
Checks for the provided sap.ui.table.Column
in the aggregation columns
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
indexOfCustomToolbarItem(oCustomToolbarItem): int
Checks for the provided sap.ui.core.Control
in the aggregation customToolbarItems
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a column into the aggregation columns
.
Parameters:
{sap.ui.table.Column} | oColumn | the column to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the column should be inserted at; for a negative value of iIndex , the column is inserted at position 0; for a value greater than the current size of the aggregation, the column is inserted at the last position |
Returns:
Inserts a customToolbarItem into the aggregation customToolbarItems
.
Parameters:
{sap.ui.core.Control} | oCustomToolbarItem | the customToolbarItem to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the customToolbarItem should be inserted at; for a negative value of iIndex , the customToolbarItem is inserted at position 0; for a value greater than the current size of the aggregation, the customToolbarItem is inserted at the last position |
Returns:
jumpToPosition(oDate)
Scrolls the visible chart area to a certain time.
It can be used to implement the function of 'Jump To First', 'Jump To Last' and 'Jump To Current'.
Parameters:
{Date} | oDate | The date object to which the user wants the visible area to scroll. |
Removes all the controls from the aggregation
columns
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
customToolbarItems
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a column from the aggregation columns
.
Parameters:
Returns:
Removes a customToolbarItem from the aggregation customToolbarItems
.
Parameters:
{int|string|sap.ui.core.Control} | vCustomToolbarItem | The customToolbarItemto remove or its index or id |
Returns:
selectRelationships(aIds?, isExclusive?): boolean
Selects relationships and returns a success code.
Parameters:
{array} | aIds? | List of the relationships that you want to select |
{boolean} | isExclusive? | Whether all other selected relationships are deselected |
Returns:
{boolean} | - If any selection change is applied, returns true. |
selectRows(aIds?, isExclusive?): boolean
Selects rows and returns a success code.
Parameters:
{array} | aIds? | List of the rows that you want to select |
{boolean} | isExclusive? | Whether all other selected elements are deselected |
Returns:
{boolean} | - If any selection change is applied, returns true. |
selectRowsAndShapes(aIds?, bIsExclusive?): boolean
Selects rows and all in-row shapes contained in the rows.
Parameters:
{array} | aIds? | Row uids |
{boolean} | bIsExclusive? | Whether all other selected rows and shapes are deselected |
Returns:
{boolean} | - If any selection change is applied, returns true. |
selectShapes(aIds?, isExclusive?): boolean
Selects in-row shapes and returns a success code.
Parameters:
{array} | aIds? | List of the shapes that you want to select |
{boolean} | isExclusive? | Whether all other selected shapes are deselected |
Returns:
{boolean} | If any selection change is applied, returns true. |
Sets a new value for property
cellCallback
.
A customized cell callback function.
This property is used in combination with configuration property hierarchies
. If aggregation columns
is provided, property hierarchies
and cellCallback
is ignored. Otherwise property hierarchies
must provide column configurations that cellCallback can consume. And if cellCallback is not provided, a default cellCallback adds sap.m.Label
to fill cells.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{object} | oCellCallback | New value for property cellCallback |
Returns:
Sets the first visible row in the selection panel.
Parameters:
{int} | iRowIndex | The row index to be set as the first visible row |
Returns:
See:
sap.ui.table.Table.setFirstVisibleRow |
Sets a new value for property
fixedColumnCount
.
Property propagated from sap.ui.table.Table
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{int} | iFixedColumnCount | New value for property fixedColumnCount |
Returns:
Selects a row in the selection panel.
Parameters:
{int} | iRowIndex | The row index to be selected (if any exists) |
Returns:
See:
sap.ui.table.Table.setSelectedIndex |
Unbinds aggregation customToolbarItems
from model data.
Returns: