Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
DropDown Class Reference
Inheritance diagram for DropDown:
AbstractOptions Section AbstractContainer

Public Member Functions

 fillOptions (array $fields, SimpleElement $element=null)
 
- Public Member Functions inherited from AbstractOptions
 fillOptions (array $fields, SimpleElement $element=null)
 
 getDataOptions (array $fields=null, SimpleElement $element=null)
 
 getTextForOptionValues (array $fields=null, SimpleElement $element=null)
 
- Public Member Functions inherited from Section
 getValidationErrors ()
 
 isSectionVisible ($sectionName)
 
- Public Member Functions inherited from AbstractContainer
 getFieldsData ($fields=null, SimpleElement $element=null)
 
 setFieldsData (array $fields, SimpleElement $contextElement=null)
 

Protected Attributes

 $addValueButton = '[data-action="add_new_row"]'
 
- Protected Attributes inherited from Section
 $errorField = '//fieldset/*[contains(@class,"field ")][.//*[contains(@class,"error")]]'
 
 $errorLabel = './/*[contains(@class,"label")]'
 
 $errorText = './/label[contains(@class,"error")]'
 
 $section = '[data-index="%s"]'
 

Detailed Description

Form "Option dropdown" on tab product "Customizable Options".

Definition at line 15 of file DropDown.php.

Member Function Documentation

◆ fillOptions()

fillOptions ( array  $fields,
SimpleElement  $element = null 
)

Fill the form.

Parameters
array$fields
SimpleElement$element
Returns
$this

Definition at line 31 of file DropDown.php.

32  {
33  $this->_rootElement->find($this->addValueButton)->click();
34 
35  return parent::fillOptions($fields, $element);
36  }
$fields
Definition: details.phtml:14
$element
Definition: element.phtml:12

Field Documentation

◆ $addValueButton

$addValueButton = '[data-action="add_new_row"]'
protected

Definition at line 22 of file DropDown.php.


The documentation for this class was generated from the following file: