diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/mui')
-rw-r--r-- | packages/taler-wallet-webextension/src/mui/TextField.tsx | 1 | ||||
-rw-r--r-- | packages/taler-wallet-webextension/src/mui/handlers.ts | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/packages/taler-wallet-webextension/src/mui/TextField.tsx b/packages/taler-wallet-webextension/src/mui/TextField.tsx index ba05158fa..42ac49a00 100644 --- a/packages/taler-wallet-webextension/src/mui/TextField.tsx +++ b/packages/taler-wallet-webextension/src/mui/TextField.tsx @@ -41,6 +41,7 @@ export interface Props { multiline?: boolean; onChange?: (s: string) => void; onInput?: (s: string) => string; + inputmode?: string; min?: string; step?: string; placeholder?: string; diff --git a/packages/taler-wallet-webextension/src/mui/handlers.ts b/packages/taler-wallet-webextension/src/mui/handlers.ts index 9d393e5b7..655fceef9 100644 --- a/packages/taler-wallet-webextension/src/mui/handlers.ts +++ b/packages/taler-wallet-webextension/src/mui/handlers.ts @@ -13,6 +13,7 @@ You should have received a copy of the GNU General Public License along with GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ +import { AmountJson } from "@gnu-taler/taler-util"; import { TalerError } from "@gnu-taler/taler-wallet-core"; export interface TextFieldHandler { @@ -21,6 +22,12 @@ export interface TextFieldHandler { error?: string; } +export interface AmountFieldHandler { + onInput?: (value: AmountJson) => Promise<void>; + value: AmountJson; + error?: string; +} + export interface ButtonHandler { onClick?: () => Promise<void>; error?: TalerError; |