[Minor] Allow label floating
This commit is contained in:
parent
b2d0366b29
commit
0e8aa5f00f
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "strolch-wc-debounced-input",
|
||||
"description": "Strolch WebComponent Debounced Input",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"authors": [
|
||||
"Robert von Burg"
|
||||
],
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
--regular-color: lightgrey;
|
||||
--disabled-color: darkgrey;
|
||||
display: block;
|
||||
|
||||
--input-padding: 4px;
|
||||
}
|
||||
|
||||
paper-input {
|
||||
|
@ -20,7 +22,7 @@
|
|||
--paper-input-container-input-color: var(--focus-color);
|
||||
--paper-input-container-input: {
|
||||
font-size: 18px;
|
||||
padding: 4px;
|
||||
padding: var(--input-padding);
|
||||
};
|
||||
--paper-input-container-underline-disabled: {
|
||||
border-bottom-style: solid;
|
||||
|
@ -52,7 +54,8 @@
|
|||
|
||||
<!-- Content -->
|
||||
<paper-input id="inputElement"
|
||||
no-label-float
|
||||
label="[[label]]"
|
||||
no-label-float="[[noLabelFloat]]"
|
||||
placeholder="[[placeholder]]"
|
||||
value="{{input}}"
|
||||
disabled$="[[disabled]]"
|
||||
|
@ -97,6 +100,13 @@
|
|||
type: String,
|
||||
value: "search"
|
||||
},
|
||||
label: {
|
||||
type: String
|
||||
},
|
||||
noLabelFloat: {
|
||||
type: Boolean,
|
||||
value: true
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
value: false
|
||||
|
|
Loading…
Reference in New Issue