feat:Input add beforeTextChange API
This commit is contained in:
6
doric-js/lib/src/widget/input.d.ts
vendored
6
doric-js/lib/src/widget/input.d.ts
vendored
@@ -26,6 +26,12 @@ export declare class Input extends View {
|
||||
editable?: boolean;
|
||||
returnKeyType?: ReturnKeyType;
|
||||
onSubmitEditing?: (text: string) => void;
|
||||
beforeTextChange?: (change: {
|
||||
editing: string;
|
||||
start: number;
|
||||
length: number;
|
||||
replacement: string;
|
||||
}) => boolean;
|
||||
getText(context: BridgeContext): Promise<string>;
|
||||
setSelection(context: BridgeContext, start: number, end?: number): Promise<any>;
|
||||
getSelection(context: BridgeContext): Promise<{
|
||||
|
@@ -115,6 +115,10 @@ __decorate([
|
||||
Property,
|
||||
__metadata("design:type", Function)
|
||||
], Input.prototype, "onSubmitEditing", void 0);
|
||||
__decorate([
|
||||
Property,
|
||||
__metadata("design:type", Function)
|
||||
], Input.prototype, "beforeTextChange", void 0);
|
||||
export var InputType;
|
||||
(function (InputType) {
|
||||
InputType[InputType["Default"] = 0] = "Default";
|
||||
|
Reference in New Issue
Block a user