Renderable class for the comboboxsearch.  
 More...
|  | 
|  | __construct (bool $renderlater, string $buttoncontent, ?string $dropdowncontent=null, ?string $parentclasses=null, ?string $buttonclasses=null, ?string $dropdownclasses=null, ?string $buttonheader=null, ?bool $usebutton=true) | 
|  | The class constructor. 
 | 
|  | 
|  | export_for_template (renderer_base $output) | 
|  | Export the data for the mustache template. 
 | 
|  | 
|  | get_template () | 
|  | Returns the standard template for the dropdown. 
 | 
|  | 
|  | 
| null string | $buttonclasses | 
|  | $buttonclasses Any special classes to put on the HTMLElement that triggers the dropdown. 
 | 
|  | 
| string | $buttoncontent | 
|  | $buttoncontent What is the content of the "Button" that users will always see. 
 | 
|  | 
| null string | $buttonheader | 
|  | $buttonheader If the button item in the tertiary nav needs an extra top header for context. 
 | 
|  | 
| null string | $dropdownclasses | 
|  | $dropdownclasses Any special classes to put on the HTMLElement that contains the actual dropdown. 
 | 
|  | 
| null string | $dropdowncontent | 
|  | $dropdowncontent The content that can be passed in to render immediately. 
 | 
|  | 
| null string | $parentclasses | 
|  | $parentclasses Any special classes to put on the HTMLElement that contains the BS events. 
 | 
|  | 
| bool | $renderlater | 
|  | $renderlater Should the dropdown render straightaway? 
 | 
|  | 
| boolean | $usesbutton | 
|  | $usesbutton Whether to provide a A11y button. 
 | 
|  | 
Renderable class for the comboboxsearch. 
- Copyright
- 2022 Mathew May <Mathew.solutions> 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ __construct()
      
        
          | core\output\comboboxsearch::__construct | ( | bool | $renderlater, | 
        
          |  |  | string | $buttoncontent, | 
        
          |  |  | ?string | $dropdowncontent = null, | 
        
          |  |  | ?string | $parentclasses = null, | 
        
          |  |  | ?string | $buttonclasses = null, | 
        
          |  |  | ?string | $dropdownclasses = null, | 
        
          |  |  | ?string | $buttonheader = null, | 
        
          |  |  | ?bool | $usebutton = true ) | 
      
 
The class constructor. 
- Parameters
- 
  
    | bool | $renderlater | How we figure out if we should render the template instantly. |  | string | $buttoncontent | What gets placed in the button. |  | ?string | $dropdowncontent | What can be placed in the dropdown if we are rendering now. |  | ?string | $parentclasses | The classes that can be added that the bootstrap events are attached to. |  | ?string | $buttonclasses | Any special classes that may be needed. |  | ?string | $dropdownclasses | Any special classes that may be needed. |  | ?string | $buttonheader | If the button item in the tertiary nav needs an extra top header for context. |  | bool | $usebutton | If we want the mustache to add the button roles for us or do we have another aria role node? |  
 
- Exceptions
- 
  
  
 
 
◆ export_for_template()
      
        
          | core\output\comboboxsearch::export_for_template | ( | renderer_base | $output | ) |  | 
      
 
Export the data for the mustache template. 
- Parameters
- 
  
    | renderer_base | $output | renderer to be used to render the action bar elements. |  
 
- Return values
- 
  
  
Implements templatable.
 
 
◆ get_template()
      
        
          | core\output\comboboxsearch::get_template | ( |  | ) |  | 
      
 
Returns the standard template for the dropdown. 
- Return values
- 
  
  
 
 
The documentation for this class was generated from the following file: