@microsoft/power-fx-formulabar
TypeScript icon, indicating that this package has built-in type declarations

6.0.10 • Public • Published

Power Fx Formula Bar

Provides a React control based on the Monaco Editor for Power Fx language editing to enable common language features such diagnostics, suggestions, and function definitions.

Usage

This package provides the PowerFxFormulaEditor React control for rendering a Power Fx editor. A sample of integrating this component can be found in the power-fx-host-samples repo.

This package integrates with the ESM version of the Monaco Editor. By default, no web workers will be configured, which will result in all language service computations being run on the UI thread. This could lead to performance issues, and may result in a browser warning issued by the Monaco Editor.

The Monaco Editor docs describe how to configure these web workers, and also provide samples for different bundling solutions.

This package only requires the default editor.worker, and does not use any of the language specific features of the Monaco Editor. For ease of integration, the version of the editor.worker.js which matches the Monaco Editor version used by this package is provided in the dist folder. This file can be hosted, and the location provided in the MonacoEnvironment.getWorkerUrl() call.

Readme

Keywords

none

Package Sidebar

Install

npm i @microsoft/power-fx-formulabar

Weekly Downloads

7

Version

6.0.10

License

MIT

Unpacked Size

1.61 MB

Total Files

502

Last publish

Collaborators

  • powerapps-admin
  • microsoft1es