2.0.2 • Published 10 months ago
Last release 10 months ago
Share package \ This is a web component meant to be used for SCL type attributes. In addition to default input it allows to have a value="null" for XML type attributes. In addition to that is allows to set a unit and multiplier for specific SCL element such as VoltageLevel or SubNetwork.
Usage This element was meant to be used only for plugins in this organization. If it still fills you bill please use or re-use it. But be aware that we will not react on features wishes that do not contribute to the needs of plugin in this organization.
SclTextField.ts:class: SclTextField, scl-text-field Superclass Name Module Package LitElementlit
Mixins Name Module Package ScopedElementsMixin@open-wc/scoped-elements/lit-element.js
Static Fields Name Privacy Type Default Description Inherited From scopedElementsobject`{
'md-filled-text-field': MdFilledTextField,
'md-switch': MdSwitch,
'md-icon': MdIcon,
'md-icon-button': MdIconButton,
'md-menu': MdMenu,
'md-menu-item': MdMenuItem, }` | | |
Fields Name Privacy Type Default Description Inherited From nullablebooleanfalseWhether [[`value`]] may be set to `null` by nullSwitch valuestring \| nullSCL attributes `value`, can only be `null` if [[`nullable`]]. disabledbooleanfalselabelstring''requiredbooleanfalsesupportingTextstring''suffixTextstring''The inputs suffix text so long there is no [[`unit`]] defined placeholderstring''type'number' \| 'text''text'patternstring''maxstring''minstring''maxLengthnumber-1minLengthnumber-1unitstring''SI Unit, must be non-empty to allow for selecting a [[`multiplier`]].
Overrides [[`suffixText`]]. multipliersarray[null, '']Selectable SI multipliers for a non-empty [[`unit`]]. multiplierstring \| nullThe current selected [[`multiplier`]] nullSwitchMdSwitch \| undefined
Methods Name Privacy Description Parameters Return Inherited From reportValiditybooleansetCustomValiditymessage: stringvoidcheckValiditybooleanresetvoid
Events Name Type Description Inherited From inputEvent
Fields Name Privacy Type Default Description Inherited From textFieldValueprivate string''multiplierIndexprivate number0isNullprivate booleanfalseparkedValueprivate string \| nullnullnullprivate booleanmultiplierMenuprivate MdMenu \| undefinedtextFieldprivate TextField \| undefined
Methods Name Privacy Description Parameters Return Inherited From returnParkedValueprivate voidparkValueprivate voidselectMultiplierprivate se: CloseMenuEventvoidrenderMultiplierListprivate TemplateResultrenderUnitSelectorprivate TemplateResultrenderNullSwitchprivate TemplateResult
Exports Kind Name Declaration Module Package jsSclTextFieldSclTextField SclTextField.ts
scl-text-field.ts:Exports Kind Name Declaration Module Package custom-element-definitionscl-text-fieldSclTextField /SclTextField.js
© 2023 The Contributors