Re-exports the adapter's API and exposes it as window.maidrPowerBI for
script-tag usage. A Power BI custom visual imports it as an ES module
instead; see bindPowerBI.
Remarks
No powerbi-visuals-api dependency, at compile time or at runtime: the data
view a visual receives is read structurally.
Example
import { bindPowerBI } from'maidr/powerbi';
// In the visual's constructor: this.maidr = bindPowerBI(options.element, { chartType:'line', title:'Sales' }); // In update(): this.maidr.update(options.dataViews?.[0]); // In destroy(): this.maidr.dispose();
Power BI adapter entry point for MAIDR.
Re-exports the adapter's API and exposes it as
window.maidrPowerBIfor script-tag usage. A Power BI custom visual imports it as an ES module instead; see bindPowerBI.Remarks
No
powerbi-visuals-apidependency, at compile time or at runtime: the data view a visual receives is read structurally.Example