NativeScript
Open main menu
Docs
@nativescript/core
Open NativeScript GitHub
Close menu
Docs
@nativescript/core
Search Anything
Preparing search index...
The search index is not available
NativeScript
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
@nativescript/core
Style
Class Style
Modules
Style
constructor
Property
Bag
_font
Scale
_is
View
Base
accessibility
Hidden
accessibility
Language
accessibility
Live
Region
accessibility
Media
Session
accessibility
Role
accessibility
State
accessibility
Step
accessible
align
Content
align
Items
align
Self
android
Content
Inset
android
Content
Inset
Left
android
Content
Inset
Right
android
Dynamic
Elevation
Offset
android
Elevation
android
Selected
Tab
Highlight
Color
android
Status
Bar
Background
background
background
Color
background
Image
background
Internal
background
Position
background
Repeat
background
Size
border
Bottom
Color
border
Bottom
Left
Radius
border
Bottom
Right
Radius
border
Bottom
Width
border
Color
border
Left
Color
border
Left
Width
border
Radius
border
Right
Color
border
Right
Width
border
Top
Color
border
Top
Left
Radius
border
Top
Right
Radius
border
Top
Width
border
Width
box
Shadow
clip
Path
color
flex
Direction
flex
Grow
flex
Shrink
flex
Wrap
flex
Wrap
Before
font
font
Family
font
Internal
font
Size
font
Style
font
Weight
height
horizontal
Alignment
justify
Content
letter
Spacing
line
Height
margin
margin
Bottom
margin
Left
margin
Right
margin
Top
min
Height
min
Width
opacity
order
padding
padding
Bottom
padding
Left
padding
Right
padding
Top
perspective
placeholder
Color
rotate
rotateX
rotateY
scaleX
scaleY
scoped
Css
Variables
selected
Background
Color
selected
Tab
Text
Color
separator
Color
status
Bar
Style
tab
Background
Color
tab
Text
Color
tab
Text
Font
Size
text
Alignment
text
Decoration
text
Shadow
text
Transform
tint
Color
translateX
translateY
unscoped
Css
Variables
vertical
Alignment
view
Ref
visibility
white
Space
width
z
Index
property
Change
Event
view
_create
Property
Change
Data
_emit
add
Event
Listener
get
get
Css
Variable
has
Listeners
notify
notify
Property
Change
off
on
once
remove
Event
Listener
reset
Scoped
Css
Variables
reset
Unscoped
Css
Variables
set
set
Property
set
Scoped
Css
Variable
set
Unscoped
Css
Variable
to
String
add
Event
Listener
off
on
once
remove
Event
Listener
Hierarchy
Observable
Implements
Style
Implemented by
Style
Index
Constructors
constructor
Properties
Property
Bag
_font
Scale
_is
View
Base
accessibility
Hidden
accessibility
Language
accessibility
Live
Region
accessibility
Media
Session
accessibility
Role
accessibility
State
accessibility
Step
accessible
align
Content
align
Items
align
Self
android
Content
Inset
android
Content
Inset
Left
android
Content
Inset
Right
android
Dynamic
Elevation
Offset
android
Elevation
android
Selected
Tab
Highlight
Color
android
Status
Bar
Background
background
background
Color
background
Image
background
Internal
background
Position
background
Repeat
background
Size
border
Bottom
Color
border
Bottom
Left
Radius
border
Bottom
Right
Radius
border
Bottom
Width
border
Color
border
Left
Color
border
Left
Width
border
Radius
border
Right
Color
border
Right
Width
border
Top
Color
border
Top
Left
Radius
border
Top
Right
Radius
border
Top
Width
border
Width
box
Shadow
clip
Path
color
flex
Direction
flex
Grow
flex
Shrink
flex
Wrap
flex
Wrap
Before
font
font
Family
font
Internal
font
Size
font
Style
font
Weight
height
horizontal
Alignment
justify
Content
letter
Spacing
line
Height
margin
margin
Bottom
margin
Left
margin
Right
margin
Top
min
Height
min
Width
opacity
order
padding
padding
Bottom
padding
Left
padding
Right
padding
Top
perspective
placeholder
Color
rotate
rotateX
rotateY
scaleX
scaleY
scoped
Css
Variables
selected
Background
Color
selected
Tab
Text
Color
separator
Color
status
Bar
Style
tab
Background
Color
tab
Text
Color
tab
Text
Font
Size
text
Alignment
text
Decoration
text
Shadow
text
Transform
tint
Color
translateX
translateY
unscoped
Css
Variables
vertical
Alignment
view
Ref
visibility
white
Space
width
z
Index
property
Change
Event
Accessors
view
Methods
_create
Property
Change
Data
_emit
add
Event
Listener
get
get
Css
Variable
has
Listeners
notify
notify
Property
Change
off
on
once
remove
Event
Listener
reset
Scoped
Css
Variables
reset
Unscoped
Css
Variables
set
set
Property
set
Scoped
Css
Variable
set
Unscoped
Css
Variable
to
String
add
Event
Listener
off
on
once
remove
Event
Listener
Constructors
constructor
new
Style
(
ownerView
:
ViewBase
|
WeakRef
<
ViewBase
>
)
:
Style
Parameters
ownerView:
ViewBase
|
WeakRef
<
ViewBase
>
Returns
Style
Properties
Property
Bag
Property
Bag
:
object
Type declaration
prototype
:
object
[
property:
string
]:
string
_font
Scale
_font
Scale
:
number
_is
View
Base
_is
View
Base
:
boolean
accessibility
Hidden
accessibility
Hidden
:
boolean
accessibility
Language
accessibility
Language
:
string
accessibility
Live
Region
accessibility
Live
Region
:
AccessibilityLiveRegion
accessibility
Media
Session
accessibility
Media
Session
:
boolean
accessibility
Role
accessibility
Role
:
AccessibilityRole
accessibility
State
accessibility
State
:
AccessibilityState
accessibility
Step
accessibility
Step
:
number
accessible
accessible
:
boolean
align
Content
align
Content
:
AlignContent
align
Items
align
Items
:
AlignItems
align
Self
align
Self
:
AlignSelf
android
Content
Inset
android
Content
Inset
:
string
|
number
|
LengthDipUnit
|
LengthPxUnit
android
Content
Inset
Left
android
Content
Inset
Left
:
LengthType
android
Content
Inset
Right
android
Content
Inset
Right
:
LengthType
android
Dynamic
Elevation
Offset
android
Dynamic
Elevation
Offset
:
number
android
Elevation
android
Elevation
:
number
android
Selected
Tab
Highlight
Color
android
Selected
Tab
Highlight
Color
:
Color
android
Status
Bar
Background
android
Status
Bar
Background
:
Color
background
background
:
string
background
Color
background
Color
:
Color
background
Image
background
Image
:
string
|
LinearGradient
background
Internal
background
Internal
:
Background
background
Position
background
Position
:
string
background
Repeat
background
Repeat
:
BackgroundRepeatType
background
Size
background
Size
:
string
border
Bottom
Color
border
Bottom
Color
:
Color
border
Bottom
Left
Radius
border
Bottom
Left
Radius
:
LengthType
border
Bottom
Right
Radius
border
Bottom
Right
Radius
:
LengthType
border
Bottom
Width
border
Bottom
Width
:
LengthType
border
Color
border
Color
:
string
|
Color
border
Left
Color
border
Left
Color
:
Color
border
Left
Width
border
Left
Width
:
LengthType
border
Radius
border
Radius
:
string
|
number
|
LengthDipUnit
|
LengthPxUnit
border
Right
Color
border
Right
Color
:
Color
border
Right
Width
border
Right
Width
:
LengthType
border
Top
Color
border
Top
Color
:
Color
border
Top
Left
Radius
border
Top
Left
Radius
:
LengthType
border
Top
Right
Radius
border
Top
Right
Radius
:
LengthType
border
Top
Width
border
Top
Width
:
LengthType
border
Width
border
Width
:
string
|
number
|
LengthDipUnit
|
LengthPxUnit
box
Shadow
box
Shadow
:
CSSShadow
clip
Path
clip
Path
:
string
color
color
:
Color
flex
Direction
flex
Direction
:
FlexDirection
flex
Grow
flex
Grow
:
number
flex
Shrink
flex
Shrink
:
number
flex
Wrap
flex
Wrap
:
FlexWrap
flex
Wrap
Before
flex
Wrap
Before
:
boolean
font
font
:
string
font
Family
font
Family
:
string
font
Internal
font
Internal
:
Font
font
Size
font
Size
:
number
font
Style
font
Style
:
FontStyle
font
Weight
font
Weight
:
FontWeight
height
height
:
PercentLengthType
horizontal
Alignment
horizontal
Alignment
:
HorizontalAlignmentType
justify
Content
justify
Content
:
JustifyContent
letter
Spacing
letter
Spacing
:
number
line
Height
line
Height
:
number
margin
margin
:
string
|
number
|
LengthDipUnit
|
LengthPxUnit
|
LengthPercentUnit
margin
Bottom
margin
Bottom
:
PercentLengthType
margin
Left
margin
Left
:
PercentLengthType
margin
Right
margin
Right
:
PercentLengthType
margin
Top
margin
Top
:
PercentLengthType
min
Height
min
Height
:
LengthType
min
Width
min
Width
:
LengthType
opacity
opacity
:
number
order
order
:
number
padding
padding
:
string
|
number
|
LengthDipUnit
|
LengthPxUnit
padding
Bottom
padding
Bottom
:
LengthType
padding
Left
padding
Left
:
LengthType
padding
Right
padding
Right
:
LengthType
padding
Top
padding
Top
:
LengthType
perspective
perspective
:
number
placeholder
Color
placeholder
Color
:
Color
rotate
rotate
:
number
rotateX
rotateX
:
number
rotateY
rotateY
:
number
scaleX
scaleX
:
number
scaleY
scaleY
:
number
Private
scoped
Css
Variables
scoped
Css
Variables
:
Map
<
string
,
string
>
selected
Background
Color
selected
Background
Color
:
Color
selected
Tab
Text
Color
selected
Tab
Text
Color
:
Color
separator
Color
separator
Color
:
Color
status
Bar
Style
status
Bar
Style
:
"dark"
|
"light"
tab
Background
Color
tab
Background
Color
:
Color
tab
Text
Color
tab
Text
Color
:
Color
tab
Text
Font
Size
tab
Text
Font
Size
:
number
text
Alignment
text
Alignment
:
TextAlignmentType
text
Decoration
text
Decoration
:
TextDecorationType
text
Shadow
text
Shadow
:
CSSShadow
text
Transform
text
Transform
:
TextTransformType
tint
Color
tint
Color
:
Color
translateX
translateX
:
number
translateY
translateY
:
number
Private
unscoped
Css
Variables
unscoped
Css
Variables
:
Map
<
string
,
string
>
vertical
Alignment
vertical
Alignment
:
VerticalAlignmentType
view
Ref
view
Ref
:
WeakRef
<
ViewBase
>
visibility
visibility
:
VisibilityType
white
Space
white
Space
:
WhiteSpaceType
width
width
:
PercentLengthType
z
Index
z
Index
:
number
Static
property
Change
Event
property
Change
Event
:
string
Accessors
view
get
(
)
:
ViewBase
Returns
ViewBase
Methods
_create
Property
Change
Data
_create
Property
Change
Data
(
propertyName
:
string
, value
:
any
, oldValue
?:
any
)
:
PropertyChangeData
Parameters
propertyName:
string
value:
any
Optional
oldValue:
any
Returns
PropertyChangeData
_emit
_emit
(
eventNames
:
string
)
:
void
Parameters
eventNames:
string
Returns
void
add
Event
Listener
add
Event
Listener
(
eventNames
:
string
, callback
:
function
, thisArg
?:
any
)
:
void
Parameters
eventNames:
string
callback:
function
(
data
:
EventData
)
:
void
Parameters
data:
EventData
Returns
void
Optional
thisArg:
any
Returns
void
get
get
(
name
:
string
)
:
any
Parameters
name:
string
Returns
any
get
Css
Variable
get
Css
Variable
(
varName
:
string
)
:
string
Parameters
varName:
string
Returns
string
has
Listeners
has
Listeners
(
eventName
:
string
)
:
boolean
Parameters
eventName:
string
Returns
boolean
notify
notify<T>
(
data
:
T
)
:
void
Type parameters
T
:
NotifyData
<
T
>
Parameters
data:
T
Returns
void
notify
Property
Change
notify
Property
Change
(
name
:
string
, value
:
any
, oldValue
?:
any
)
:
void
Parameters
name:
string
value:
any
Optional
oldValue:
any
Returns
void
off
off
(
eventNames
:
string
, callback
?:
any
, thisArg
?:
any
)
:
void
Parameters
eventNames:
string
Optional
callback:
any
Optional
thisArg:
any
Returns
void
on
on
(
eventNames
:
string
, callback
:
function
, thisArg
?:
any
)
:
void
Parameters
eventNames:
string
callback:
function
(
data
:
EventData
)
:
void
Parameters
data:
EventData
Returns
void
Optional
thisArg:
any
Returns
void
once
once
(
event
:
string
, callback
:
function
, thisArg
?:
any
)
:
void
Parameters
event:
string
callback:
function
(
data
:
EventData
)
:
void
Parameters
data:
EventData
Returns
void
Optional
thisArg:
any
Returns
void
remove
Event
Listener
remove
Event
Listener
(
eventNames
:
string
, callback
?:
any
, thisArg
?:
any
)
:
void
Parameters
eventNames:
string
Optional
callback:
any
Optional
thisArg:
any
Returns
void
reset
Scoped
Css
Variables
reset
Scoped
Css
Variables
(
)
:
void
Returns
void
reset
Unscoped
Css
Variables
reset
Unscoped
Css
Variables
(
)
:
void
Returns
void
set
set
(
name
:
string
, value
:
any
)
:
void
Parameters
name:
string
value:
any
Returns
void
set
Property
set
Property
(
name
:
string
, value
:
any
)
:
void
Parameters
name:
string
value:
any
Returns
void
set
Scoped
Css
Variable
set
Scoped
Css
Variable
(
varName
:
string
, value
:
string
)
:
void
Parameters
varName:
string
value:
string
Returns
void
set
Unscoped
Css
Variable
set
Unscoped
Css
Variable
(
varName
:
string
, value
:
string
)
:
void
Parameters
varName:
string
value:
string
Returns
void
to
String
to
String
(
)
:
string
Returns
string
Static
add
Event
Listener
add
Event
Listener
(
eventName
:
string
, callback
:
any
, thisArg
?:
any
)
:
void
Parameters
eventName:
string
callback:
any
Optional
thisArg:
any
Returns
void
Static
off
off
(
eventName
:
string
, callback
?:
any
, thisArg
?:
any
)
:
void
Parameters
eventName:
string
Optional
callback:
any
Optional
thisArg:
any
Returns
void
Static
on
on
(
eventName
:
string
, callback
:
any
, thisArg
?:
any
)
:
void
Parameters
eventName:
string
callback:
any
Optional
thisArg:
any
Returns
void
Static
once
once
(
eventName
:
string
, callback
:
any
, thisArg
?:
any
)
:
void
Parameters
eventName:
string
callback:
any
Optional
thisArg:
any
Returns
void
Static
remove
Event
Listener
remove
Event
Listener
(
eventName
:
string
, callback
?:
any
, thisArg
?:
any
)
:
void
Parameters
eventName:
string
Optional
callback:
any
Optional
thisArg:
any
Returns
void
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method