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 TFieldList

Description

Create a field list

Located in /widget/form/TFieldList.php (line 26)

TElement
   |
   --TTable
      |
      --TFieldList
Variable Summary
Method Summary
static addRows ($name, $rows, [$timeout = 50])
static clear ($name)
static clearRows ($name, [$start = 0], [$length = 0])
addButtonAction ($action, $icon, $title)
addButtonFunction ($function, $icon, $title)
addCloneAction ([$clone_action = null], [$icon = null], [$title = null])
addDetail ($item)
addField ($label, $field, [$properties = null])
getRowCount ([$field_name = null])
makeScrollable ($height)
setCloneFunction ($action)
setFieldPrefix ($prefix)
setRemoveAction ([$action = null], [$icon = null], [$title = null])
setRemoveFunction ($action, [$icon = null], [$title = null])
setSortAction ($action)
show ()
Variables
mixed $totalUpdateAction (line 52)
  • access: protected

Inherited Variables

Inherited from TElement

TElement::$children
Methods
static addRows (line 673)

Add rows on field list

  • access: public
static addRows ($name, $rows, [$timeout = 50])
  • $name: field list name
  • $rows: quantity rows
  • $timeout: timeout
static clear (line 651)

Clear field list

  • access: public
static clear ($name)
  • $name: field list name
static clearRows (line 662)

Clear some field list rows

  • access: public
static clearRows ($name, [$start = 0], [$length = 0])
  • $name: field list name
  • $start: field list name
  • $length: field list name
Constructor __construct (line 57)

Class Constructor

  • access: public
__construct ()

Redefinition of:
TTable::__construct()
Class Constructor
addButtonAction (line 260)

Add action

  • access: public
addButtonAction ($action, $icon, $title)
  • $action
  • $icon
  • $title
addButtonFunction (line 252)

Add function

  • access: public
addButtonFunction ($function, $icon, $title)
  • $function
  • $icon
  • $title
addCloneAction (line 573)

Add clone action

  • access: public
addCloneAction ([$clone_action = null], [$icon = null], [$title = null])
  • $clone_action
  • $icon
  • $title
addDetail (line 407)

Add detail row

  • access: public
addDetail ($item)
  • $item: Data object
addField (line 295)

Add a field

  • access: public
addField ($label, $field, [$properties = null])
  • $label: Field Label
  • $field: Field Object
  • $properties
addHeader (line 347)

Add table header

  • access: public
addHeader ()
disablePostEmptyRow (line 83)
  • access: public
disablePostEmptyRow ()
disableRemoveButton (line 171)

Disable remove button

  • access: public
disableRemoveButton ()
enableSorting (line 179)

Enable sorting

  • access: public
enableSorting ()
generateAria (line 187)

Generate automatic aria-labels

  • access: public
generateAria ()
getFieldPrefix (line 285)

Get field prefix

  • access: public
getFieldPrefix ()
getPostData (line 91)

Get post data as object list

  • access: public
getPostData ()
getRowCount (line 143)

Get post row count

  • access: public
getRowCount ([$field_name = null])
  • $field_name
makeScrollable (line 681)

Enable scrolling

  • access: public
makeScrollable ($height)
  • $height
setCloneFunction (line 244)

Set the clone javascript action

  • access: public
setCloneFunction ($action)
  • $action
setFieldPrefix (line 277)

Set field prefix

  • access: public
setFieldPrefix ($prefix)
  • $prefix
setRemoveAction (line 222)

Set the remove action

  • access: public
setRemoveAction ([$action = null], [$icon = null], [$title = null])
  • $action
  • $icon
  • $title
setRemoveFunction (line 212)

Set the remove javascript action

  • access: public
setRemoveFunction ($action, [$icon = null], [$title = null])
  • $action
  • $icon
  • $title
setSortAction (line 196)

Define the action to be executed when the user sort rows

  • access: public
setSortAction ($action)
  • $action: TAction object
setTotalUpdateAction (line 268)

Define total update action

  • access: public
setTotalUpdateAction ($action)
  • $action
show (line 699)

Show component

  • access: public
show ()

Redefinition of:
TElement::show()
Shows the tag

Inherited Methods

Inherited From TTable

TTable::__construct()
TTable::addRow()
TTable::addRowSet()
TTable::addSection()
TTable::create()
TTable::fromData()

Inherited From TElement

TElement::__construct()
TElement::add()
TElement::after()
TElement::clearChildren()
TElement::close()
TElement::closeTag()
TElement::del()
TElement::find()
TElement::get()
TElement::getAfterElement()
TElement::getChildren()
TElement::getContents()
TElement::getIsWrapped()
TElement::getName()
TElement::getProperties()
TElement::getProperty()
TElement::hide()
TElement::insert()
TElement::open()
TElement::openTag()
TElement::setIsWrapped()
TElement::setName()
TElement::setProperties()
TElement::setProperty()
TElement::setUseLineBreaks()
TElement::setUseSingleQuotes()
TElement::show()
TElement::tag()
TElement::__clone()
TElement::__get()
TElement::__isset()
TElement::__set()
TElement::__toString()
TElement::__unset()