@@ -5,7 +5,6 @@ import { Style } from 'tns-core-modules/ui/styling/style';
5
5
import { CssProperty , InheritedCssProperty , makeParser , makeValidator , Property } from 'tns-core-modules/ui/core/properties' ;
6
6
import { isIOS } from 'tns-core-modules/platform' ;
7
7
import { layout } from 'tns-core-modules/utils/utils' ;
8
- // import { CssProperty, InheritedCssProperty, makeParser, makeValidator, Property } from "../core/properties";
9
8
10
9
export const cssProperty = ( target : Object , key : string | symbol ) => {
11
10
// property getter
@@ -30,6 +29,7 @@ export const cssProperty = (target: Object, key: string | symbol) => {
30
29
export class LabelBase extends TNLabel implements HtmlViewDefinition {
31
30
@cssProperty maxLines : string | number ;
32
31
@cssProperty autoFontSize : boolean ;
32
+ @cssProperty verticalTextAlignmentgnment : VerticalTextAlignment ;
33
33
public html : string ;
34
34
}
35
35
@@ -82,10 +82,10 @@ textShadowProperty.register(Style);
82
82
export type VerticalTextAlignment = 'initial' | 'top' | 'middle' | 'bottom' ;
83
83
84
84
const textAlignmentConverter = makeParser < VerticalTextAlignment > ( makeValidator < VerticalTextAlignment > ( 'initial' , 'top' , 'middle' , 'bottom' ) ) ;
85
- export const textAlignmentProperty = new InheritedCssProperty < Style , VerticalTextAlignment > ( {
85
+ export const verticalTextAlignmentProperty = new InheritedCssProperty < Style , VerticalTextAlignment > ( {
86
86
name : 'verticalTextAlignment' ,
87
87
cssName : 'vertical-text-align' ,
88
88
defaultValue : 'initial' ,
89
89
valueConverter : textAlignmentConverter
90
90
} ) ;
91
- textAlignmentProperty . register ( Style ) ;
91
+ verticalTextAlignmentProperty . register ( Style ) ;
0 commit comments