{"id":15186194,"url":"https://github.com/soroosh-tanzadeh/tselect","last_synced_at":"2025-10-02T01:31:03.765Z","repository":{"id":57381509,"uuid":"300880265","full_name":"soroosh-tanzadeh/tselect","owner":"soroosh-tanzadeh","description":"Everything you wish the HTML \u003cselect\u003e element could do, wrapped up into a lightweight, extensible Vue component with more beautiful interface.","archived":true,"fork":false,"pushed_at":"2022-04-19T17:54:14.000Z","size":493,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-16T14:53:13.610Z","etag":null,"topics":["dropdown","dropdown-input","js","vuejs-components","vuejs2"],"latest_commit_sha":null,"homepage":"","language":"SCSS","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/soroosh-tanzadeh.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":"2020-10-03T12:55:17.000Z","updated_at":"2024-06-24T16:38:26.000Z","dependencies_parsed_at":"2022-09-04T06:03:31.204Z","dependency_job_id":null,"html_url":"https://github.com/soroosh-tanzadeh/tselect","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soroosh-tanzadeh%2Ftselect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soroosh-tanzadeh%2Ftselect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soroosh-tanzadeh%2Ftselect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soroosh-tanzadeh%2Ftselect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soroosh-tanzadeh","download_url":"https://codeload.github.com/soroosh-tanzadeh/tselect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234922756,"owners_count":18907828,"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":["dropdown","dropdown-input","js","vuejs-components","vuejs2"],"created_at":"2024-09-27T18:01:13.576Z","updated_at":"2025-10-02T01:31:03.418Z","avatar_url":"https://github.com/soroosh-tanzadeh.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TSelect\n\nEverything you wish the HTML ```\u003cselect\u003e``` element could do, wrapped up into a lightweight, extensible Vue component with more beautiful interface.\n\n## Installation\n\nYou can use NPM to install TSelect.\n\n```bash\nnpm install tselect\n```\n\n## Usage\n\n```html\n\u003cscript\u003e\nimport {\n    Tselect\n} from 'tselect';\n\nexport default Vue.extend({\n    created() {\n        this.selected = this.items[0];\n    },\n    methods: {\n        NItem(input) {\n            this.items.push({\n                name: input,\n                icon: \"public\",\n                value: input\n            })\n        }\n    },\n    data() {\n        return {\n            items: [{\n                    name: \"Phone\",\n                    value: \"phone\",\n                    icon: \"phone\"\n                },\n                {\n                    name: \"Email\",\n                    value: \"email\",\n                    icon: \"email\"\n                }\n            ],\n            selected: undefined\n        }\n    },\n    name: 'Index',\n    components: {\n        Tselect,\n    }\n});\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n \u003ctselect \n    direction=\"ltr\"\n    v-on:new-item=\"NItem\"\n    v-model=\"selected\"\n    :items=\"items\"\n    :showNewItem=\"true\"\u003e\n        Select an Item\n \u003c/tselect\u003e\n\u003c/template\u003e\n\n```\n\n## Props\n\n| Prop        | Description     |Defualt|Required|\n| ------------- |:-------------:| -----:| -----:|\n| newItemPlaceholder  | New Item Input Place Holder | New Item - String | false |\n| items    | Dropdown Items      |   undefined - Array | true |\n| showNewItem | if you want to enable add new item Feature |   true - Boolean | false |\n| direction | Right to left or Left to right |  rtl - String | false |\n\n\n## Item Options\n\n| Prop        | Description     |Required|\n| ------------- |:-------------:| -----:|\n| name  | Item Label | yes |\n| value    | Item Value | yes |\n| icon | Label Icon | no |\n\n## Events\n\n**new-item** : event is triggered when user submit \"New Item\" input by clicking \"+\" button or press enter while focused on the input.\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[GPL-3](https://www.gnu.org/licenses/gpl-3.0.en.html)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoroosh-tanzadeh%2Ftselect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoroosh-tanzadeh%2Ftselect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoroosh-tanzadeh%2Ftselect/lists"}