{"id":23053605,"url":"https://github.com/component/prompt-popover","last_synced_at":"2025-06-17T20:36:13.092Z","repository":{"id":6297920,"uuid":"7532476","full_name":"component/prompt-popover","owner":"component","description":"Inline popover prompts","archived":false,"fork":false,"pushed_at":"2013-08-21T17:32:31.000Z","size":54,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-08T18:29:01.071Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/component.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2013-01-10T01:40:15.000Z","updated_at":"2018-03-04T03:58:01.000Z","dependencies_parsed_at":"2022-08-31T02:22:26.224Z","dependency_job_id":null,"html_url":"https://github.com/component/prompt-popover","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fprompt-popover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fprompt-popover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fprompt-popover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fprompt-popover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/prompt-popover/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246935374,"owners_count":20857396,"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":[],"created_at":"2024-12-16T00:18:54.446Z","updated_at":"2025-04-03T04:25:06.399Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Prompt Popover\n\n  Popover prompt component built on top of [Popover](http://github.com/component/popover).\n\n  ![js popover prompt component](http://cdn.dropmark.com/41933/d85858ab38a78c6ad8d912adffb1998feab5d207/Screen%20Shot%202013-01-09%20at%205.31.42%20PM.png)\n\n## Installation\n\n```\n$ component install component/prompt-popover\n```\n\n## Features\n\n  - all the features of Popover / Tip\n\n## Events\n\n  - `show` the prompt is shown\n  - `hide` the prompt is hidden\n  - `cancel` the user closed the prompt or cancelled\n  - `ok` the user accepted\n\n## API\n\n### new Prompt([placeholder])\n\n  Create a new popover with optional input `placeholder` text.\n\n```js\nvar Prompt = require('prompt-popover');\nvar prompt = new Prompt('Password');\nvar el = $('#change-password').get(0);\nprompt.show(el);\n```\n\n### Prompt#cancel(text)\n\n  Set cancel button `text`.\n\n### Prompt#ok(text)\n\n  Set cancel ok `text`.\n\n### Prompt#show(el, [fn])\n\n  Attach to `el`, and invoke `fn` with\n  a boolean representing the user's choice.\n\n  When `fn` is omitted you may still utilize the `cancel` / `ok` events.\n\n### ...\n\n  View [Tip](http://github.com/component/tip) and [Popover](http://github.com/component/popover) for additional\n  API documentation.\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fprompt-popover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fprompt-popover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fprompt-popover/lists"}