getItems

getItems() → { Array.<InputHelperItem> }

Returns an array of the InputHelperItem objects that contain all the items from the input helper.

Parameters:

This method doesn't have any parameters.

Returns:

Type
Array.<InputHelperItem>

Example

Copy code
function getInputHelperSize () {
    var _size = window.Asc.plugin.getInputHelper().getScrollSizes();
    var _width = 150;
    var _height = _size.h;
    var _heightMin = window.Asc.plugin.getInputHelper().getItemsHeight(Math.min(5, window.Asc.plugin.getInputHelper().getItems().length));
    if (_width > 400)
        _width = 400;
    if (_height > _heightMin)
        _height = _heightMin;
        _width += 30;
        return { w: _width, h : _height };
}