Sunnysideup\Ecommerce\Forms\Fields\BuyableSelectField
Text input field that allows the user to select a Buyable.
A product, a product variation or any other buyable.
using the auto-complete technique from jQuery UI.
Synopsis
class BuyableSelectField
extends FormField
{
- // members
- protected $jquery_UI_JS_location;
- protected $jquery_UI_CSS_location;
- protected $countOfSuggestions;
- protected FormField $fieldFindBuyable;
- protected FormField $fieldSelectedBuyable;
- protected DataObject $buyable;
- // methods
- public void __construct()
- public void hasData()
- public DBHTMLText Field()
- public void setValue()
- public void performReadonlyTransformation()
- public void setReadonly()
- public void set_jquery_UI_JS_location()
- public void set_jquery_UI_CSS_location()
- protected void getJavascript()
Hierarchy
Extends
- SilverStripe\Forms\FormField
Members
protected
- $buyable — SilverStripe\ORM\DataObject
- $countOfSuggestions
—
int
number of suggestions. - $fieldFindBuyable — SilverStripe\Forms\FormField
- $fieldSelectedBuyable — SilverStripe\Forms\FormField
- $jquery_UI_CSS_location
—
string
Location for jQuery UI library location. - $jquery_UI_JS_location
—
string
Location for jQuery UI library location.
Methods
protected
public
- __construct()
- Field()
- hasData()
- performReadonlyTransformation() — Returns a readonly version of this field.
- setReadonly()
- setValue() — Do we do anything with data???
- set_jquery_UI_CSS_location() — set alternative location for jQuerry UI Autocomplete CSS File.
- set_jquery_UI_JS_location() — set alternative location for jQuerry UI Autocomplete JAVASCRIPT FILE.