Optional
height?: numberGets/sets the rightLayoutLeftPadding of the MaterialTextBox.
4.3.0
Gets/sets the leftLayoutRightPadding of the MaterialTextBox.
4.3.0
Gets/sets the inlineHintFont of the MaterialTextBox. This property overrides the labelsFont property for characterRestriction. This property will not do anything.
4.3.0
Gets/sets the underlineLabelsFont of the MaterialTextBox. This property overrides the labelsFont property for error and characterRestriction font. This property will not do anything.
4.3.0
Gets/sets the clearButtonColor of the MaterialTextBox.
4.3.0
Gets/sets the lineHeight of the MaterialTextBox.
3.1.2
Gets/sets the selectedLineHeight of the MaterialTextBox.
3.1.2
Gets/sets the expandsOnOverflow of the MaterialTextBox.
4.3.6
This property adjusts font size according to view's fixed width. If you set it true, you should set minimum font size by changing the minimumFontSize property. This property works only for iOS.
= false]
0.1
Gets/sets minimum font size of TextBox. This property works only for iOS.
= 7]
0.1
Optional
clearGets/sets the visibility of clear button. If enabled, clear button will be shown at right of the TextBox. This property works only for iOS only.
= false]
0.1
Optional
keyboardGets/sets a layout to be displayed above the standard system keyboard when the textbox object became focus. This property works only for iOS only. Default is undefined.
= undefined]
Optional
inputThe custom input view to display instead of system keyboard when the textbox object became focus. This property works only for iOS only. Default is undefined.
Optional
keyboardGets/sets the appearance style of the keyboard that is associated with the TextBox. This property works only for iOS.
= UI.KeyboardAppearance.DEFAULT]
0.1
Optional
textUse this property to give the keyboard and the system information about the expected semantic meaning for the content that users enter. This property works only for iOS.
Creates a textContentType for ios.
import TextContentType from '@smartface/native/ui/ios/textcontenttype';
import System from '@smartface/native/device/system';
if (System.OS == "iOS" && System.OSVersion >= 12){
textbox.ios.textContentType = TextContentType.ONETIMECODE;
}
4.1.3
Setting this property to TRUE causes the receiver to block the delivery of touch events to other views. The default value of this property is false
= false]
2.0.10
A Boolean value that determines whether subviews are confined to the bounds of the view.
= false]
1.1.15
A Boolean value that determines whether subviews are confined to the bounds of the view.
= false]
Use view.maskToBounds instead
1.1.15
The offset (in points) of the shadow. This will set "masksToBounds" property to false.
view.masksToBounds = false;
view.ios.shadowOffset = {x:10,y:10};
view.ios.shadowRadius = 5;
view.ios.shadowOpacity = 0.5;
view.ios.shadowColor = Color.GRAY;
= {x: 0.0,y: -3.0}]
2.0.6
The blur radius (in points) used to render the shadow. masksToBounds" property must be false for shadow.
= 3]
2.0.6
The value in this property must be in the range 0.0 (transparent) to 1.0 (opaque). "masksToBounds" property must be false for shadow.
= 0]
2.0.6
The color of the shadow. "masksToBounds" property must be false for shadow.
= UI.Color.BLACK]
Use UI.View#shadowColor
2.0.6
Changes the direction of unreachable child views of all components. These components are HeaderBar, BottomBar, Material Textbox, Searchview, SwipeView etc.
= UI.View.iOS.SemanticContentAttribute.AUTO]
3.1.3
Disables a view transition animation.
performWithoutAnimation
4.2.1
This event is called when positioning leftLayout. This event can be called multiple times.
Rect
return.x
return.y
return.width
return.height onLeftLayoutRectForBounds
4.3.0
import MaterialTextBox from '@smartface/native/ui/materialtextbox';
const materialTextBox = new MaterialTextBox();
materialTextBox.on(MaterialTextBox.Events.LeftLayoutRectForBounds, (params) => {
console.info('onLeftLayoutRectForBounds', params);
});
Optional
bounds: ObjectMaterialTextBox bounds.
Optional
defaultRect: ObjectThis event is called when positioning rightLayout. This event can be called multiple times.
Rect
return.x
return.y
return.width
return.height onRightLayoutRectForBounds
4.3.0
import MaterialTexBox from '@smartface/native/ui/materialtextbox';
const materialTextBox = new MaterialTextBox();
materialTextBox.on(MaterialTextBox.Events.RightLayoutRectForBounds, (params) => {
console.info('onRightLayoutRectForBounds', params);
});
Optional
bounds: ObjectMaterialTextBox bounds.
Optional
defaultRect: ObjectGenerated using TypeDoc
This property used to assign a view left of MaterialTextBox. The given view's width & height must be specified. This property does not work when multiline is true.
Property
Property
Property
Property
Android
Ios
Since
3.2.1