@lightningjs/ui
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -48,3 +48,3 @@ # Key | ||
If you want to change anything related to the label of the Key you can use the `labelText` setter: | ||
If you want to change anything related to the label of the Key you can use the `label` setter to adjust the label tag: | ||
@@ -55,6 +55,8 @@ ```js | ||
type: Key, | ||
labelText: { | ||
fontSize: 44, | ||
fontFamily: 'MyFont-Regular', | ||
//basically any setter you can use when using a text texture | ||
label: { | ||
text: { | ||
fontSize: 44, | ||
fontFamily: 'MyFont-Regular', | ||
//basically any setter you can use when using a text texture | ||
} | ||
} | ||
@@ -117,4 +119,4 @@ } | ||
# labelText | ||
Sets the labelText `object` the Key component uses to alter how the label is presented. | ||
# label | ||
Patches an object to the label `tag`, this allows you to customize the label tag. | ||
@@ -125,3 +127,3 @@ # labelColors | ||
# background | ||
Patches an object to the background tag, this allows you to customize the background tag. | ||
Patches an object to the background `tag`, this allows you to customize the background tag. | ||
@@ -136,4 +138,4 @@ # backgroundColors | ||
# labelText | ||
Returns the labelText `object` the Key component uses to alter how the label is presented. | ||
# label | ||
Returns the label `tag`, this allows you to customize the label `tag`. | ||
@@ -144,5 +146,5 @@ # labelColors | ||
# background | ||
Returns the background tag, this allows you to customize the background tag. | ||
Returns the background `tag`, this allows you to customize the background `tag`. | ||
# backgroundColors | ||
Returns the backgroundColors `object` the Key component uses to switch the color when it is focused. |
{ | ||
"name": "@lightningjs/ui", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Standard UI components for Lightning", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -57,2 +57,10 @@ /* | ||
set label(obj) { | ||
this.tag('Label').patch(obj); | ||
} | ||
get label() { | ||
return this.tag('Label'); | ||
} | ||
set labelColors(obj) { | ||
@@ -59,0 +67,0 @@ this._labelColors = obj; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
127466
1882