... | ... | @@ -330,6 +330,22 @@ In order to do that, use `entity.haveAccessToMethod` function to deterine, if us |
|
|
);
|
|
|
```
|
|
|
|
|
|
## How to add custom actions to Grid
|
|
|
|
|
|
Add the action to the parameters of the shortcut code on which the grid is created customActions param
|
|
|
|
|
|
'customActions': [
|
|
|
{
|
|
|
'actionText': 'Some text',
|
|
|
'glyph': 61505, //code of icon
|
|
|
'text': 'Some text', //hint text
|
|
|
'handler': function (cmp) {
|
|
|
// your function
|
|
|
})
|
|
|
}
|
|
|
}]
|
|
|
|
|
|
|
|
|
## How to open grid item in tab instead of popup
|
|
|
|
|
|
For grids, which are places on a form (and not grids opened from navigation shortcut), items are by default opened in a popup, as a model window. That is right solution for cases, when it is allowed to add new items or to edit items.
|
... | ... | |