File tree 2 files changed +18
-1
lines changed
website/docs/api/interfaces
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
- import { QLineEdit , NodeWidget } from "@nodegui/nodegui" ;
1
+ import { QLineEdit , EchoMode , NodeWidget } from "@nodegui/nodegui" ;
2
2
import { ViewProps , setViewProps } from "../View/RNView" ;
3
3
import { RNWidget } from "../config" ;
4
4
import { throwUnsupported } from "../../utils/helpers" ;
@@ -7,6 +7,7 @@ export interface LineEditProps extends ViewProps {
7
7
text ?: string ;
8
8
placeholderText ?: string ;
9
9
readOnly ?: boolean ;
10
+ echoMode ?: EchoMode ;
10
11
}
11
12
12
13
const setLineEditProps = (
@@ -23,6 +24,9 @@ const setLineEditProps = (
23
24
} ,
24
25
set readOnly ( isReadOnly : boolean ) {
25
26
widget . setReadOnly ( isReadOnly ) ;
27
+ } ,
28
+ set echoMode ( mode : EchoMode ) {
29
+ widget . setEchoMode ( mode ) ;
26
30
}
27
31
} ;
28
32
Object . assign ( setter , newProps ) ;
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ sidebar_label: "LineEditProps"
15
15
### Properties
16
16
17
17
* [ cursor] ( lineeditprops.md#optional-cursor )
18
+ * [ echoMode] ( lineeditprops.md#optional-echoMode )
18
19
* [ enabled] ( lineeditprops.md#optional-enabled )
19
20
* [ geometry] ( lineeditprops.md#optional-geometry )
20
21
* [ id] ( lineeditprops.md#optional-id )
@@ -48,6 +49,18 @@ Sets the window mouse cursor. [QWidget: setCursor](https://docs.nodegui.org/docs
48
49
49
50
___
50
51
52
+ ### ` Optional ` echoMode
53
+
54
+ • ** echoMode** ? : * EchoMode*
55
+
56
+ Sets the property that determines how the text entered in the line edit is displayed (or echoed) to the user.
57
+
58
+ The widget's display and the ability to copy or drag the text is affected by this setting.
59
+
60
+ [ QLineEdit: setEchoMode] ( https://docs.nodegui.org/docs/api/QLineEdit#lineeditsetechomode )
61
+
62
+ ___
63
+
51
64
### ` Optional ` enabled
52
65
53
66
• ** enabled** ? : * undefined | false | true*
You can’t perform that action at this time.
0 commit comments