{{! This file is part of Moodle - http://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Moodle is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see . }} {{! @template core/comboboxsearch Combobox search selector dropdown. Context variables required for this template: * label - The label for the the combobox. * name - The name of the input element representing the combobox. * value - The value of the input element representing the combobox. * renderlater - This determines if we show a placeholder whilst fetching content to replace within the placeholder region * buttonheader - The header to be shown above the button * buttoncontent - The string to be shown to users to trigger the dropdown * usebutton - If we want to use a button to trigger the dropdown, or just the dropdown itself * dropdowncontent - If rendering now, The content within the dropdown * parentclasses - Our class for the DOM Node that the default bootstrap dropdown events are tagged onto * buttonclasses - If you want special handling add classes here * dropdownclasses - If you want special handling or sizing etc add classes here * instance - The instance ID of the tertiary navigation dropdown Example context (json): { "label": "Example searchable combobox", "name": "input-1", "value": "0", "renderlater": false, "buttonheader": "Example:", "usebutton": true, "buttoncontent": "Dropdown button", "dropdowncontent": "Some body content to render right now", "parentclasses": "my-dropdown", "buttonclasses": "my-button", "dropdownclasses": "my-cool-dropdown", "instance": 25 } }} {{#buttonheader}} {{.}} {{/buttonheader}}