Lançado Adianti Framework 7.6!
Clique aqui para saber mais
menu

Adianti Solutions

API

Adianti, Framework, PHP, MVC, Active record, Front controller, IDE, RAD, Web, multiplataforma, geração de código, desenvolvimento rápido, relatórios, formulários, listagens, datagrids, gráficos, banco de dados, padrões de projeto, design patterns API do Adianti Framework.
API Docs
code
Selecione a classe

Class TSpinner

Description

Implements interfaces:

Spinner Widget (also known as spin button)

Located in /widget/form/TSpinner.php (line 24)

TField
   |
   --TSpinner
Variable Summary
mixed $formName
mixed $id
mixed $value
Method Summary
static disableField ($form_name, $field)
static enableField ($form_name, $field)
__construct ($name)
setExitAction ($action)
setExitFunction ($function)
setRange ($min, $max, $step)
setValue ($value)
show ()
Variables
mixed $formName (line 32)
  • access: protected

Redefinition of:
TField::$formName
mixed $id (line 31)
  • access: protected

Redefinition of:
TField::$id
mixed $value (line 33)
  • access: protected

Redefinition of:
TField::$value

Inherited Variables

Inherited from TField

TField::$editable
TField::$label
TField::$name
TField::$properties
TField::$size
TField::$tag
TField::$valueCallback
Methods
static disableField (line 101)

Disable the field

  • access: public
static disableField ($form_name, $field)
  • $form_name: Form name
  • $field: Field name

Redefinition of:
TField::disableField()
Disable the field
static enableField (line 91)

Enable the field

  • access: public
static enableField ($form_name, $field)
  • $form_name: Form name
  • $field: Field name

Redefinition of:
TField::enableField()
Enable the field
Constructor __construct (line 39)

Class Constructor

  • access: public
__construct ($name)
  • $name: Name of the widget

Redefinition of:
TField::__construct()
Class Constructor
setExitAction (line 73)

Define the action to be executed when the user leaves the form field

setExitAction ($action)
  • $action: TAction object
setExitFunction (line 109)

Set exit function

  • access: public
setExitFunction ($function)
  • $function
setRange (line 52)

Define the field's range

  • access: public
setRange ($min, $max, $step)
  • $min: Minimal value
  • $max: Maximal value
  • $step: Step value
setValue (line 182)

Set the value

  • access: public
setValue ($value)
  • $value

Redefinition of:
TField::setValue()
Define the field's value

Implementation of:
AdiantiWidgetInterface::setValue()
show (line 117)

Shows the widget at the screen

  • access: public
show ()

Implementation of:
AdiantiWidgetInterface::show()

Inherited Methods

Inherited From TField

TField::__construct()
TField::addValidation()
TField::clearField()
TField::disableField()
TField::enableField()
TField::getContents()
TField::getEditable()
TField::getFormName()
TField::getId()
TField::getLabel()
TField::getName()
TField::getPostData()
TField::getPropertiesAsString()
TField::getProperty()
TField::getSize()
TField::getValidations()
TField::getValue()
TField::isRequired()
TField::setEditable()
TField::setFormName()
TField::setId()
TField::setLabel()
TField::setName()
TField::setProperty()
TField::setSize()
TField::setTip()
TField::setValue()
TField::setValueCallback()
TField::validate()
TField::__call()
TField::__clone()
TField::__get()
TField::__isset()
TField::__set()
TField::__toString()