0.1.1 • Published 3 years ago

@bonitasoft/pb-text v0.1.1

Weekly downloads
8
License
GPLv2
Repository
github
Last release
3 years ago

pb-text

npmVersion

Simple text web component

Attributes

AttributeTypeDefaultPossible values
alignmentstring"left"left center right
allow-htmlbooleanfalse
idstring""
labelstring""
label-hiddenbooleanfalse
label-positionstring"top"left top
label-widthnumber4
langstring"en"en es-ES fr ja pt-BR
textstring""

Note: If allow-html is set, this is unsafe to use the text attribute with any user-provided input that hasn't been sanitized or escaped, as it may lead to cross-site-scripting vulnerabilities.

Usage

Run:

npm install @bonitasoft/pb-text

Then import node_modules/@bonitasoft/pb-text/lib/pb-text.es5.min.js

And you can use new html tag <pb-text text="My text"></pb-text>