Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 7b241e2

Browse files
authored
Formatting update
1 parent b99e3d6 commit 7b241e2

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

src/guides/v2.3/ui_comp_guide/components/ui-columnscontrols.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,33 +25,29 @@ Extends [`uiCollection`]({{ page.baseurl }}/ui_comp_guide/concepts/ui_comp_uicol
2525

2626
## Examples
2727

28-
### Change "minVisible" and "maxVisible" values in the JS file.
28+
### Changing "minVisible" and "maxVisible" values in the javascript file.
2929

30-
For this, you have to override the vendor JS file in your custom module.
30+
For this, you have to override the vendor JS file in your custom module:
3131

32-
vendor file js path :
33-
/vendor/magento/module-ui/view/base/web/js/grid/controls/columns.js
32+
`/vendor/magento/module-ui/view/base/web/js/grid/controls/columns.js`
3433

35-
#### To override the JS file follow the step below:
34+
#### Step one: override the javascript file
3635

37-
#### First step :
38-
/app/code/[VENDOR_NAME]/[MODULE_NAME]/view/base/requirejs-config.js
39-
40-
```js
36+
In `/app/code/[VENDOR_NAME]/[MODULE_NAME]/view/base/requirejs-config.js`, add the following:
4137

38+
```javascript
4239
var config = {
4340
map: {
4441
'*': {
4542
'Magento_Ui/js/grid/controls/columns':'VENDOR_NAME_MODULE_NAME/js/grid/controls/columns'
4643
}
4744
}
4845
}
49-
5046
```
5147

52-
#### Second step :
53-
/app/code/[VENDOR_NAME]/[MODULE_NAME]/view/base/web/js/grid/controls/columns.js
54-
(In this JS change "minVisible" and "maxVisible" values as per your requirement)
48+
#### Step two: set the custom values
49+
50+
In `/app/code/[VENDOR_NAME]/[MODULE_NAME]/view/base/web/js/grid/controls/columns.js`, change the "minVisible" and "maxVisible" values as per your requirement:
5551

5652
```js
5753
return Collection.extend({

0 commit comments

Comments
 (0)