{"id":23676054,"url":"https://github.com/biennui1998mu/vuenos-input-money","last_synced_at":"2026-04-18T06:34:03.381Z","repository":{"id":37675587,"uuid":"506086186","full_name":"biennui1998mu/vuenos-input-money","owner":"biennui1998mu","description":"Component for input money (suggest for VND)","archived":false,"fork":false,"pushed_at":"2022-07-06T03:21:32.000Z","size":498,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T22:16:47.862Z","etag":null,"topics":["input-method","npm","npm-package","scss","typescript","vue","vue3","vue3-component","vue3-composition-api","vue3-typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/vuenos-input-money","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/biennui1998mu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-22T03:36:23.000Z","updated_at":"2022-07-07T02:20:36.000Z","dependencies_parsed_at":"2022-09-15T08:20:45.778Z","dependency_job_id":null,"html_url":"https://github.com/biennui1998mu/vuenos-input-money","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biennui1998mu%2Fvuenos-input-money","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biennui1998mu%2Fvuenos-input-money/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biennui1998mu%2Fvuenos-input-money/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biennui1998mu%2Fvuenos-input-money/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biennui1998mu","download_url":"https://codeload.github.com/biennui1998mu/vuenos-input-money/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239708988,"owners_count":19684168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["input-method","npm","npm-package","scss","typescript","vue","vue3","vue3-component","vue3-composition-api","vue3-typescript"],"created_at":"2024-12-29T14:41:20.274Z","updated_at":"2025-12-25T07:30:12.507Z","avatar_url":"https://github.com/biennui1998mu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vuenos-input-money\n\n\u003e description\n\n## Prerequisites\n\nThis project using NodeJS (version 16.10.0 or later) and NPM.\n[Node](http://nodejs.org/) and [NPM](https://npmjs.org/) are really easy to install.\nTo make sure you have them available on your machine,\ntry running the following command.\n\n```sh\n$ npm -v \u0026\u0026 node -v\n7.24.0\nv16.10.0\n```\n\n## Table of contents\n\n- [vuenos-input-money](#vuenos-input-money)\n  - [Prerequisites](#prerequisites)\n  - [Table of contents](#table-of-contents)\n  - [Getting Started](#getting-started)\n  - [Installation](#installation)\n  - [Usage](#usage)\n    - [Import component](#import-component)\n    - [Get value input](#get-value-input)\n    - [Set value input](#set-value-input)\n    - [Trigger blur action](#trigger-blur-action)\n  - [Variables binding](#variables-binding)\n  - [Versioning](#versioning)\n  - [Author](#author)\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.\n\n## Installation\nTo install and set up the library, run:\n```sh\nnpm install vuenos-input-money\n```\n\n## Usage\n\n### Import component\n\n```html\n\n\u003cVuenosInputMoney ref=\"InputMoneyRef\"\n                  @getValue=\"getMoneyVal\"\n                  @blur=\"blurInput\"\n                  :placeholder=\"'Số tiền'\"\n                  :suffix=\"'VNĐ'\"\n                  :maxLength=\"14\"\n                  :disabled=\"true\"\n                  :error=\"true\"\n                  :showText=\"true\"\u003e\n\u003c/VuenosInputMoney\u003e\n```\n\n```typescript\nimport VuenosInputMoney from \"vuenos-input-money\";\n```\n\n### Get value input\n\n```typescript\nconst getMoneyVal = (val) =\u003e {\n    console.log(val);\n}\n```\n\n### Set value input\n\n```typescript\nconst InputMoneyRef = ref\u003cnull | { setInput: (val) =\u003e null }\u003e(null)\nconst setInputMoneyVal = (val) =\u003e {\n    InputMoneyRef.value?.setInput(val)\n}\nreturn {\n    InputMoneyRef\n}\n```\n\n### Trigger blur action\n\n```typescript\nconst blurInput = async () =\u003e {\n    //do something\n}\n```\n\n### Variables binding\n\n| ATTRIBUTE   | DESCRIPTION                 | REQUIRED |  TYPE   | ACCEPTED VALUES | DEFAULT |\n|:------------|:----------------------------|:--------:|:-------:|----------------:|--------:|\n| placeholder | placeholder of input        |          | String  |       'Số tiền' |   empty |\n| suffix      | suffix of input             |          | String  |           'VNĐ' |   empty |\n| maxLength   | maxlength of input          |          | Number  |              14 |   empty |\n| showText    | show convert number to text |          | Boolean |      true/false |   false |\n| disabled    | disable input               |          | Boolean |      true/false |   false |\n| error       | error style input           |          | Boolean |      true/false |   empty |\n\n\n## Versioning\n\nv1.0.5\n\n## Author\n\n* **Sơn Nguyễn** - *Initial work* - [Sơn Nguyễn](https://github.com/biennui1998mu)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiennui1998mu%2Fvuenos-input-money","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiennui1998mu%2Fvuenos-input-money","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiennui1998mu%2Fvuenos-input-money/lists"}