Thus, one can expect to instantiate a SelectionController like the following:
new SelectionController('selectionController', {
targetAggregation: 'columns',
control: this.table,
}),
However, this causes the following error: SelectionController.js:55 Uncaught Error: Always provide atleast a 'control' configuration when creating a new p13n controller!
Using the debugger on Chrome DevTools, we see that mSettings took on the value of sId:
The error is gone if sId isn't defined, but it raises a linting error as TypeScript expects sId to be defined before mSettings.
My full code showing how I am using SelectionController:
Hi,
this is actually an issue in the original code/JSDoc, not in the generator for the type definitions. I reported it there: https://github.com/SAP/openui5/issues/3879
Describe the bug The constructor for
SelectionController
is defined as such:Thus, one can expect to instantiate a SelectionController like the following:
However, this causes the following error:
SelectionController.js:55 Uncaught Error: Always provide atleast a 'control' configuration when creating a new p13n controller!
Using the debugger on Chrome DevTools, we see that mSettings took on the value of sId:
The error is gone if
sId
isn't defined, but it raises a linting error as TypeScript expectssId
to be defined before mSettings.My full code showing how I am using
SelectionController
: