new HTMLCategory(name, selected)
Object to handle the creation of operation categories.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name of the category. |
selected |
boolean | Whether this category is pre-selected or not. |
- Copyright:
-
- Crown Copyright 2016
- License:
-
- Apache-2.0
- Source:
Methods
-
add_operation(operation)
-
Adds an operation to this category.
Parameters:
Name Type Description operation
HTMLOperation The operation to add.
- Source:
-
to_html()
-
Renders the category and all operations within it in HTML.
- Source:
Returns:
- Type
- string