carbon-components-angular 3.16.3 → 3.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/documentation/classes/DataGridInteractionModel.html +1462 -0
- package/docs/documentation/classes/NumberChange.html +8 -7
- package/docs/documentation/classes/TableAdapter.html +852 -0
- package/docs/documentation/classes/TableCellAdapter.html +445 -0
- package/docs/documentation/classes/TableDomAdapter.html +968 -0
- package/docs/documentation/classes/TableHeaderItem.html +125 -64
- package/docs/documentation/classes/TableItem.html +5 -18
- package/docs/documentation/classes/TableModel.html +445 -180
- package/docs/documentation/classes/TableRowAdapter.html +445 -0
- package/docs/documentation/components/Accordion.html +2 -2
- package/docs/documentation/components/AccordionItem.html +2 -2
- package/docs/documentation/components/AlertModal.html +2 -2
- package/docs/documentation/components/Breadcrumb.html +2 -2
- package/docs/documentation/components/BreadcrumbItemComponent.html +2 -2
- package/docs/documentation/components/Checkbox.html +2 -2
- package/docs/documentation/components/ClickableTile.html +2 -2
- package/docs/documentation/components/CodeSnippet.html +2 -2
- package/docs/documentation/components/ComboBox.html +2 -2
- package/docs/documentation/components/ContentSwitcher.html +2 -2
- package/docs/documentation/components/DatePicker.html +2 -2
- package/docs/documentation/components/DatePickerInput.html +2 -2
- package/docs/documentation/components/Dialog.html +2 -2
- package/docs/documentation/components/DialogPlaceholder.html +2 -2
- package/docs/documentation/components/Documentation.html +2 -2
- package/docs/documentation/components/Dropdown.html +12 -7
- package/docs/documentation/components/DropdownList.html +2 -2
- package/docs/documentation/components/ExpandableTile.html +2 -2
- package/docs/documentation/components/File.html +51 -8
- package/docs/documentation/components/FileUploader.html +41 -29
- package/docs/documentation/components/Hamburger.html +2 -2
- package/docs/documentation/components/Header.html +430 -13
- package/docs/documentation/components/HeaderAction.html +8 -10
- package/docs/documentation/components/HeaderGlobal.html +2 -2
- package/docs/documentation/components/HeaderItem.html +2 -2
- package/docs/documentation/components/HeaderMenu.html +2 -2
- package/docs/documentation/components/HeaderNavigation.html +2 -2
- package/docs/documentation/components/InlineLoading.html +2 -2
- package/docs/documentation/components/Label.html +2 -2
- package/docs/documentation/components/ListColumn.html +2 -2
- package/docs/documentation/components/ListHeader.html +2 -2
- package/docs/documentation/components/ListRow.html +2 -2
- package/docs/documentation/components/Loading.html +2 -2
- package/docs/documentation/components/Modal.html +2 -2
- package/docs/documentation/components/ModalFooter.html +2 -2
- package/docs/documentation/components/ModalHeader.html +2 -2
- package/docs/documentation/components/ModalPlaceholder.html +2 -2
- package/docs/documentation/components/Notification.html +39 -7
- package/docs/documentation/components/{Number.html → NumberComponent.html} +14 -13
- package/docs/documentation/components/OverflowMenu.html +2 -2
- package/docs/documentation/components/OverflowMenuOption.html +2 -2
- package/docs/documentation/components/OverflowMenuPane.html +2 -2
- package/docs/documentation/components/Overlay.html +2 -2
- package/docs/documentation/components/Pagination.html +2 -2
- package/docs/documentation/components/Panel.html +2 -2
- package/docs/documentation/components/Placeholder.html +2 -2
- package/docs/documentation/components/ProductSwitcher.html +2 -2
- package/docs/documentation/components/ProgressIndicator.html +2 -2
- package/docs/documentation/components/Radio.html +2 -2
- package/docs/documentation/components/RadioGroup.html +2 -2
- package/docs/documentation/components/Sample.html +2 -2
- package/docs/documentation/components/SampleSub.html +2 -2
- package/docs/documentation/components/Search.html +2 -2
- package/docs/documentation/components/Select.html +2 -2
- package/docs/documentation/components/SelectionTile.html +2 -2
- package/docs/documentation/components/SideNav.html +2 -2
- package/docs/documentation/components/SideNavHeader.html +2 -2
- package/docs/documentation/components/SideNavItem.html +2 -2
- package/docs/documentation/components/SideNavMenu.html +2 -2
- package/docs/documentation/components/Slider.html +2 -2
- package/docs/documentation/components/StructuredList.html +2 -2
- package/docs/documentation/components/SwitcherList.html +2 -2
- package/docs/documentation/components/SwitcherListItem.html +2 -2
- package/docs/documentation/components/Tab.html +2 -2
- package/docs/documentation/components/TabHeaders.html +34 -32
- package/docs/documentation/components/Table.html +1039 -1121
- package/docs/documentation/components/TableBody.html +1145 -0
- package/docs/documentation/components/TableCheckbox.html +828 -0
- package/docs/documentation/components/TableContainer.html +2 -2
- package/docs/documentation/components/TableData.html +307 -0
- package/docs/documentation/components/TableExpandButton.html +762 -0
- package/docs/documentation/components/TableExpandedRow.html +567 -0
- package/docs/documentation/components/TableHead.html +1549 -0
- package/docs/documentation/components/TableHeadCell.html +1307 -0
- package/docs/documentation/components/TableHeadCheckbox.html +792 -0
- package/docs/documentation/components/TableHeadExpand.html +292 -0
- package/docs/documentation/components/TableHeader.html +2 -2
- package/docs/documentation/components/TableRowComponent.html +1414 -0
- package/docs/documentation/components/TableToolbar.html +2 -2
- package/docs/documentation/components/TableToolbarActions.html +2 -2
- package/docs/documentation/components/TableToolbarContent.html +2 -2
- package/docs/documentation/components/TableToolbarSearch.html +2 -2
- package/docs/documentation/components/Tabs.html +2 -2
- package/docs/documentation/components/Tag.html +2 -2
- package/docs/documentation/components/TagFilter.html +2 -2
- package/docs/documentation/components/Tile.html +2 -2
- package/docs/documentation/components/TileGroup.html +2 -2
- package/docs/documentation/components/TimePicker.html +2 -2
- package/docs/documentation/components/TimePickerSelect.html +2 -2
- package/docs/documentation/components/Toast.html +79 -9
- package/docs/documentation/components/Toggle.html +2 -2
- package/docs/documentation/components/Tooltip.html +2 -2
- package/docs/documentation/components/TooltipDefinition.html +2 -2
- package/docs/documentation/components/TooltipIcon.html +2 -2
- package/docs/documentation/coverage.html +297 -25
- package/docs/documentation/directives/DataGridFocus.html +38 -117
- package/docs/documentation/directives/TableDirective.html +452 -0
- package/docs/documentation/graph/dependencies.dot +2 -4
- package/docs/documentation/images/coverage-badge-documentation.svg +1 -1
- package/docs/documentation/interfaces/DataGridPosition.html +490 -0
- package/docs/documentation/interfaces/FileItem.html +66 -0
- package/docs/documentation/interfaces/NotificationContent.html +39 -0
- package/docs/documentation/interfaces/TableTranslations.html +254 -455
- package/docs/documentation/interfaces/ToastContent.html +1 -0
- package/docs/documentation/js/menu-wc.js +1 -1
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/documentation/modules/FileUploaderModule.html +3 -1
- package/docs/documentation/modules/NumberModule/dependencies.svg +30 -56
- package/docs/documentation/modules/NumberModule.html +32 -58
- package/docs/documentation/modules/TableModule/dependencies.svg +424 -160
- package/docs/documentation/modules/TableModule.html +575 -182
- package/docs/documentation/overview.html +4 -4
- package/docs/storybook/iframe.html +3 -3
- package/docs/storybook/{main.9e8069cf2ee0957ae098.bundle.js → main.edce6b8dbd74b486e13b.bundle.js} +4631 -2440
- package/docs/storybook/main.edce6b8dbd74b486e13b.bundle.js.map +1 -0
- package/docs/storybook/{runtime~main.9e8069cf2ee0957ae098.bundle.js → runtime~main.edce6b8dbd74b486e13b.bundle.js} +1 -1
- package/docs/storybook/{runtime~main.9e8069cf2ee0957ae098.bundle.js.map → runtime~main.edce6b8dbd74b486e13b.bundle.js.map} +1 -1
- package/docs/storybook/{vendors~main.9e8069cf2ee0957ae098.bundle.js → vendors~main.edce6b8dbd74b486e13b.bundle.js} +1 -1
- package/docs/storybook/{vendors~main.9e8069cf2ee0957ae098.bundle.js.map → vendors~main.edce6b8dbd74b486e13b.bundle.js.map} +1 -1
- package/dropdown/dropdown.component.js +4 -0
- package/dropdown/dropdown.component.js.map +1 -1
- package/file-uploader/file-item.interface.d.ts +2 -0
- package/file-uploader/file-item.interface.js.map +1 -1
- package/file-uploader/file-uploader.component.js +3 -1
- package/file-uploader/file-uploader.component.js.map +1 -1
- package/file-uploader/file-uploader.component.metadata.json +1 -1
- package/file-uploader/file-uploader.component.ngfactory.js +9 -8
- package/file-uploader/file-uploader.component.ngfactory.js.map +1 -1
- package/file-uploader/file-uploader.module.js +3 -1
- package/file-uploader/file-uploader.module.js.map +1 -1
- package/file-uploader/file-uploader.module.metadata.json +1 -1
- package/file-uploader/file-uploader.module.ngfactory.js +2 -1
- package/file-uploader/file-uploader.module.ngfactory.js.map +1 -1
- package/file-uploader/file-uploader.module.ngsummary.json +1 -1
- package/file-uploader/file.component.d.ts +1 -0
- package/file-uploader/file.component.js +10 -2
- package/file-uploader/file.component.js.map +1 -1
- package/file-uploader/file.component.metadata.json +1 -1
- package/file-uploader/file.component.ngfactory.js +19 -16
- package/file-uploader/file.component.ngfactory.js.map +1 -1
- package/file-uploader/file.component.ngsummary.json +1 -1
- package/index.ngsummary.json +1 -1
- package/notification/notification-content.interface.d.ts +1 -0
- package/notification/notification-content.interface.js.map +1 -1
- package/notification/notification.component.d.ts +1 -0
- package/notification/notification.component.js +7 -1
- package/notification/notification.component.js.map +1 -1
- package/notification/notification.component.metadata.json +1 -1
- package/notification/notification.component.ngfactory.js +1 -1
- package/notification/notification.component.ngsummary.json +1 -1
- package/notification/toast.component.d.ts +1 -0
- package/notification/toast.component.js +7 -1
- package/notification/toast.component.js.map +1 -1
- package/notification/toast.component.metadata.json +1 -1
- package/notification/toast.component.ngfactory.js +1 -1
- package/notification/toast.component.ngsummary.json +1 -1
- package/number-input/number.component.d.ts +3 -2
- package/number-input/number.component.js +21 -20
- package/number-input/number.component.js.map +1 -1
- package/package.json +1 -1
- package/table/body/table-body.component.d.ts +77 -0
- package/table/body/table-body.component.js +120 -0
- package/table/body/table-body.component.js.map +1 -0
- package/table/body/table-body.component.metadata.json +1 -0
- package/{utils/window-tools.d.ts → table/body/table-body.component.ngfactory.d.ts} +2 -2
- package/table/body/table-body.component.ngfactory.js +62 -0
- package/table/body/table-body.component.ngfactory.js.map +1 -0
- package/table/body/table-body.component.ngsummary.json +1 -0
- package/table/body/table-expanded-row.component.d.ts +28 -0
- package/table/body/table-expanded-row.component.js +58 -0
- package/table/body/table-expanded-row.component.js.map +1 -0
- package/table/body/table-expanded-row.component.metadata.json +1 -0
- package/table/body/table-expanded-row.component.ngfactory.d.ts +21 -0
- package/table/body/table-expanded-row.component.ngfactory.js +39 -0
- package/table/body/table-expanded-row.component.ngfactory.js.map +1 -0
- package/table/body/table-expanded-row.component.ngsummary.json +1 -0
- package/table/body/table-row.component.d.ts +85 -0
- package/table/body/table-row.component.js +163 -0
- package/table/body/table-row.component.js.map +1 -0
- package/table/body/table-row.component.metadata.json +1 -0
- package/table/body/table-row.component.ngfactory.d.ts +21 -0
- package/table/body/table-row.component.ngfactory.js +55 -0
- package/table/body/table-row.component.ngfactory.js.map +1 -0
- package/table/body/table-row.component.ngsummary.json +1 -0
- package/table/cell/table-checkbox.component.d.ts +56 -0
- package/table/cell/table-checkbox.component.js +80 -0
- package/table/cell/table-checkbox.component.js.map +1 -0
- package/table/cell/table-checkbox.component.metadata.json +1 -0
- package/table/cell/table-checkbox.component.ngfactory.d.ts +21 -0
- package/table/cell/table-checkbox.component.ngfactory.js +46 -0
- package/table/cell/table-checkbox.component.ngfactory.js.map +1 -0
- package/table/cell/table-checkbox.component.ngsummary.json +1 -0
- package/table/cell/table-data.component.d.ts +24 -0
- package/table/cell/table-data.component.js +40 -0
- package/table/cell/table-data.component.js.map +1 -0
- package/table/cell/table-data.component.metadata.json +1 -0
- package/table/cell/table-data.component.ngfactory.d.ts +21 -0
- package/table/cell/table-data.component.ngfactory.js +39 -0
- package/table/cell/table-data.component.ngfactory.js.map +1 -0
- package/table/cell/table-data.component.ngsummary.json +1 -0
- package/table/cell/table-expand-button.component.d.ts +43 -0
- package/table/cell/table-expand-button.component.js +83 -0
- package/table/cell/table-expand-button.component.js.map +1 -0
- package/table/cell/table-expand-button.component.metadata.json +1 -0
- package/table/cell/table-expand-button.component.ngfactory.d.ts +21 -0
- package/table/cell/table-expand-button.component.ngfactory.js +44 -0
- package/table/cell/table-expand-button.component.ngfactory.js.map +1 -0
- package/table/cell/table-expand-button.component.ngsummary.json +1 -0
- package/table/data-grid-focus.directive.d.ts +5 -1
- package/table/data-grid-focus.directive.js +17 -24
- package/table/data-grid-focus.directive.js.map +1 -1
- package/table/data-grid-focus.directive.metadata.json +1 -1
- package/table/data-grid-focus.directive.ngsummary.json +1 -1
- package/table/data-grid-interaction-model.class.d.ts +185 -0
- package/table/data-grid-interaction-model.class.js +269 -0
- package/table/data-grid-interaction-model.class.js.map +1 -0
- package/table/data-grid-interaction-model.class.metadata.json +1 -0
- package/table/data-grid-interaction-model.class.ngsummary.json +1 -0
- package/table/head/table-head-cell.component.d.ts +46 -0
- package/table/head/table-head-cell.component.js +117 -0
- package/table/head/table-head-cell.component.js.map +1 -0
- package/table/head/table-head-cell.component.metadata.json +1 -0
- package/table/head/table-head-cell.component.ngfactory.d.ts +21 -0
- package/table/head/table-head-cell.component.ngfactory.js +55 -0
- package/table/head/table-head-cell.component.ngfactory.js.map +1 -0
- package/table/head/table-head-cell.component.ngsummary.json +1 -0
- package/table/head/table-head-checkbox.component.d.ts +40 -0
- package/table/head/table-head-checkbox.component.js +75 -0
- package/table/head/table-head-checkbox.component.js.map +1 -0
- package/table/head/table-head-checkbox.component.metadata.json +1 -0
- package/table/head/table-head-checkbox.component.ngfactory.d.ts +21 -0
- package/table/head/table-head-checkbox.component.ngfactory.js +45 -0
- package/table/head/table-head-checkbox.component.ngfactory.js.map +1 -0
- package/table/head/table-head-checkbox.component.ngsummary.json +1 -0
- package/table/head/table-head-expand.component.d.ts +23 -0
- package/table/head/table-head-expand.component.js +39 -0
- package/table/head/table-head-expand.component.js.map +1 -0
- package/table/head/table-head-expand.component.metadata.json +1 -0
- package/table/head/table-head-expand.component.ngfactory.d.ts +21 -0
- package/table/head/table-head-expand.component.ngfactory.js +36 -0
- package/table/head/table-head-expand.component.ngfactory.js.map +1 -0
- package/table/head/table-head-expand.component.ngsummary.json +1 -0
- package/table/head/table-head.component.d.ts +77 -0
- package/table/head/table-head.component.js +157 -0
- package/table/head/table-head.component.js.map +1 -0
- package/table/head/table-head.component.metadata.json +1 -0
- package/table/head/table-head.component.ngfactory.d.ts +21 -0
- package/table/head/table-head.component.ngfactory.js +56 -0
- package/table/head/table-head.component.ngfactory.js.map +1 -0
- package/table/head/table-head.component.ngsummary.json +1 -0
- package/table/table-adapter.class.d.ts +149 -0
- package/table/table-adapter.class.js +210 -0
- package/table/table-adapter.class.js.map +1 -0
- package/table/table-adapter.class.metadata.json +1 -0
- package/table/table-adapter.class.ngsummary.json +1 -0
- package/table/table-header-item.class.d.ts +8 -35
- package/table/table-header-item.class.js +0 -17
- package/table/table-header-item.class.js.map +1 -1
- package/table/table-item.class.d.ts +0 -13
- package/table/table-item.class.js +0 -2
- package/table/table-item.class.js.map +1 -1
- package/table/table-model.class.d.ts +41 -105
- package/table/table-model.class.js +45 -73
- package/table/table-model.class.js.map +1 -1
- package/table/table-model.class.metadata.json +1 -1
- package/table/table-model.class.ngsummary.json +1 -1
- package/table/table.component.d.ts +45 -81
- package/table/table.component.js +191 -200
- package/table/table.component.js.map +1 -1
- package/table/table.component.metadata.json +1 -1
- package/table/table.component.ngfactory.js +30 -199
- package/table/table.component.ngfactory.js.map +1 -1
- package/table/table.component.ngsummary.json +1 -1
- package/table/table.directive.d.ts +33 -0
- package/table/table.directive.js +72 -0
- package/table/table.directive.js.map +1 -0
- package/table/table.directive.metadata.json +1 -0
- package/table/table.directive.ngfactory.js.map +1 -0
- package/table/table.directive.ngsummary.json +1 -0
- package/table/table.module.d.ts +25 -11
- package/table/table.module.js +60 -21
- package/table/table.module.js.map +1 -1
- package/table/table.module.metadata.json +1 -1
- package/table/table.module.ngfactory.js.map +1 -1
- package/table/table.module.ngsummary.json +1 -1
- package/tabs/tab-headers.component.js +1 -1
- package/tabs/tab-headers.component.js.map +1 -1
- package/tabs/tab-headers.component.metadata.json +1 -1
- package/tabs/tab-headers.component.ngfactory.js +1 -1
- package/tabs/tab-headers.component.ngfactory.js.map +1 -1
- package/ui-shell/header/header-action.component.js +1 -1
- package/ui-shell/header/header-action.component.js.map +1 -1
- package/ui-shell/header/header-action.component.metadata.json +1 -1
- package/ui-shell/header/header-action.component.ngfactory.js +5 -6
- package/ui-shell/header/header-action.component.ngfactory.js.map +1 -1
- package/ui-shell/header/header.component.d.ts +26 -1
- package/ui-shell/header/header.component.js +40 -5
- package/ui-shell/header/header.component.js.map +1 -1
- package/ui-shell/header/header.component.metadata.json +1 -1
- package/ui-shell/header/header.component.ngfactory.js +9 -3
- package/ui-shell/header/header.component.ngfactory.js.map +1 -1
- package/ui-shell/header/header.component.ngsummary.json +1 -1
- package/ui-shell/header/header.module.ngfactory.js.map +1 -1
- package/common/utils.d.ts +0 -35
- package/common/utils.js +0 -40
- package/common/utils.js.map +0 -1
- package/common/utils.metadata.json +0 -1
- package/common/utils.ngsummary.json +0 -1
- package/docs/storybook/main.9e8069cf2ee0957ae098.bundle.js.map +0 -1
- package/utils/window-tools.js +0 -46
- package/utils/window-tools.js.map +0 -1
- package/utils/window-tools.metadata.json +0 -1
- package/utils/window-tools.ngsummary.json +0 -1
|
@@ -0,0 +1,968 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html class="no-js" lang="">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
6
|
+
<title>carbon-components-angular documentation</title>
|
|
7
|
+
<meta name="description" content="">
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
+
|
|
10
|
+
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
|
|
11
|
+
<link rel="stylesheet" href="../styles/style.css">
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
|
|
15
|
+
<div class="navbar navbar-default navbar-fixed-top visible-xs">
|
|
16
|
+
<a href="../" class="navbar-brand">carbon-components-angular documentation</a>
|
|
17
|
+
<button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div class="xs-menu menu" id="mobile-menu">
|
|
21
|
+
<div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<div class="container-fluid main">
|
|
25
|
+
<div class="row main">
|
|
26
|
+
<div class="hidden-xs menu">
|
|
27
|
+
<compodoc-menu mode="normal"></compodoc-menu>
|
|
28
|
+
</div>
|
|
29
|
+
<!-- START CONTENT -->
|
|
30
|
+
<div class="content class">
|
|
31
|
+
<div class="content-data">
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
<ol class="breadcrumb">
|
|
44
|
+
<li>Classes</li>
|
|
45
|
+
<li>TableDomAdapter</li>
|
|
46
|
+
</ol>
|
|
47
|
+
|
|
48
|
+
<ul class="nav nav-tabs" role="tablist">
|
|
49
|
+
<li class="active">
|
|
50
|
+
<a href="#info" role="tab" id="info-tab" data-toggle="tab" data-link="info">Info</a>
|
|
51
|
+
</li>
|
|
52
|
+
<li >
|
|
53
|
+
<a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a>
|
|
54
|
+
</li>
|
|
55
|
+
</ul>
|
|
56
|
+
|
|
57
|
+
<div class="tab-content">
|
|
58
|
+
<div class="tab-pane fade active in" id="c-info">
|
|
59
|
+
<p class="comment">
|
|
60
|
+
<h3>File</h3>
|
|
61
|
+
</p>
|
|
62
|
+
<p class="comment">
|
|
63
|
+
<code>src/table/table-adapter.class.ts</code>
|
|
64
|
+
</p>
|
|
65
|
+
|
|
66
|
+
<p class="comment">
|
|
67
|
+
<h3>Description</h3>
|
|
68
|
+
</p>
|
|
69
|
+
<p class="comment">
|
|
70
|
+
<p>A concrete implementation of <code>TableAdapter</code></p>
|
|
71
|
+
<p>Provides standard and consistent access to table cells and rows</p>
|
|
72
|
+
|
|
73
|
+
</p>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
<p class="comment">
|
|
77
|
+
<h3>Implements</h3>
|
|
78
|
+
</p>
|
|
79
|
+
<p class="comment">
|
|
80
|
+
<code><a href="../classes/TableAdapter.html" target="_self" >TableAdapter</a></code>
|
|
81
|
+
</p>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
<section>
|
|
85
|
+
<h3 id="index">Index</h3>
|
|
86
|
+
<table class="table table-sm table-bordered index-table">
|
|
87
|
+
<tbody>
|
|
88
|
+
<tr>
|
|
89
|
+
<td class="col-md-4">
|
|
90
|
+
<h6><b>Properties</b></h6>
|
|
91
|
+
</td>
|
|
92
|
+
</tr>
|
|
93
|
+
<tr>
|
|
94
|
+
<td class="col-md-4">
|
|
95
|
+
<ul class="index-list">
|
|
96
|
+
<li>
|
|
97
|
+
<span class="modifier">Public</span>
|
|
98
|
+
<a href="#tableElement">tableElement</a>
|
|
99
|
+
</li>
|
|
100
|
+
</ul>
|
|
101
|
+
</td>
|
|
102
|
+
</tr>
|
|
103
|
+
|
|
104
|
+
<tr>
|
|
105
|
+
<td class="col-md-4">
|
|
106
|
+
<h6><b>Methods</b></h6>
|
|
107
|
+
</td>
|
|
108
|
+
</tr>
|
|
109
|
+
<tr>
|
|
110
|
+
<td class="col-md-4">
|
|
111
|
+
<ul class="index-list">
|
|
112
|
+
<li>
|
|
113
|
+
<a href="#findColumnIndex">findColumnIndex</a>
|
|
114
|
+
</li>
|
|
115
|
+
<li>
|
|
116
|
+
<a href="#findIndex">findIndex</a>
|
|
117
|
+
</li>
|
|
118
|
+
<li>
|
|
119
|
+
<a href="#findRowIndex">findRowIndex</a>
|
|
120
|
+
</li>
|
|
121
|
+
<li>
|
|
122
|
+
<a href="#getCell">getCell</a>
|
|
123
|
+
</li>
|
|
124
|
+
<li>
|
|
125
|
+
<a href="#getRow">getRow</a>
|
|
126
|
+
</li>
|
|
127
|
+
</ul>
|
|
128
|
+
</td>
|
|
129
|
+
</tr>
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
<tr>
|
|
136
|
+
<td class="col-md-4">
|
|
137
|
+
<h6><b>Accessors</b></h6>
|
|
138
|
+
</td>
|
|
139
|
+
</tr>
|
|
140
|
+
<tr>
|
|
141
|
+
<td class="col-md-4">
|
|
142
|
+
<ul class="index-list">
|
|
143
|
+
<li>
|
|
144
|
+
<a href="#lastColumnIndex">lastColumnIndex</a>
|
|
145
|
+
</li>
|
|
146
|
+
<li>
|
|
147
|
+
<a href="#lastRowIndex">lastRowIndex</a>
|
|
148
|
+
</li>
|
|
149
|
+
</ul>
|
|
150
|
+
</td>
|
|
151
|
+
</tr>
|
|
152
|
+
</tbody>
|
|
153
|
+
</table>
|
|
154
|
+
</section>
|
|
155
|
+
|
|
156
|
+
<section>
|
|
157
|
+
<h3 id="constructor">Constructor</h3>
|
|
158
|
+
<table class="table table-sm table-bordered">
|
|
159
|
+
<tbody>
|
|
160
|
+
<tr>
|
|
161
|
+
<td class="col-md-4">
|
|
162
|
+
<code>constructor(tableElement: <a href="../components/Table.html">HTMLTableElement</a>)</code>
|
|
163
|
+
</td>
|
|
164
|
+
</tr>
|
|
165
|
+
<tr>
|
|
166
|
+
<td class="col-md-4">
|
|
167
|
+
<div class="io-line">Defined in <a href="" data-line="100" class="link-to-prism">src/table/table-adapter.class.ts:100</a></div>
|
|
168
|
+
</td>
|
|
169
|
+
</tr>
|
|
170
|
+
|
|
171
|
+
<tr>
|
|
172
|
+
<td class="col-md-4">
|
|
173
|
+
<div class="io-description"><p><code>TableDomAdapter</code> works on a normal HTML table structure.
|
|
174
|
+
Custom tables that don't follow the standard structure should use a custom implementation of <code>TableAdapter</code>.</p>
|
|
175
|
+
<p>The standard structure allows us to directly query rows for cells and indexes - though we do have to handle colspans specially.</p>
|
|
176
|
+
</div>
|
|
177
|
+
<div>
|
|
178
|
+
<b>Parameters :</b>
|
|
179
|
+
<table class="params">
|
|
180
|
+
<thead>
|
|
181
|
+
<tr>
|
|
182
|
+
<td>Name</td>
|
|
183
|
+
<td>Type</td>
|
|
184
|
+
<td>Optional</td>
|
|
185
|
+
<td>Description</td>
|
|
186
|
+
</tr>
|
|
187
|
+
</thead>
|
|
188
|
+
<tbody>
|
|
189
|
+
<tr>
|
|
190
|
+
<td>tableElement</td>
|
|
191
|
+
|
|
192
|
+
<td>
|
|
193
|
+
<code><a href="../components/Table.html" target="_self" >HTMLTableElement</a></code>
|
|
194
|
+
</td>
|
|
195
|
+
|
|
196
|
+
<td>
|
|
197
|
+
No
|
|
198
|
+
</td>
|
|
199
|
+
|
|
200
|
+
<td>
|
|
201
|
+
<code><p>the root HTML table element.</p>
|
|
202
|
+
</code>
|
|
203
|
+
</td>
|
|
204
|
+
</tr>
|
|
205
|
+
</tbody>
|
|
206
|
+
</table>
|
|
207
|
+
</div>
|
|
208
|
+
</td>
|
|
209
|
+
</tr>
|
|
210
|
+
</tbody>
|
|
211
|
+
</table>
|
|
212
|
+
</section>
|
|
213
|
+
|
|
214
|
+
<section>
|
|
215
|
+
|
|
216
|
+
<h3 id="inputs">
|
|
217
|
+
Properties
|
|
218
|
+
</h3>
|
|
219
|
+
<table class="table table-sm table-bordered">
|
|
220
|
+
<tbody>
|
|
221
|
+
<tr>
|
|
222
|
+
<td class="col-md-4">
|
|
223
|
+
<a name="tableElement"></a>
|
|
224
|
+
<span class="name">
|
|
225
|
+
<b>
|
|
226
|
+
<span class="modifier">Public</span>
|
|
227
|
+
tableElement
|
|
228
|
+
</b>
|
|
229
|
+
<a href="#tableElement"><span class="icon ion-ios-link"></span></a>
|
|
230
|
+
</span>
|
|
231
|
+
</td>
|
|
232
|
+
</tr>
|
|
233
|
+
<tr>
|
|
234
|
+
<td class="col-md-4">
|
|
235
|
+
<span class="modifier-icon icon ion-ios-reset"></span><code>tableElement: <code><a href="../components/Table.html" target="_self" >HTMLTableElement</a></code>
|
|
236
|
+
</code>
|
|
237
|
+
</td>
|
|
238
|
+
</tr>
|
|
239
|
+
<tr>
|
|
240
|
+
<td class="col-md-4">
|
|
241
|
+
<i>Type : </i> <code><a href="../components/Table.html" target="_self" >HTMLTableElement</a></code>
|
|
242
|
+
|
|
243
|
+
</td>
|
|
244
|
+
</tr>
|
|
245
|
+
<tr>
|
|
246
|
+
<td class="col-md-4">
|
|
247
|
+
<div class="io-line">Defined in <a href="" data-line="110" class="link-to-prism">src/table/table-adapter.class.ts:110</a></div>
|
|
248
|
+
</td>
|
|
249
|
+
</tr>
|
|
250
|
+
|
|
251
|
+
<tr>
|
|
252
|
+
<td class="col-md-4">
|
|
253
|
+
<div class="io-description">the root HTML table element.</div>
|
|
254
|
+
</td>
|
|
255
|
+
</tr>
|
|
256
|
+
|
|
257
|
+
</tbody>
|
|
258
|
+
</table>
|
|
259
|
+
</section>
|
|
260
|
+
|
|
261
|
+
<section>
|
|
262
|
+
|
|
263
|
+
<h3 id="methods">
|
|
264
|
+
Methods
|
|
265
|
+
</h3>
|
|
266
|
+
<table class="table table-sm table-bordered">
|
|
267
|
+
<tbody>
|
|
268
|
+
<tr>
|
|
269
|
+
<td class="col-md-4">
|
|
270
|
+
<a name="findColumnIndex"></a>
|
|
271
|
+
<span class="name">
|
|
272
|
+
<b>
|
|
273
|
+
findColumnIndex
|
|
274
|
+
</b>
|
|
275
|
+
<a href="#findColumnIndex"><span class="icon ion-ios-link"></span></a>
|
|
276
|
+
</span>
|
|
277
|
+
</td>
|
|
278
|
+
</tr>
|
|
279
|
+
<tr>
|
|
280
|
+
<td class="col-md-4">
|
|
281
|
+
<code>findColumnIndex(cell: <a href="../components/Table.html">HTMLTableCellElement</a>)</code>
|
|
282
|
+
</td>
|
|
283
|
+
</tr>
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
<tr>
|
|
287
|
+
<td class="col-md-4">
|
|
288
|
+
<div class="io-line">Defined in <a href="" data-line="152" class="link-to-prism">src/table/table-adapter.class.ts:152</a></div>
|
|
289
|
+
</td>
|
|
290
|
+
</tr>
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
<tr>
|
|
294
|
+
<td class="col-md-4">
|
|
295
|
+
<div class="io-description"><p>Finds the column index of a given cell</p>
|
|
296
|
+
</div>
|
|
297
|
+
|
|
298
|
+
<div class="io-description">
|
|
299
|
+
<b>Parameters :</b>
|
|
300
|
+
<table class="params">
|
|
301
|
+
<thead>
|
|
302
|
+
<tr>
|
|
303
|
+
<td>Name</td>
|
|
304
|
+
<td>Type</td>
|
|
305
|
+
<td>Optional</td>
|
|
306
|
+
<td>Description</td>
|
|
307
|
+
</tr>
|
|
308
|
+
</thead>
|
|
309
|
+
<tbody>
|
|
310
|
+
<tr>
|
|
311
|
+
<td>cell</td>
|
|
312
|
+
<td>
|
|
313
|
+
<code><a href="../components/Table.html" target="_self" >HTMLTableCellElement</a></code>
|
|
314
|
+
</td>
|
|
315
|
+
|
|
316
|
+
<td>
|
|
317
|
+
No
|
|
318
|
+
</td>
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
<td>
|
|
322
|
+
<code><p>the cell to search for</p>
|
|
323
|
+
</code>
|
|
324
|
+
</td>
|
|
325
|
+
</tr>
|
|
326
|
+
</tbody>
|
|
327
|
+
</table>
|
|
328
|
+
</div>
|
|
329
|
+
<div>
|
|
330
|
+
</div>
|
|
331
|
+
<div class="io-description">
|
|
332
|
+
<b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
333
|
+
|
|
334
|
+
</div>
|
|
335
|
+
<div class="io-description">
|
|
336
|
+
|
|
337
|
+
</div>
|
|
338
|
+
</td>
|
|
339
|
+
</tr>
|
|
340
|
+
</tbody>
|
|
341
|
+
</table>
|
|
342
|
+
<table class="table table-sm table-bordered">
|
|
343
|
+
<tbody>
|
|
344
|
+
<tr>
|
|
345
|
+
<td class="col-md-4">
|
|
346
|
+
<a name="findIndex"></a>
|
|
347
|
+
<span class="name">
|
|
348
|
+
<b>
|
|
349
|
+
findIndex
|
|
350
|
+
</b>
|
|
351
|
+
<a href="#findIndex"><span class="icon ion-ios-link"></span></a>
|
|
352
|
+
</span>
|
|
353
|
+
</td>
|
|
354
|
+
</tr>
|
|
355
|
+
<tr>
|
|
356
|
+
<td class="col-md-4">
|
|
357
|
+
<code>findIndex(cell: <a href="../components/Table.html">HTMLTableCellElement</a>)</code>
|
|
358
|
+
</td>
|
|
359
|
+
</tr>
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
<tr>
|
|
363
|
+
<td class="col-md-4">
|
|
364
|
+
<div class="io-line">Defined in <a href="" data-line="181" class="link-to-prism">src/table/table-adapter.class.ts:181</a></div>
|
|
365
|
+
</td>
|
|
366
|
+
</tr>
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
<tr>
|
|
370
|
+
<td class="col-md-4">
|
|
371
|
+
<div class="io-description"><p>Finds the row and column index of a given cell</p>
|
|
372
|
+
</div>
|
|
373
|
+
|
|
374
|
+
<div class="io-description">
|
|
375
|
+
<b>Parameters :</b>
|
|
376
|
+
<table class="params">
|
|
377
|
+
<thead>
|
|
378
|
+
<tr>
|
|
379
|
+
<td>Name</td>
|
|
380
|
+
<td>Type</td>
|
|
381
|
+
<td>Optional</td>
|
|
382
|
+
<td>Description</td>
|
|
383
|
+
</tr>
|
|
384
|
+
</thead>
|
|
385
|
+
<tbody>
|
|
386
|
+
<tr>
|
|
387
|
+
<td>cell</td>
|
|
388
|
+
<td>
|
|
389
|
+
<code><a href="../components/Table.html" target="_self" >HTMLTableCellElement</a></code>
|
|
390
|
+
</td>
|
|
391
|
+
|
|
392
|
+
<td>
|
|
393
|
+
No
|
|
394
|
+
</td>
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
<td>
|
|
398
|
+
<code><p>the cell to search for</p>
|
|
399
|
+
</code>
|
|
400
|
+
</td>
|
|
401
|
+
</tr>
|
|
402
|
+
</tbody>
|
|
403
|
+
</table>
|
|
404
|
+
</div>
|
|
405
|
+
<div>
|
|
406
|
+
</div>
|
|
407
|
+
</td>
|
|
408
|
+
</tr>
|
|
409
|
+
</tbody>
|
|
410
|
+
</table>
|
|
411
|
+
<table class="table table-sm table-bordered">
|
|
412
|
+
<tbody>
|
|
413
|
+
<tr>
|
|
414
|
+
<td class="col-md-4">
|
|
415
|
+
<a name="findRowIndex"></a>
|
|
416
|
+
<span class="name">
|
|
417
|
+
<b>
|
|
418
|
+
findRowIndex
|
|
419
|
+
</b>
|
|
420
|
+
<a href="#findRowIndex"><span class="icon ion-ios-link"></span></a>
|
|
421
|
+
</span>
|
|
422
|
+
</td>
|
|
423
|
+
</tr>
|
|
424
|
+
<tr>
|
|
425
|
+
<td class="col-md-4">
|
|
426
|
+
<code>findRowIndex(cell: <a href="../components/Table.html">HTMLTableCellElement</a>)</code>
|
|
427
|
+
</td>
|
|
428
|
+
</tr>
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
<tr>
|
|
432
|
+
<td class="col-md-4">
|
|
433
|
+
<div class="io-line">Defined in <a href="" data-line="167" class="link-to-prism">src/table/table-adapter.class.ts:167</a></div>
|
|
434
|
+
</td>
|
|
435
|
+
</tr>
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
<tr>
|
|
439
|
+
<td class="col-md-4">
|
|
440
|
+
<div class="io-description"><p>Finds the row index of a given cell</p>
|
|
441
|
+
</div>
|
|
442
|
+
|
|
443
|
+
<div class="io-description">
|
|
444
|
+
<b>Parameters :</b>
|
|
445
|
+
<table class="params">
|
|
446
|
+
<thead>
|
|
447
|
+
<tr>
|
|
448
|
+
<td>Name</td>
|
|
449
|
+
<td>Type</td>
|
|
450
|
+
<td>Optional</td>
|
|
451
|
+
<td>Description</td>
|
|
452
|
+
</tr>
|
|
453
|
+
</thead>
|
|
454
|
+
<tbody>
|
|
455
|
+
<tr>
|
|
456
|
+
<td>cell</td>
|
|
457
|
+
<td>
|
|
458
|
+
<code><a href="../components/Table.html" target="_self" >HTMLTableCellElement</a></code>
|
|
459
|
+
</td>
|
|
460
|
+
|
|
461
|
+
<td>
|
|
462
|
+
No
|
|
463
|
+
</td>
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
<td>
|
|
467
|
+
<code><p>the cell to search for</p>
|
|
468
|
+
</code>
|
|
469
|
+
</td>
|
|
470
|
+
</tr>
|
|
471
|
+
</tbody>
|
|
472
|
+
</table>
|
|
473
|
+
</div>
|
|
474
|
+
<div>
|
|
475
|
+
</div>
|
|
476
|
+
<div class="io-description">
|
|
477
|
+
<b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
478
|
+
|
|
479
|
+
</div>
|
|
480
|
+
<div class="io-description">
|
|
481
|
+
|
|
482
|
+
</div>
|
|
483
|
+
</td>
|
|
484
|
+
</tr>
|
|
485
|
+
</tbody>
|
|
486
|
+
</table>
|
|
487
|
+
<table class="table table-sm table-bordered">
|
|
488
|
+
<tbody>
|
|
489
|
+
<tr>
|
|
490
|
+
<td class="col-md-4">
|
|
491
|
+
<a name="getCell"></a>
|
|
492
|
+
<span class="name">
|
|
493
|
+
<b>
|
|
494
|
+
getCell
|
|
495
|
+
</b>
|
|
496
|
+
<a href="#getCell"><span class="icon ion-ios-link"></span></a>
|
|
497
|
+
</span>
|
|
498
|
+
</td>
|
|
499
|
+
</tr>
|
|
500
|
+
<tr>
|
|
501
|
+
<td class="col-md-4">
|
|
502
|
+
<code>getCell(row: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank">number</a>, column: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank">number</a>)</code>
|
|
503
|
+
</td>
|
|
504
|
+
</tr>
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
<tr>
|
|
508
|
+
<td class="col-md-4">
|
|
509
|
+
<div class="io-line">Defined in <a href="" data-line="118" class="link-to-prism">src/table/table-adapter.class.ts:118</a></div>
|
|
510
|
+
</td>
|
|
511
|
+
</tr>
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
<tr>
|
|
515
|
+
<td class="col-md-4">
|
|
516
|
+
<div class="io-description"><p>Returns a cell from the table taking colspans in to account.</p>
|
|
517
|
+
</div>
|
|
518
|
+
|
|
519
|
+
<div class="io-description">
|
|
520
|
+
<b>Parameters :</b>
|
|
521
|
+
<table class="params">
|
|
522
|
+
<thead>
|
|
523
|
+
<tr>
|
|
524
|
+
<td>Name</td>
|
|
525
|
+
<td>Type</td>
|
|
526
|
+
<td>Optional</td>
|
|
527
|
+
<td>Description</td>
|
|
528
|
+
</tr>
|
|
529
|
+
</thead>
|
|
530
|
+
<tbody>
|
|
531
|
+
<tr>
|
|
532
|
+
<td>row</td>
|
|
533
|
+
<td>
|
|
534
|
+
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
535
|
+
</td>
|
|
536
|
+
|
|
537
|
+
<td>
|
|
538
|
+
No
|
|
539
|
+
</td>
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
<td>
|
|
543
|
+
<code><p>index of the row</p>
|
|
544
|
+
</code>
|
|
545
|
+
</td>
|
|
546
|
+
</tr>
|
|
547
|
+
<tr>
|
|
548
|
+
<td>column</td>
|
|
549
|
+
<td>
|
|
550
|
+
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
551
|
+
</td>
|
|
552
|
+
|
|
553
|
+
<td>
|
|
554
|
+
No
|
|
555
|
+
</td>
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
<td>
|
|
559
|
+
<code><p>index of the column</p>
|
|
560
|
+
</code>
|
|
561
|
+
</td>
|
|
562
|
+
</tr>
|
|
563
|
+
</tbody>
|
|
564
|
+
</table>
|
|
565
|
+
</div>
|
|
566
|
+
<div>
|
|
567
|
+
</div>
|
|
568
|
+
<div class="io-description">
|
|
569
|
+
<b>Returns : </b> <code><a href="../components/Table.html" target="_self" >HTMLTableCellElement</a></code>
|
|
570
|
+
|
|
571
|
+
</div>
|
|
572
|
+
<div class="io-description">
|
|
573
|
+
|
|
574
|
+
</div>
|
|
575
|
+
</td>
|
|
576
|
+
</tr>
|
|
577
|
+
</tbody>
|
|
578
|
+
</table>
|
|
579
|
+
<table class="table table-sm table-bordered">
|
|
580
|
+
<tbody>
|
|
581
|
+
<tr>
|
|
582
|
+
<td class="col-md-4">
|
|
583
|
+
<a name="getRow"></a>
|
|
584
|
+
<span class="name">
|
|
585
|
+
<b>
|
|
586
|
+
getRow
|
|
587
|
+
</b>
|
|
588
|
+
<a href="#getRow"><span class="icon ion-ios-link"></span></a>
|
|
589
|
+
</span>
|
|
590
|
+
</td>
|
|
591
|
+
</tr>
|
|
592
|
+
<tr>
|
|
593
|
+
<td class="col-md-4">
|
|
594
|
+
<code>getRow(row: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank">number</a>)</code>
|
|
595
|
+
</td>
|
|
596
|
+
</tr>
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
<tr>
|
|
600
|
+
<td class="col-md-4">
|
|
601
|
+
<div class="io-line">Defined in <a href="" data-line="143" class="link-to-prism">src/table/table-adapter.class.ts:143</a></div>
|
|
602
|
+
</td>
|
|
603
|
+
</tr>
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
<tr>
|
|
607
|
+
<td class="col-md-4">
|
|
608
|
+
<div class="io-description"><p>Returns a row from the table</p>
|
|
609
|
+
</div>
|
|
610
|
+
|
|
611
|
+
<div class="io-description">
|
|
612
|
+
<b>Parameters :</b>
|
|
613
|
+
<table class="params">
|
|
614
|
+
<thead>
|
|
615
|
+
<tr>
|
|
616
|
+
<td>Name</td>
|
|
617
|
+
<td>Type</td>
|
|
618
|
+
<td>Optional</td>
|
|
619
|
+
<td>Description</td>
|
|
620
|
+
</tr>
|
|
621
|
+
</thead>
|
|
622
|
+
<tbody>
|
|
623
|
+
<tr>
|
|
624
|
+
<td>row</td>
|
|
625
|
+
<td>
|
|
626
|
+
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
627
|
+
</td>
|
|
628
|
+
|
|
629
|
+
<td>
|
|
630
|
+
No
|
|
631
|
+
</td>
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
<td>
|
|
635
|
+
<code><p>index of the row</p>
|
|
636
|
+
</code>
|
|
637
|
+
</td>
|
|
638
|
+
</tr>
|
|
639
|
+
</tbody>
|
|
640
|
+
</table>
|
|
641
|
+
</div>
|
|
642
|
+
<div>
|
|
643
|
+
</div>
|
|
644
|
+
<div class="io-description">
|
|
645
|
+
<b>Returns : </b> <code><a href="../components/Table.html" target="_self" >HTMLTableRowElement</a></code>
|
|
646
|
+
|
|
647
|
+
</div>
|
|
648
|
+
<div class="io-description">
|
|
649
|
+
|
|
650
|
+
</div>
|
|
651
|
+
</td>
|
|
652
|
+
</tr>
|
|
653
|
+
</tbody>
|
|
654
|
+
</table>
|
|
655
|
+
</section>
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
<section>
|
|
663
|
+
<h3 id="accessors">
|
|
664
|
+
Accessors
|
|
665
|
+
</h3>
|
|
666
|
+
<table class="table table-sm table-bordered">
|
|
667
|
+
<tbody>
|
|
668
|
+
<tr>
|
|
669
|
+
<td class="col-md-4">
|
|
670
|
+
<a name="lastColumnIndex"></a>
|
|
671
|
+
<span class="name"><b>lastColumnIndex</b><a href="#lastColumnIndex"><span class="icon ion-ios-link"></span></a></span>
|
|
672
|
+
</td>
|
|
673
|
+
</tr>
|
|
674
|
+
|
|
675
|
+
<tr>
|
|
676
|
+
<td class="col-md-4">
|
|
677
|
+
<span class="accessor"><b>get</b><code>lastColumnIndex()</code></span>
|
|
678
|
+
</td>
|
|
679
|
+
</tr>
|
|
680
|
+
<tr>
|
|
681
|
+
<td class="col-md-4">
|
|
682
|
+
<div class="io-line">Defined in <a href="" data-line="91" class="link-to-prism">src/table/table-adapter.class.ts:91</a></div>
|
|
683
|
+
</td>
|
|
684
|
+
</tr>
|
|
685
|
+
<tr>
|
|
686
|
+
<td class="col-md-4">
|
|
687
|
+
<div class="io-description"><p>The last acccessible column in the table</p>
|
|
688
|
+
</div>
|
|
689
|
+
|
|
690
|
+
</td>
|
|
691
|
+
</tr>
|
|
692
|
+
|
|
693
|
+
</tbody>
|
|
694
|
+
</table>
|
|
695
|
+
<table class="table table-sm table-bordered">
|
|
696
|
+
<tbody>
|
|
697
|
+
<tr>
|
|
698
|
+
<td class="col-md-4">
|
|
699
|
+
<a name="lastRowIndex"></a>
|
|
700
|
+
<span class="name"><b>lastRowIndex</b><a href="#lastRowIndex"><span class="icon ion-ios-link"></span></a></span>
|
|
701
|
+
</td>
|
|
702
|
+
</tr>
|
|
703
|
+
|
|
704
|
+
<tr>
|
|
705
|
+
<td class="col-md-4">
|
|
706
|
+
<span class="accessor"><b>get</b><code>lastRowIndex()</code></span>
|
|
707
|
+
</td>
|
|
708
|
+
</tr>
|
|
709
|
+
<tr>
|
|
710
|
+
<td class="col-md-4">
|
|
711
|
+
<div class="io-line">Defined in <a href="" data-line="98" class="link-to-prism">src/table/table-adapter.class.ts:98</a></div>
|
|
712
|
+
</td>
|
|
713
|
+
</tr>
|
|
714
|
+
<tr>
|
|
715
|
+
<td class="col-md-4">
|
|
716
|
+
<div class="io-description"><p>The last accessible row in the table</p>
|
|
717
|
+
</div>
|
|
718
|
+
|
|
719
|
+
</td>
|
|
720
|
+
</tr>
|
|
721
|
+
|
|
722
|
+
</tbody>
|
|
723
|
+
</table>
|
|
724
|
+
</section>
|
|
725
|
+
</div>
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
<div class="tab-pane fade tab-source-code" id="c-source">
|
|
729
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">export abstract class TableCellAdapter {
|
|
730
|
+
/**
|
|
731
|
+
* The index of the cell in the table
|
|
732
|
+
*/
|
|
733
|
+
cellIndex: number;
|
|
734
|
+
/**
|
|
735
|
+
* The number of columns spanned by this cell
|
|
736
|
+
*/
|
|
737
|
+
colSpan: number;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* An abstract class that represents a row in a table
|
|
742
|
+
*/
|
|
743
|
+
export abstract class TableRowAdapter {
|
|
744
|
+
/**
|
|
745
|
+
* The index of the row in the table
|
|
746
|
+
*/
|
|
747
|
+
rowIndex: number;
|
|
748
|
+
/**
|
|
749
|
+
* An array (or `HTMLCollection`) of `TableCellAdapter`s
|
|
750
|
+
*/
|
|
751
|
+
cells: HTMLCollection | TableCellAdapter[];
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* An abstract representation of a table that provides
|
|
756
|
+
* a standard interface to query 2d tables for cell and row information.
|
|
757
|
+
*/
|
|
758
|
+
export abstract class TableAdapter {
|
|
759
|
+
/**
|
|
760
|
+
* The last acccessible column in the table
|
|
761
|
+
*/
|
|
762
|
+
public get lastColumnIndex(): number { return; }
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* The last accessible row in the table
|
|
766
|
+
*/
|
|
767
|
+
public get lastRowIndex(): number { return; }
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Returns a cell from the table
|
|
771
|
+
*
|
|
772
|
+
* @param row index of the row
|
|
773
|
+
* @param column index of the column
|
|
774
|
+
*/
|
|
775
|
+
getCell(row: number, column: number): TableCellAdapter { return; }
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Returns a row from the table
|
|
779
|
+
*
|
|
780
|
+
* @param row index of the row
|
|
781
|
+
*/
|
|
782
|
+
getRow(row: number): TableRowAdapter { return; }
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Finds the column index of a given cell
|
|
786
|
+
*
|
|
787
|
+
* @param cell the cell to search for
|
|
788
|
+
*/
|
|
789
|
+
findColumnIndex(cell: TableCellAdapter): number { return; }
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Finds the row index of a given cell
|
|
793
|
+
*
|
|
794
|
+
* @param cell the cell to search for
|
|
795
|
+
*/
|
|
796
|
+
findRowIndex(cell: TableCellAdapter): number { return; }
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Finds the row and column index of a given cell
|
|
800
|
+
*
|
|
801
|
+
* @param cell the cell to search for
|
|
802
|
+
* @returns a tuple that follows the `[row, column]` convention
|
|
803
|
+
*/
|
|
804
|
+
findIndex(cell: TableCellAdapter): [number, number] { return; }
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* A concrete implementation of `TableAdapter`
|
|
809
|
+
*
|
|
810
|
+
* Provides standard and consistent access to table cells and rows
|
|
811
|
+
*/
|
|
812
|
+
export class TableDomAdapter implements TableAdapter {
|
|
813
|
+
/**
|
|
814
|
+
* The last acccessible column in the table
|
|
815
|
+
*/
|
|
816
|
+
public get lastColumnIndex() {
|
|
817
|
+
return this.tableElement.rows[0].cells.length - 1;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* The last accessible row in the table
|
|
822
|
+
*/
|
|
823
|
+
public get lastRowIndex() {
|
|
824
|
+
return this.tableElement.rows.length - 1;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* `TableDomAdapter` works on a normal HTML table structure.
|
|
829
|
+
* Custom tables that don't follow the standard structure should use a custom implementation of `TableAdapter`.
|
|
830
|
+
*
|
|
831
|
+
* The standard structure allows us to directly query rows for cells and indexes - though we do have to handle colspans specially.
|
|
832
|
+
*
|
|
833
|
+
* @param tableElement the root HTML table element.
|
|
834
|
+
*/
|
|
835
|
+
constructor(public tableElement: HTMLTableElement) { }
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* Returns a cell from the table taking colspans in to account.
|
|
839
|
+
*
|
|
840
|
+
* @param row index of the row
|
|
841
|
+
* @param column index of the column
|
|
842
|
+
*/
|
|
843
|
+
getCell(row: number, column: number): HTMLTableCellElement {
|
|
844
|
+
const baseRow = this.getRow(row);
|
|
845
|
+
let baseCells = Array.from(baseRow.cells);
|
|
846
|
+
|
|
847
|
+
// rows can have fewer total cells than the actual table
|
|
848
|
+
// the model pretends all rows behave the same (with colspans > 1 being N cells long)
|
|
849
|
+
// this maps that view to the HTML view (colspans > 1 are one element, so the array is shorter)
|
|
850
|
+
let realIndex = 0;
|
|
851
|
+
// i is only used for iterating the "cells"
|
|
852
|
+
for (let i = 0; i < column;) {
|
|
853
|
+
// skip the next N "cells"
|
|
854
|
+
i += baseCells[realIndex].colSpan;
|
|
855
|
+
// don't bump realIndex if i now exceeds the column we're shooting for
|
|
856
|
+
if (i > column) { break; }
|
|
857
|
+
// finally, increment realIndex (to keep it generally in step with i)
|
|
858
|
+
realIndex++;
|
|
859
|
+
}
|
|
860
|
+
return baseCells[realIndex];
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* Returns a row from the table
|
|
865
|
+
*
|
|
866
|
+
* @param row index of the row
|
|
867
|
+
*/
|
|
868
|
+
getRow(row: number): HTMLTableRowElement {
|
|
869
|
+
return this.tableElement.rows[row];
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* Finds the column index of a given cell
|
|
874
|
+
*
|
|
875
|
+
* @param cell the cell to search for
|
|
876
|
+
*/
|
|
877
|
+
findColumnIndex(cell: HTMLTableCellElement): number {
|
|
878
|
+
const row = this.getRow(this.findRowIndex(cell));
|
|
879
|
+
let cellIndex = 0;
|
|
880
|
+
for (const c of Array.from(row.cells)) {
|
|
881
|
+
if (c === cell) { break; }
|
|
882
|
+
cellIndex += c.colSpan;
|
|
883
|
+
}
|
|
884
|
+
return cellIndex;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* Finds the row index of a given cell
|
|
889
|
+
*
|
|
890
|
+
* @param cell the cell to search for
|
|
891
|
+
*/
|
|
892
|
+
findRowIndex(cell: HTMLTableCellElement): number {
|
|
893
|
+
for (const row of Array.from(this.tableElement.rows)) {
|
|
894
|
+
if (row.contains(cell)) {
|
|
895
|
+
return row.rowIndex;
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Finds the row and column index of a given cell
|
|
902
|
+
*
|
|
903
|
+
* @param cell the cell to search for
|
|
904
|
+
* @returns a tuple that follows the `[row, column]` convention
|
|
905
|
+
*/
|
|
906
|
+
findIndex(cell: HTMLTableCellElement): [number, number] {
|
|
907
|
+
return [this.findRowIndex(cell), this.findColumnIndex(cell)];
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
</code></pre>
|
|
911
|
+
</div>
|
|
912
|
+
</div>
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
</div><div class="search-results">
|
|
921
|
+
<div class="has-results">
|
|
922
|
+
<h1 class="search-results-title"><span class='search-results-count'></span> result-matching "<span class='search-query'></span>"</h1>
|
|
923
|
+
<ul class="search-results-list"></ul>
|
|
924
|
+
</div>
|
|
925
|
+
<div class="no-results">
|
|
926
|
+
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
|
927
|
+
</div>
|
|
928
|
+
</div>
|
|
929
|
+
</div>
|
|
930
|
+
<!-- END CONTENT -->
|
|
931
|
+
</div>
|
|
932
|
+
</div>
|
|
933
|
+
|
|
934
|
+
<script>
|
|
935
|
+
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
|
|
936
|
+
var COMPODOC_CURRENT_PAGE_CONTEXT = 'class';
|
|
937
|
+
var COMPODOC_CURRENT_PAGE_URL = 'TableDomAdapter.html';
|
|
938
|
+
</script>
|
|
939
|
+
|
|
940
|
+
<script src="../js/libs/custom-elements.min.js"></script>
|
|
941
|
+
<script src="../js/libs/lit-html.js"></script>
|
|
942
|
+
<!-- Required to polyfill modern browsers as code is ES5 for IE... -->
|
|
943
|
+
<script src="../js/libs/custom-elements-es5-adapter.js" charset="utf-8" defer></script>
|
|
944
|
+
<script src="../js/menu-wc.js" defer></script>
|
|
945
|
+
|
|
946
|
+
<script src="../js/libs/bootstrap-native.js"></script>
|
|
947
|
+
|
|
948
|
+
<script src="../js/libs/es6-shim.min.js"></script>
|
|
949
|
+
<script src="../js/libs/EventDispatcher.js"></script>
|
|
950
|
+
<script src="../js/libs/promise.min.js"></script>
|
|
951
|
+
<script src="../js/libs/zepto.min.js"></script>
|
|
952
|
+
|
|
953
|
+
<script src="../js/compodoc.js"></script>
|
|
954
|
+
|
|
955
|
+
<script src="../js/tabs.js"></script>
|
|
956
|
+
<script src="../js/menu.js"></script>
|
|
957
|
+
<script src="../js/libs/clipboard.min.js"></script>
|
|
958
|
+
<script src="../js/libs/prism.js"></script>
|
|
959
|
+
<script src="../js/sourceCode.js"></script>
|
|
960
|
+
<script src="../js/search/search.js"></script>
|
|
961
|
+
<script src="../js/search/lunr.min.js"></script>
|
|
962
|
+
<script src="../js/search/search-lunr.js"></script>
|
|
963
|
+
<script src="../js/search/search_index.js"></script>
|
|
964
|
+
<script src="../js/lazy-load-graphs.js"></script>
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
</body>
|
|
968
|
+
</html>
|