Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
search (array $filter) | |
searchAndOpen (array $filter) | |
searchAndSelect (array $filter) | |
resetFilter () | |
massaction (array $items, $action, $acceptAlert=false, $massActionSelection='') | |
getRowsData (array $columns) | |
isRowVisible (array $filter, $isSearchable=true, $isStrict=true) | |
sortGridByField ($field, $sort="desc") | |
isFirstRowVisible () | |
openFirstRow () | |
Protected Member Functions | |
getTemplateBlock () | |
prepareForSearch (array $filters) | |
waitLoader () | |
getRow (array $filter, $isStrict=true) | |
nextPage () | |
xpathEscape ($query, $defaultDelim='"') | |
Protected Attributes | |
$filters = [] | |
$searchButton = '[data-action="grid-filter-apply"]' | |
$sortLink = "[name='%s'][title='%s']" | |
$resetButton = '[data-action="grid-filter-reset"]' | |
$rowItem = 'tbody tr' | |
$lastRowItem = 'tbody tr:last-child' | |
$editLink = 'td[class*=col-action] a' | |
$selectItem = 'tbody tr [type="checkbox"]' | |
$selectAll = '.massaction a[onclick*=".selectAll()"]' | |
$massactionSelect = '[id*=massaction-select]' | |
$massactionAction = '[data-menu="grid-mass-select"]' | |
$massactionSubmit = '[id*=massaction-form] button' | |
$templateBlock = './ancestor::body' | |
$waitForSelectorType = Locator::SELECTOR_CSS | |
$waitForSelectorVisible = true | |
$option = '[name="status"]' | |
$active = '[class=*_active]' | |
$rowTemplate = 'td[contains(.,normalize-space("%s"))]' | |
$rowTemplateStrict = 'td[text()[normalize-space()="%s"]]' | |
$loader = '[data-role="spinner"]' | |
$actionNextPage = '[class*=data-grid-pager] .action-next' | |
$actionNextPageDisabled = '[class*=data-grid-pager] .action-next.disabled' | |
$firstRowSelector = '' | |
$noRecords = '.empty-text' | |
$rowPattern = '//tbody/tr[%s]' | |
$confirmModal = '.confirm._show[data-role=modal]' | |
Abstract class Grid Basic grid actions
@SuppressWarnings(PHPMD.NumberOfChildren) @SuppressWarnings(PHPMD.TooManyFields)
|
protected |
Obtain specific row in grid
array | $filter | |
bool | $isStrict |
Definition at line 369 of file Grid.php.
getRowsData | ( | array | $columns | ) |
|
protected |
isFirstRowVisible | ( | ) |
isRowVisible | ( | array | $filter, |
$isSearchable = true , |
|||
$isStrict = true |
|||
) |
Check if specific row exists in grid
array | $filter | |
bool | $isSearchable | |
bool | $isStrict |
Definition at line 416 of file Grid.php.
massaction | ( | array | $items, |
$action, | |||
$acceptAlert = false , |
|||
$massActionSelection = '' |
|||
) |
Perform selected massaction over checked items.
array | $items | |
array | string | $action | [array -> key = value from first select; value => value from subselect] |
bool | $acceptAlert | [optional] |
string | $massActionSelection | [optional] |
Definition at line 319 of file Grid.php.
|
protected |
|
protected |
search | ( | array | $filter | ) |
Search item via grid filter
array | $filter |
Definition at line 246 of file Grid.php.
searchAndOpen | ( | array | $filter | ) |
Search item and open it
array | $filter |
Definition at line 260 of file Grid.php.
searchAndSelect | ( | array | $filter | ) |
Search for item and select it
array | $filter |
Definition at line 289 of file Grid.php.
sortGridByField | ( | $field, | |
$sort = "desc" |
|||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |