Methods
registerAdminTab(name, view, optionsopt)
Adds a new tab to the admin tabs.
Parameters:
Name |
Type |
Attributes |
Description |
name |
string
|
|
the name of the new tab e.g. 'new-tab' (use hyphens as separators) |
view |
view
|
|
a url which points to an Angular template |
options |
object
|
<optional>
|
|
- Source:
Example
tc.ui().registerAdminTab('machine-types', pluginUrl + 'views/admin-machine-types.html', {
insertAfter: 'downloads',
controller: 'AdminMachineTypesController as adminMachineTypesController',
multiFacility: true
});
registerBrowseGridAlternative(entityType, view, optionsopt)
Allows you to replace the grid component within the browse
section at specific entity level.
Parameters:
Name |
Type |
Attributes |
Description |
entityType |
string
|
|
|
view |
string
|
|
|
options |
object
|
<optional>
|
|
- Source:
Adds a new button to the Cart.
Parameters:
Name |
Type |
Attributes |
Description |
name |
string
|
|
the name of the new button e.g. 'new-button' (use hyphens as separators) |
options |
object
|
<optional>
|
|
click |
function
|
|
gets called when button is clicked |
- Source:
Example
tc.ui().registerCartButton('make-data-public', {insertBefore: 'cancel'}, function(){
$uibModal.open({
templateUrl : pluginUrl + 'views/make-data-public.html',
controller: 'MakeDataPublicController as makeDataPublicController',
size : 'md'
});
});
Adds a button to the end of the grid.
Parameters:
Name |
Type |
Attributes |
Description |
name |
string
|
|
|
options |
object
|
<optional>
|
|
click |
function
|
|
|
- Source:
registerExternalGridFilter(states, optionsopt)
Parameters:
Name |
Type |
Attributes |
Description |
states |
Array.<string>
|
|
|
options |
object
|
<optional>
|
|
- Source:
registerMainTab(name, view, optionsopt)
Adds a new tab to the main tabs.
Parameters:
Name |
Type |
Attributes |
Description |
name |
string
|
|
the name of the new tab e.g. 'new-tab' (use hyphens as separators) |
view |
view
|
|
a url which points to an Angular template |
options |
object
|
<optional>
|
|
- Source:
Example
tc.ui().registerMainTab('my-machines', '/views/my-machines.html', {
insertAfter: 'my-data',
controller: 'MyMachinesController as myMachinesController',
multiFacility: true
});
registerPage(name, view, optionsopt)
Parameters:
Name |
Type |
Attributes |
Description |
name |
string
|
|
|
view |
string
|
|
|
options |
object
|
<optional>
|
|
- Source: