Retrieve a property from an object
Parameters:
obj must be an object.
(The object to query)
path must be a string.
(The path the the property)
defaultValue must be a *.
(The value to return if the property is not present)
Replaces params of the form ${k} in a string with values supplied from a hash {k: v}
console.log('subst', params)
Default function to measure cells for column autoresizing
<PagingType>
Key | Type | Description |
---|---|---|
td | <element> |
DOM element corresponding to the cell td |
row | <number> |
Row index of the cell |
metric | <MetricType> |
Metric computed so far for the column |
<MetricType>
Key | Type | Description |
---|---|---|
width | <number> |
The max width of the column, so far. The function should alter this value |
column | <ColumnType> |
The column definition |
index | <number> |
The column index in its section |
context | <CanvasRenderingContext2D> |
A canvas 2D context which can be used as a helper |
Parameters:
console.log('measureCell', params)
Retrieve style of the first cell of the column an assume all other cells with be styled in the same way
console.log('text', text)
Copyright 2020 Ulrich Gaal
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.