API Documentação da API
Inscrições abertas para nosso Webinar anual Adianti Framework 2024!
Clique aqui para saber mais
Pacote Dominando o Adianti 7
Curso + Livro + Apps exemplo
Curso completo em Video Aulas (114 aulas).
Livro completo em PDF (463 páginas).
Códigos-fontes de Apps de exemplo.
API
API do Framework
Documentation

Documentation

TCardView extends TElement
in package

Card

Tags
version
7.6
subpackage

util

author

Pablo Dall'Oglio

copyright

Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)

license

https://adiantiframework.com.br/license

Table of Contents

Properties

$colorField  : mixed
$contentField  : mixed
$contentHeight  : mixed
$itemActionGroups  : mixed
$itemActions  : mixed
$itemClass  : mixed
$itemDatabase  : mixed
$itemHeight  : mixed
$items  : mixed
$itemTemplate  : mixed
$searchAttributes  : mixed
$templatePath  : mixed
$titleField  : mixed
$titleTemplate  : mixed
$useButton  : mixed

Methods

__construct()  : mixed
Class Constructor
addAction()  : mixed
Add item action
addActionGroup()  : mixed
Add action group
addItem()  : mixed
Add item
clear()  : mixed
Clear items
enableSearch()  : mixed
Enable fuse search
setColorAttribute()  : mixed
Set color attribute
setContentAttribute()  : mixed
Set content attribute
setContentHeight()  : mixed
Set content min height
setItemClass()  : mixed
Set custom class card
setItemDatabase()  : mixed
Set item min database
setItemHeight()  : mixed
Set item min height
setItemTemplate()  : mixed
Set card item template for rendering
setTemplatePath()  : mixed
Set card item template for rendering
setTitleAttribute()  : mixed
Set title attribute
setTitleTemplate()  : mixed
Set card title template for rendering
setUseButton()  : mixed
Display icons as buttons
show()  : mixed
Show cards
renderItem()  : mixed
Render item
renderItemActions()  : mixed
Render item actions

Properties

$contentHeight

protected mixed $contentHeight

$itemActionGroups

protected mixed $itemActionGroups

$searchAttributes

protected mixed $searchAttributes

$titleTemplate

protected mixed $titleTemplate

Methods

__construct()

Class Constructor

public __construct() : mixed

addAction()

Add item action

public addAction( $action,  $label[,  $icon = NULL ][,  $display_condition = NULL ][, mixed $title = NULL ]) : mixed
Parameters
$action :

Action callback (TAction)

$label :

Action label

$icon : = NULL

Action icon

$display_condition : = NULL

Display condition

$title : mixed = NULL

addActionGroup()

Add action group

public addActionGroup( $title,  $actions,  $icon) : mixed
Parameters
$title :

Action group title

$actions :

Array of actions

$icon :

Action group icon

addItem()

Add item

public addItem( $object) : mixed
Parameters
$object :

Item data object

enableSearch()

Enable fuse search

public enableSearch( $input,  $attribute) : mixed
Parameters
$input :

Field input for search

$attribute :

Attribute name

setColorAttribute()

Set color attribute

public setColorAttribute( $field) : mixed
Parameters
$field :

attribute name

setContentAttribute()

Set content attribute

public setContentAttribute( $field) : mixed
Parameters
$field :

attribute name

setContentHeight()

Set content min height

public setContentHeight( $height) : mixed
Parameters
$height :

min height

setItemClass()

Set custom class card

public setItemClass( $class) : mixed
Parameters
$class :

class name

setItemDatabase()

Set item min database

public setItemDatabase( $database) : mixed
Parameters
$database :

min database

setItemHeight()

Set item min height

public setItemHeight( $height) : mixed
Parameters
$height :

min height

setItemTemplate()

Set card item template for rendering

public setItemTemplate( $template) : mixed
Parameters
$template :

Template content

setTemplatePath()

Set card item template for rendering

public setTemplatePath( $path) : mixed
Parameters
$path :

Template path

setTitleAttribute()

Set title attribute

public setTitleAttribute( $field) : mixed
Parameters
$field :

attribute name

setTitleTemplate()

Set card title template for rendering

public setTitleTemplate( $template) : mixed
Parameters
$template :

Template content

setUseButton()

Display icons as buttons

public setUseButton() : mixed

renderItem()

Render item

private renderItem(mixed $item) : mixed
Parameters
$item : mixed

renderItemActions()

Render item actions

private renderItemActions([mixed $object = NULL ]) : mixed
Parameters
$object : mixed = NULL

        
On this page

Search results