0.0.2 • Published 5 years ago

@senx/warpview-editor-lite v0.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 years ago

Warp View Editor lite

This web components embed a WarpScript editor dedicated to Warp 10™.

Usage

npm i @senx/warpview-editor-lite --save

yarn add @senx/warpview-editor-lite

bower install senx-warpview-editor-lite --save
<html>
<head>
  <title>Test</title>
  <script src="https://unpkg.com/@senx/warpview-editor-lite@x.x.x/dist/warpview-editor-lite.js"></script>
</head>
<body>
  <warp-view-editor-lite height-line=18 width-px=600 theme="dark">
      2 2 +
   </warp-view-editor-lite>
</body>
</html>

Integrations

See here

CSS vars

Attributes

NameTypeDefaultDescription
themestring'light'Editor theme (light or dark)
warpscriptstring''WarpScript to edit (optional, could be inside HTML tag)
widthPxnumberFixed width
heightPxnumberFixed height
heightLinenumberFixed number of lines