{"id":21065650,"url":"https://github.com/adaptlearning/adapt-contrib-triggered","last_synced_at":"2025-05-16T02:33:30.464Z","repository":{"id":12914360,"uuid":"15591764","full_name":"adaptlearning/adapt-contrib-triggered","owner":"adaptlearning","description":"An extension that hides components that can be triggered by a button","archived":false,"fork":false,"pushed_at":"2022-07-28T15:13:00.000Z","size":142,"stargazers_count":3,"open_issues_count":0,"forks_count":6,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-03T19:12:11.141Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adaptlearning.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-02T19:28:47.000Z","updated_at":"2021-11-09T10:59:15.000Z","dependencies_parsed_at":"2022-08-27T22:42:17.098Z","dependency_job_id":null,"html_url":"https://github.com/adaptlearning/adapt-contrib-triggered","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptlearning%2Fadapt-contrib-triggered","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptlearning%2Fadapt-contrib-triggered/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptlearning%2Fadapt-contrib-triggered/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adaptlearning%2Fadapt-contrib-triggered/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adaptlearning","download_url":"https://codeload.github.com/adaptlearning/adapt-contrib-triggered/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254456382,"owners_count":22074166,"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-11-19T17:55:58.076Z","updated_at":"2025-05-16T02:33:30.185Z","avatar_url":"https://github.com/adaptlearning.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# adapt-contrib-triggered\nAn extension that hides components that can be triggered by a button.\n\n[Visit the **Triggered** wiki](https://github.com/adaptlearning/adapt-contrib-triggered/wiki) for more information about its functionality and for explanations of key properties.\n\n## Installation\n* If **Triggered** has been uninstalled from the Adapt framework, it may be reinstalled.\nWith the [Adapt CLI](https://github.com/adaptlearning/adapt-cli) installed, run the following from the command line:\n    `adapt install adapt-contrib-triggered`\n\n    Alternatively, this component can also be installed by adding the following line of code to the *adapt.json* file:\n    `\"adapt-contrib-triggered\": \"*\"`\n    Then running the command:\n    `adapt install`\n    (This second method will reinstall all plug-ins listed in *adapt.json*.)\n\n* If **Triggered** has been uninstalled from the Adapt authoring tool, it may be reinstalled using the [Plug-in Manager](https://github.com/adaptlearning/adapt_authoring/wiki/Plugin-Manager).\n\n\u003cdiv float align=right\u003e\u003ca href=\"#top\"\u003eBack to Top\u003c/a\u003e\u003c/div\u003e\n\n## Settings overview\n\nThe attributes listed below are used in *components.json* to configure **Triggered**, and are properly formatted as JSON in [*example.json*](https://github.com/adaptlearning/adapt-contrib-triggered/blob/master/example.json). The absence of the **_triggered** object in a component model is interpreted as having **Triggered** disabled (`\"_isEnabled\": false`).\n\nThe same **_triggered** object may be added to the course (*course.json*). At this level, `\"_isEnabled\"` can be used to disable **Triggered** on components that have `\"_isEnabled\": true`.\n\u003e**Note:** Setting the **_triggered** object in *course.json* does not provide defaults for components. It cannot be used to enable **Triggered** on components that have `\"_isEnabled\": false` or that do not have the **_triggered** object in their model json.\n\nVisit the [**Triggered** wiki](https://github.com/adaptlearning/adapt-contrib-triggered/wiki) for more information about how they appear in the [authoring tool](https://github.com/adaptlearning/adapt_authoring/wiki).\n\n### Attributes\n\n**_triggered** (object): The Triggered object that contains values for **_isEnabled**, **_top**, **_left**, **showButtonText**, and **hideButtonText**.\n\n\u003e**_isEnabled** (boolean): Enables/disables the **Triggered** extension.\n\n\u003e**showButton** (object): This object contains values for **_top**, **_right**, **_bottom**, **_left** and **buttonText**.\n\n\u003e\u003e**_top** (string): Top position of Triggered show button.\n\n\u003e\u003e**_right** (string): Right position of Triggered show button.\n\n\u003e\u003e**_bottom** (string): Bottom position of Triggered show button.\n\n\u003e\u003e**_left** (string): Left position of Triggered show button.\n\n\u003e\u003e**buttonText** (string): Show button text.\n\n\u003e**hideButton** (object): This object contains values for **_top**, **_right**, **_bottom**, **_left** and **buttonText**.\n\n\u003e\u003e**_top** (string): Top position of Triggered hide button.\n\n\u003e\u003e**_right** (string): Right position of Triggered hide button.\n\n\u003e\u003e**_bottom** (string): Bottom position of Triggered hide button.\n\n\u003e\u003e**_left** (string): Left position of Triggered hide button.\n\n\u003e\u003e**buttonText** (string): Hide button text.\n\n\u003cdiv float align=right\u003e\u003ca href=\"#top\"\u003eBack to Top\u003c/a\u003e\u003c/div\u003e\n\n## Limitations\n\nNo known limitations.\n\n## Browser spec\n\nThis component has been tested to the standard Adapt browser specification.\n\n----------------------------\n**Version number:**  2.4.0  \u003ca href=\"https://community.adaptlearning.org/\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/adaptlearning/documentation/blob/master/04_wiki_assets/plug-ins/images/adapt-logo-mrgn-lft.jpg\" alt=\"adapt learning logo\" align=\"right\"\u003e\u003c/a\u003e\n**Framework versions:**  5.8+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadaptlearning%2Fadapt-contrib-triggered","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadaptlearning%2Fadapt-contrib-triggered","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadaptlearning%2Fadapt-contrib-triggered/lists"}