Nativescript element attributes
dangerousEvalExpression : String -> String
Caution: This allows execution of JS. Ensure your string is generated at compile time and NOT dynamic
Good usage:
itemTemplateSelector <|
dangerousEvalExpression " $value % 2 == 0 ? 'template1' : 'template2'"
dangerousEvalExpression " isIOS ? UITableViewCellSelectionStyle.None : 0 "
BAD usage:
dangerousEvalExpression (" $value % " ++ user.input ++ " == 0")
bindAttributeWithExpression : String -> String -> Html.Attribute msg
Binding expressions are supported only when ListView is their ancestor. In any other case, there won't be any value to bind to. So it will be empty.
Use hypens instead of camelcase like font-family
and not fontFamily
ios : String -> String -> Html.Attribute msg
Allows setting iOS only attributes. The attribute is set only when the mobile OS is iOS
android : String -> String -> Html.Attribute msg
Allows setting android only attributes. The attribute is set only when the mobile OS is android
modalConfig : Basics.Bool -> Html.Attribute msg
Used to show a page as modal and no backstack is added
items : Native.ListViewModel a -> Html.Attribute msg
Sets encoded items to listViewWithSingleTemplate or listViewWithMultipleTemplate
fontSize : String -> Html.Attribute msg
Sets fontSize
fontWeight : String -> Html.Attribute msg
Sets fontWeight
fontStyle : String -> Html.Attribute msg
Sets fontStyle
formattedText : String -> Html.Attribute msg
Sets formattedText
letterSpacing : String -> Html.Attribute msg
Sets letterSpacing
lineHeight : String -> Html.Attribute msg
Sets lineHeight
nativeTextViewProtected : String -> Html.Attribute msg
Sets nativeTextViewProtected
text : String -> Html.Attribute msg
Sets text
key : String -> Html.Attribute msg
Sets key
icon : String -> Html.Attribute msg
Sets icon
style : String -> Html.Attribute msg
Sets style
textAlignment : String -> Html.Attribute msg
Sets textAlignment
textDecoration : String -> Html.Attribute msg
Sets textDecoration
textShadow : String -> Html.Attribute msg
Sets textShadow
textTransform : String -> Html.Attribute msg
Sets textTransform
whiteSpace : String -> Html.Attribute msg
Sets whiteSpace
stretchLastChild : String -> Html.Attribute msg
Sets stretchLastChild
orientation : String -> Html.Attribute msg
Sets orientation
itemHeight : String -> Html.Attribute msg
Sets itemHeight
itemWidth : String -> Html.Attribute msg
Sets itemWidth
alignContent : String -> Html.Attribute msg
Sets alignContent
alignItems : String -> Html.Attribute msg
Sets alignItems
flexDirection : String -> Html.Attribute msg
Sets flexDirection
flexWrap : String -> Html.Attribute msg
Sets flexWrap
justifyContent : String -> Html.Attribute msg
Sets justifyContent
padding : String -> Html.Attribute msg
Sets padding
paddingBottom : String -> Html.Attribute msg
Sets paddingBottom
paddingLeft : String -> Html.Attribute msg
Sets paddingLeft
paddingRight : String -> Html.Attribute msg
Sets paddingRight
paddingTop : String -> Html.Attribute msg
Sets paddingTop
accessibilityHidden : String -> Html.Attribute msg
Sets accessibilityHidden
accessibilityHint : String -> Html.Attribute msg
Sets accessibilityHint
accessibilityIdentifier : String -> Html.Attribute msg
Sets accessibilityIdentifier
accessibilityLabel : String -> Html.Attribute msg
Sets accessibilityLabel
accessibilityLanguage : String -> Html.Attribute msg
Sets accessibilityLanguage
accessibilityLiveRegion : String -> Html.Attribute msg
Sets accessibilityLiveRegion
accessibilityMediaSession : String -> Html.Attribute msg
Sets accessibilityMediaSession
accessibilityRole : String -> Html.Attribute msg
Sets accessibilityRole
accessibilityState : String -> Html.Attribute msg
Sets accessibilityState
accessibilityValue : String -> Html.Attribute msg
Sets accessibilityValue
accessible : String -> Html.Attribute msg
Sets accessible
alignSelf : String -> Html.Attribute msg
Sets alignSelf
androidDynamicElevationOffset : String -> Html.Attribute msg
Sets androidDynamicElevationOffset
androidElevation : String -> Html.Attribute msg
Sets androidElevation
automationText : String -> Html.Attribute msg
Sets automationText
background : String -> Html.Attribute msg
Sets background
backgroundColor : String -> Html.Attribute msg
Sets backgroundColor
backgroundImage : String -> Html.Attribute msg
Sets backgroundImage
borderBottomColor : String -> Html.Attribute msg
Sets borderBottomColor
borderBottomLeftRadius : String -> Html.Attribute msg
Sets borderBottomLeftRadius
borderBottomRightRadius : String -> Html.Attribute msg
Sets borderBottomRightRadius
borderBottomWidth : String -> Html.Attribute msg
Sets borderBottomWidth
borderColor : String -> Html.Attribute msg
Sets borderColor
borderLeftColor : String -> Html.Attribute msg
Sets borderLeftColor
borderLeftWidth : String -> Html.Attribute msg
Sets borderLeftWidth
borderRadius : String -> Html.Attribute msg
Sets borderRadius
borderRightColor : String -> Html.Attribute msg
Sets borderRightColor
borderRightWidth : String -> Html.Attribute msg
Sets borderRightWidth
borderTopColor : String -> Html.Attribute msg
Sets borderTopColor
borderTopLeftRadius : String -> Html.Attribute msg
Sets borderTopLeftRadius
borderTopRightRadius : String -> Html.Attribute msg
Sets borderTopRightRadius
borderTopWidth : String -> Html.Attribute msg
Sets borderTopWidth
borderWidth : String -> Html.Attribute msg
Sets borderWidth
boxShadow : String -> Html.Attribute msg
Sets boxShadow
class : String -> Html.Attribute msg
Sets class
col : String -> Html.Attribute msg
Sets col
colSpan : String -> Html.Attribute msg
Sets colSpan
color : String -> Html.Attribute msg
Sets color
column : String -> Html.Attribute msg
Sets column
columns : String -> Html.Attribute msg
Sets columns
columnSpan : String -> Html.Attribute msg
Sets columnSpan
css : String -> Html.Attribute msg
Sets css
cssClasses : String -> Html.Attribute msg
Sets cssClasses
cssPseudoClasses : String -> Html.Attribute msg
Sets cssPseudoClasses
cssType : String -> Html.Attribute msg
Sets cssType
dock : String -> Html.Attribute msg
Sets dock
domNode : String -> Html.Attribute msg
Sets domNode
effectiveBorderBottomWidth : String -> Html.Attribute msg
Sets effectiveBorderBottomWidth
effectiveBorderLeftWidth : String -> Html.Attribute msg
Sets effectiveBorderLeftWidth
effectiveBorderRightWidth : String -> Html.Attribute msg
Sets effectiveBorderRightWidth
effectiveBorderTopWidth : String -> Html.Attribute msg
Sets effectiveBorderTopWidth
effectiveHeight : String -> Html.Attribute msg
Sets effectiveHeight
effectiveLeft : String -> Html.Attribute msg
Sets effectiveLeft
effectiveMarginBottom : String -> Html.Attribute msg
Sets effectiveMarginBottom
effectiveMarginLeft : String -> Html.Attribute msg
Sets effectiveMarginLeft
effectiveMarginRight : String -> Html.Attribute msg
Sets effectiveMarginRight
effectiveMarginTop : String -> Html.Attribute msg
Sets effectiveMarginTop
effectiveMinHeight : String -> Html.Attribute msg
Sets effectiveMinHeight
effectiveMinWidth : String -> Html.Attribute msg
Sets effectiveMinWidth
effectivePaddingBottom : String -> Html.Attribute msg
Sets effectivePaddingBottom
effectivePaddingLeft : String -> Html.Attribute msg
Sets effectivePaddingLeft
effectivePaddingRight : String -> Html.Attribute msg
Sets effectivePaddingRight
effectivePaddingTop : String -> Html.Attribute msg
Sets effectivePaddingTop
effectiveTop : String -> Html.Attribute msg
Sets effectiveTop
effectiveWidth : String -> Html.Attribute msg
Sets effectiveWidth
flexGrow : String -> Html.Attribute msg
Sets flexGrow
flexShrink : String -> Html.Attribute msg
Sets flexShrink
flexWrapBefore : String -> Html.Attribute msg
Sets flexWrapBefore
height : String -> Html.Attribute msg
Sets height
horizontalAlignment : String -> Html.Attribute msg
Sets horizontalAlignment
id : String -> Html.Attribute msg
Sets id
itemId : String -> Html.Attribute msg
Sets itemId
iosIgnoreSafeArea : String -> Html.Attribute msg
Sets iosIgnoreSafeArea
iosOverflowSafeArea : String -> Html.Attribute msg
Sets iosOverflowSafeArea
iosOverflowSafeAreaEnabled : String -> Html.Attribute msg
Sets iosOverflowSafeAreaEnabled
isCollapsed : String -> Html.Attribute msg
Sets isCollapsed
isEnabled : String -> Html.Attribute msg
Sets isEnabled
isLayoutRequired : String -> Html.Attribute msg
Sets isLayoutRequired
isLayoutValid : String -> Html.Attribute msg
Sets isLayoutValid
isUserInteractionEnabled : String -> Html.Attribute msg
Sets isUserInteractionEnabled
left : String -> Html.Attribute msg
Sets left
margin : String -> Html.Attribute msg
Sets margin
marginBottom : String -> Html.Attribute msg
Sets marginBottom
marginLeft : String -> Html.Attribute msg
Sets marginLeft
marginRight : String -> Html.Attribute msg
Sets marginRight
marginTop : String -> Html.Attribute msg
Sets marginTop
minHeight : String -> Html.Attribute msg
Sets minHeight
minWidth : String -> Html.Attribute msg
Sets minWidth
nativeViewProtected : String -> Html.Attribute msg
Sets nativeViewProtected
opacity : String -> Html.Attribute msg
Sets opacity
order : String -> Html.Attribute msg
Sets order
originX : String -> Html.Attribute msg
Sets originX
originY : String -> Html.Attribute msg
Sets originY
perspective : String -> Html.Attribute msg
Sets perspective
recycleNativeView : String -> Html.Attribute msg
Sets recycleNativeView
reusable : String -> Html.Attribute msg
Sets reusable
rotate : String -> Html.Attribute msg
Sets rotate
rotateX : String -> Html.Attribute msg
Sets rotateX
rotateY : String -> Html.Attribute msg
Sets rotateY
row : String -> Html.Attribute msg
Sets row
busy : String -> Html.Attribute msg
Sets busy
rows : String -> Html.Attribute msg
Sets rows
rowSpan : String -> Html.Attribute msg
Sets rowSpan
scaleX : String -> Html.Attribute msg
Sets scaleX
scaleY : String -> Html.Attribute msg
Sets scaleY
top : String -> Html.Attribute msg
Sets top
translateX : String -> Html.Attribute msg
Sets translateX
translateY : String -> Html.Attribute msg
Sets translateY
textWrap : String -> Html.Attribute msg
Sets textWrap
verticalAlignment : String -> Html.Attribute msg
Sets verticalAlignment
viewController : String -> Html.Attribute msg
Sets viewController
visibility : String -> Html.Attribute msg
Sets visibility
width : String -> Html.Attribute msg
Sets width
actionBarVisibility : String -> Html.Attribute msg
Sets actionBarVisibility
animated : String -> Html.Attribute msg
Sets animated
transition : String -> Html.Attribute msg
Sets transition
defaultAnimatedNavigation : String -> Html.Attribute msg
Sets defaultAnimatedNavigation
defaultTransition : String -> Html.Attribute msg
Sets defaultTransition
accessibilityAnnouncePageEnabled : String -> Html.Attribute msg
Sets accessibilityAnnouncePageEnabled
actionBarHidden : String -> Html.Attribute msg
Sets actionBarHidden
androidStatusBarBackground : String -> Html.Attribute msg
Sets androidStatusBarBackground
backgroundSpanUnderStatusBar : String -> Html.Attribute msg
Sets backgroundSpanUnderStatusBar
enableSwipeBackNavigation : String -> Html.Attribute msg
Sets enableSwipeBackNavigation
statusBarStyle : String -> Html.Attribute msg
Sets statusBarStyle
date : String -> Html.Attribute msg
Sets date
iosPreferredDatePickerStyle : String -> Html.Attribute msg
Sets iosPreferredDatePickerStyle
maxDate : String -> Html.Attribute msg
Sets maxDate
minDate : String -> Html.Attribute msg
Sets minDate
day : String -> Html.Attribute msg
Sets day
month : String -> Html.Attribute msg
Sets month
year : String -> Html.Attribute msg
Sets year
html : String -> Html.Attribute msg
Sets html
decodeHeight : String -> Html.Attribute msg
Sets decodeHeight
decodeWidth : String -> Html.Attribute msg
Sets decodeWidth
isLoading : String -> Html.Attribute msg
Sets isLoading
loadMode : String -> Html.Attribute msg
Sets loadMode
src : String -> Html.Attribute msg
Sets src
stretch : String -> Html.Attribute msg
Sets stretch
tintColor : String -> Html.Attribute msg
Sets tintColor
selectedIndex : String -> Html.Attribute msg
Sets selectedIndex
maxValue : String -> Html.Attribute msg
Sets maxValue
value : String -> Html.Attribute msg
Sets value
checked : String -> Html.Attribute msg
Sets checked
minValue : String -> Html.Attribute msg
Sets minValue
horizontalOffset : String -> Html.Attribute msg
Sets horizontalOffset
isScrollEnabled : String -> Html.Attribute msg
Sets isScrollEnabled
scrollBarIndicatorVisible : String -> Html.Attribute msg
Sets scrollBarIndicatorVisible
scrollableHeight : String -> Html.Attribute msg
Sets scrollableHeight
scrollableWidth : String -> Html.Attribute msg
Sets scrollableWidth
verticalOffset : String -> Html.Attribute msg
Sets verticalOffset
hint : String -> Html.Attribute msg
Sets hint
textFieldBackgroundColor : String -> Html.Attribute msg
Sets textFieldBackgroundColor
textFieldHintColor : String -> Html.Attribute msg
Sets textFieldHintColor
title : String -> Html.Attribute msg
Sets title
flat : String -> Html.Attribute msg
Sets flat
titleView : String -> Html.Attribute msg
Sets titleView
selectedBackgroundColor : String -> Html.Attribute msg
Sets selectedBackgroundColor
androidOffscreenTabLimit : String -> Html.Attribute msg
Sets androidOffscreenTabLimit
androidSelectedTabHighlightColor : String -> Html.Attribute msg
Sets androidSelectedTabHighlightColor
androidSwipeEnabled : String -> Html.Attribute msg
Sets androidSwipeEnabled
androidTabsPosition : String -> Html.Attribute msg
Sets androidTabsPosition
iosIconRenderingMode : String -> Html.Attribute msg
Sets iosIconRenderingMode
selectedTabTextColor : String -> Html.Attribute msg
Sets selectedTabTextColor
tabBackgroundColor : String -> Html.Attribute msg
Sets tabBackgroundColor
tabTextColor : String -> Html.Attribute msg
Sets tabTextColor
tabTextFontSize : String -> Html.Attribute msg
Sets tabTextFontSize
canBeLoaded : String -> Html.Attribute msg
Sets canBeLoaded
canGoBack : String -> Html.Attribute msg
Sets canGoBack
canGoForward : String -> Html.Attribute msg
Sets canGoForward
iconSource : String -> Html.Attribute msg
Sets iconSource
autocapitalizationType : String -> Html.Attribute msg
Sets autocapitalizationType
autocorrect : String -> Html.Attribute msg
Sets autocorrect
autofillType : String -> Html.Attribute msg
Sets autofillType
closeOnReturn : String -> Html.Attribute msg
Sets closeOnReturn
editable : String -> Html.Attribute msg
Sets editable
keyboardType : String -> Html.Attribute msg
Sets keyboardType
maxLength : String -> Html.Attribute msg
Sets maxLength
returnKeyType : String -> Html.Attribute msg
Sets returnKeyType
secure : String -> Html.Attribute msg
Sets secure
secureWithoutAutofill : String -> Html.Attribute msg
Sets secureWithoutAutofill
updateTextTrigger : String -> Html.Attribute msg
Sets updateTextTrigger
maxLines : String -> Html.Attribute msg
Sets maxLines
hour : String -> Html.Attribute msg
Sets hour
maxHour : String -> Html.Attribute msg
Sets maxHour
maxMinute : String -> Html.Attribute msg
Sets maxMinute
minHour : String -> Html.Attribute msg
Sets minHour
minMinute : String -> Html.Attribute msg
Sets minMinute
minute : String -> Html.Attribute msg
Sets minute
minuteInterval : String -> Html.Attribute msg
Sets minuteInterval
time : String -> Html.Attribute msg
Sets time
iosPosition : String -> Html.Attribute msg
Sets iosPosition
androidPosition : String -> Html.Attribute msg
Sets androidPosition
iosSystemIcon : String -> Html.Attribute msg
Sets iosSystemIcon
androidSystemIcon : String -> Html.Attribute msg
Sets androidSystemIcon
iosEstimatedRowHeight : String -> Html.Attribute msg
Sets iosEstimatedRowHeight
rowHeight : String -> Html.Attribute msg
Sets rowHeight
separatorColor : String -> Html.Attribute msg
Sets separatorColor of listView
fontFamily : String -> Html.Attribute msg
Sets fontFamily to element